From 1e901e2eea6d5fd46fb837b57e808cbff7dd36fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 10 Apr 2021 13:15:34 +0200 Subject: [PATCH] Double ssh connection speed --- honeypot/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/honeypot/server.go b/honeypot/server.go index 35f9bd0..9a357bb 100644 --- a/honeypot/server.go +++ b/honeypot/server.go @@ -108,7 +108,7 @@ func (hs *HoneypotServer) passwordHandler(ctx ssh.Context, password string) bool func (s *HoneypotServer) connCallback(ctx ssh.Context, conn net.Conn) net.Conn { throttledConn := newThrottledConn(conn) ctx.SetValue("uuid", throttledConn.ID) - throttledConn.SetSpeed(1024) + throttledConn.SetSpeed(2048) return throttledConn }