Preparing report...

Report for github.com/honeytrap/honeytrap

A    Great!    Found 194 issues across 235 files

Tweet

gofmt94%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo88%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • honeytrap/services/ja3/crypto/tls/handshake_server.go
    • Line 360: warning: cyclomatic complexity 46 of function (*serverHandshakeState).doFullHandshake() is high (> 15) (gocyclo)
    • Line 113: warning: cyclomatic complexity 40 of function (*serverHandshakeState).readClientHello() is high (> 15) (gocyclo)
    • Line 40: warning: cyclomatic complexity 16 of function (*Conn).serverHandshake() is high (> 15) (gocyclo)
    • honeytrap/services/ja3/crypto/tls/handshake_messages.go
    • Line 301: warning: cyclomatic complexity 54 of function (*clientHelloMsg).unmarshal() is high (> 15) (gocyclo)
    • Line 704: warning: cyclomatic complexity 35 of function (*serverHelloMsg).unmarshal() is high (> 15) (gocyclo)
    • Line 60: warning: cyclomatic complexity 32 of function (*clientHelloMsg).marshal() is high (> 15) (gocyclo)
    • Line 560: warning: cyclomatic complexity 22 of function (*serverHelloMsg).marshal() is high (> 15) (gocyclo)
    • Line 34: warning: cyclomatic complexity 19 of function (*clientHelloMsg).equal() is high (> 15) (gocyclo)
    • Line 530: warning: cyclomatic complexity 17 of function (*serverHelloMsg).equal() is high (> 15) (gocyclo)
    • Line 1284: warning: cyclomatic complexity 16 of function (*certificateRequestMsg).unmarshal() is high (> 15) (gocyclo)
    • honeytrap/services/telnet/terminal.go
    • Line 155: warning: cyclomatic complexity 42 of function bytesToKey() is high (> 15) (gocyclo)
    • Line 445: warning: cyclomatic complexity 38 of function (*Terminal).handleKey() is high (> 15) (gocyclo)
    • Line 716: warning: cyclomatic complexity 18 of function (*Terminal).readLine() is high (> 15) (gocyclo)
    • honeytrap/services/ja3/crypto/tls/conn.go
    • Line 568: warning: cyclomatic complexity 48 of function (*Conn).readRecord() is high (> 15) (gocyclo)
    • Line 960: warning: cyclomatic complexity 23 of function (*Conn).readHandshake() is high (> 15) (gocyclo)
    • Line 1138: warning: cyclomatic complexity 20 of function (*Conn).Read() is high (> 15) (gocyclo)
    • Line 275: warning: cyclomatic complexity 19 of function (*halfConn).decrypt() is high (> 15) (gocyclo)
    • honeytrap/services/ja3/crypto/tls/handshake_client.go
    • Line 298: warning: cyclomatic complexity 45 of function (*clientHandshakeState).doFullHandshake() is high (> 15) (gocyclo)
    • Line 731: warning: cyclomatic complexity 23 of function (*clientHandshakeState).getCertificate() is high (> 15) (gocyclo)
    • Line 183: warning: cyclomatic complexity 22 of function (*clientHandshakeState).handshake() is high (> 15) (gocyclo)
    • Line 95: warning: cyclomatic complexity 20 of function (*Conn).clientHandshake() is high (> 15) (gocyclo)
    • Line 558: warning: cyclomatic complexity 18 of function (*clientHandshakeState).processServerHello() is high (> 15) (gocyclo)
    • honeytrap/server/api.go
    • Line 233: warning: cyclomatic complexity 23 of function (*Honeycast).bucketFind() is high (> 15) (gocyclo)
    • Line 455: warning: cyclomatic complexity 19 of function (*Socketcast).manage() is high (> 15) (gocyclo)
    • Line 159: warning: cyclomatic complexity 16 of function (*Honeycast).Send() is high (> 15) (gocyclo)

golint22%

Golint is a linter for Go source code.

    • honeytrap/services/https.go
    • Line 1: warning: package comment should be of the form "Package services ..." (golint)
    • Line 38: warning: exported function HTTPS should have comment or be unexported (golint)
    • honeytrap/services/ftp/server.go
    • Line 1: warning: package comment should be of the form "Package ftp ..." (golint)
    • Line 22: warning: comment on exported type ServerOpts should be of the form "ServerOpts ..." (with optional leading article) (golint)
    • honeytrap/services/ftp/socket.go
    • Line 1: warning: package comment should be of the form "Package ftp ..." (golint)
    • Line 24: warning: comment on exported type DataSocket should be of the form "DataSocket ..." (with optional leading article) (golint)
    • honeytrap/listener/listener.go
    • Line 1: warning: package comment should be of the form "Package listener ..." (golint)
    • Line 25: warning: exported function Register should have comment or be unexported (golint)
    • Line 30: warning: exported function Get should have comment or be unexported (golint)
    • Line 40: warning: exported function Range should have comment or be unexported (golint)
    • Line 46: warning: exported type Listener should have comment or be unexported (golint)
    • honeytrap/services/http-proxy.go
    • Line 1: warning: package comment should be of the form "Package services ..." (golint)
    • Line 33: warning: comment on exported function HTTPProxy should be of the form "HTTPProxy ..." (golint)
    • honeytrap/services/decoder/encoder.go
    • Line 1: warning: package comment should be of the form "Package decoder ..." (golint)
    • Line 21: warning: exported type EncoderType should have comment or be unexported (golint)
    • Line 30: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 34: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 38: warning: exported method Encoder.WriteUint8 should have comment or be unexported (golint)
    • Line 42: warning: exported method Encoder.WriteUint16 should have comment or be unexported (golint)
    • Line 48: warning: exported method Encoder.WriteUint32 should have comment or be unexported (golint)
    • Line 54: warning: comment on exported method Encoder.WriteData should be of the form "WriteData ..." (golint)
    • honeytrap/pushers/file/file.go
    • Line 1: warning: package comment should be of the form "Package fschannel ..." (golint)
    • Line 94: warning: exported method FileBackend.Close should have comment or be unexported (golint)
    • honeytrap/services/telnet/lua.go
    • Line 1: warning: package comment should be of the form "Package telnet ..." (golint)
    • Line 17: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 25: warning: exported function FromLUA should have comment or be unexported (golint)
    • Line 50: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 79: warning: exported function ToLUA should have comment or be unexported (golint)
    • honeytrap/listener/canary/canary_linux.go
    • Line 58: warning: comment on exported var EventCategoryARP should be of the form "EventCategoryARP ..." (golint)
    • Line 930: warning: exported method Canary.SetChannel should have comment or be unexported (golint)
    • Line 934: warning: exported method Canary.Accept should have comment or be unexported (golint)
    • honeytrap/services/vnc/rfb.go
    • Line 1: warning: package comment should be of the form "Package vnc ..." (golint)
    • Line 70: warning: exported type LockableImage should have comment or be unexported (golint)
    • Line 75: warning: exported type Conn should have comment or be unexported (golint)
    • Line 411: warning: exported type PixelFormat should have comment or be unexported (golint)
    • Line 465: warning: comment on exported type FrameBufferUpdateRequest should be of the form "FrameBufferUpdateRequest ..." (with optional leading article) (golint)
    • Line 493: warning: comment on exported type KeyEvent should be of the form "KeyEvent ..." (with optional leading article) (golint)
    • Line 512: warning: comment on exported type PointerEvent should be of the form "PointerEvent ..." (with optional leading article) (golint)
    • honeytrap/web/options.go
    • Line 1: warning: package comment should be of the form "Package web ..." (golint)
    • Line 24: warning: exported function WithEventBus should have comment or be unexported (golint)
    • Line 31: warning: exported function WithDataDir should have comment or be unexported (golint)
    • Line 45: warning: exported type TomlDecoder should have comment or be unexported (golint)
    • Line 49: warning: exported function WithConfig should have comment or be unexported (golint)
    • honeytrap/pushers/dummy.go
    • Line 1: warning: package comment should be of the form "Package pushers ..." (golint)
    • Line 18: warning: exported function MustDummy should have comment or be unexported (golint)
    • Line 22: warning: exported function Dummy should have comment or be unexported (golint)
    • honeytrap/listener/tun/tun.go
    • Line 1: warning: package comment should be of the form "Package tun ..." (golint)
    • Line 29: warning: exported var SensorTun should have comment or be unexported (golint)
    • Line 62: warning: exported function New should have comment or be unexported (golint)
    • honeytrap/director/dummy.go
    • Line 1: warning: package comment should be of the form "Package director ..." (golint)
    • Line 18: warning: exported function MustDummy should have comment or be unexported (golint)
    • Line 23: warning: exported function Dummy should have comment or be unexported (golint)
    • honeytrap/server/profiler/profiler.go
    • Line 1: warning: package comment should be of the form "Package profiler ..." (golint)
    • Line 18: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 26: warning: exported type Profiler should have comment or be unexported (golint)
    • Line 31: warning: exported function Dummy should have comment or be unexported (golint)
    • Line 44: warning: exported function New should have comment or be unexported (golint)
    • honeytrap/listener/canary/tcp/tcp.go
    • Line 1: warning: package comment should be of the form "Package tcp ..." (golint)
    • Line 27: warning: exported type Flag should have comment or be unexported (golint)
    • Line 30: warning: exported const FIN should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type Header should have comment or be unexported (golint)
    • Line 118: warning: exported type Option should have comment or be unexported (golint)
    • Line 148: warning: exported var ErrInvalidChecksum should have comment or be unexported (golint)
    • Line 150: warning: exported function UnmarshalWithChecksum should have comment or be unexported (golint)
    • Line 163: warning: exported method Header.UnmarshalWithChecksum should have comment or be unexported (golint)
    • Line 174: warning: exported function Parse should have comment or be unexported (golint)
    • Line 183: warning: comment on exported method Header.Unmarshal should be of the form "Unmarshal ..." (golint)
    • Line 245: warning: exported method Header.HasFlag should have comment or be unexported (golint)
    • Line 261: warning: exported method Header.CalcChecksum should have comment or be unexported (golint)
    • Line 265: warning: exported method Header.MarshalWithChecksum should have comment or be unexported (golint)
    • Line 275: warning: exported method Header.Marshal should have comment or be unexported (golint)
    • honeytrap/listener/agent/messages.go
    • Line 1: warning: package comment should be of the form "Package agent ..." (golint)
    • Line 23: warning: exported const TypeHello should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type Handshake should have comment or be unexported (golint)
    • Line 43: warning: exported method Handshake.UnmarshalBinary should have comment or be unexported (golint)
    • Line 53: warning: exported method Handshake.MarshalBinary should have comment or be unexported (golint)
    • Line 68: warning: exported type HandshakeResponse should have comment or be unexported (golint)
    • Line 72: warning: exported method HandshakeResponse.UnmarshalBinary should have comment or be unexported (golint)
    • Line 85: warning: exported method HandshakeResponse.MarshalBinary should have comment or be unexported (golint)
    • Line 101: warning: exported type Hello should have comment or be unexported (golint)
    • Line 106: warning: exported method Hello.MarshalBinary should have comment or be unexported (golint)
    • Line 119: warning: exported method Hello.UnmarshalBinary should have comment or be unexported (golint)
    • Line 127: warning: exported type Ping should have comment or be unexported (golint)
    • Line 130: warning: exported method Ping.UnmarshalBinary should have comment or be unexported (golint)
    • Line 134: warning: exported method Ping.MarshalBinary should have comment or be unexported (golint)
    • Line 139: warning: exported type EOF should have comment or be unexported (golint)
    • Line 144: warning: exported method EOF.UnmarshalBinary should have comment or be unexported (golint)
    • Line 153: warning: exported method EOF.MarshalBinary should have comment or be unexported (golint)
    • Line 166: warning: exported type ReadWriteTCP should have comment or be unexported (golint)
    • Line 173: warning: exported method ReadWriteTCP.MarshalBinary should have comment or be unexported (golint)
    • Line 188: warning: exported method ReadWriteTCP.UnmarshalBinary should have comment or be unexported (golint)
    • Line 199: warning: exported type ReadWriteUDP should have comment or be unexported (golint)
    • Line 206: warning: exported method ReadWriteUDP.MarshalBinary should have comment or be unexported (golint)
    • Line 220: warning: exported method ReadWriteUDP.UnmarshalBinary should have comment or be unexported (golint)
    • honeytrap/pushers/channel.go
    • Line 1: warning: package comment should be of the form "Package pushers ..." (golint)
    • Line 27: warning: exported type ChannelFunc should have comment or be unexported (golint)
    • Line 33: warning: exported function Range should have comment or be unexported (golint)
    • Line 39: warning: exported function Register should have comment or be unexported (golint)
    • Line 44: warning: exported type TomlDecoder should have comment or be unexported (golint)
    • Line 48: warning: exported function WithConfig should have comment or be unexported (golint)
    • Line 55: warning: exported function Get should have comment or be unexported (golint)
    • honeytrap/services/smtp/smtp.go
    • Line 1: warning: package comment should be of the form "Package smtp ..." (golint)
    • Line 37: warning: comment on exported function SMTP should be of the form "SMTP ..." (golint)
    • Line 98: warning: exported type Config should have comment or be unexported (golint)
    • Line 106: warning: exported type Service should have comment or be unexported (golint)
    • Line 112: warning: exported method Service.SetChannel should have comment or be unexported (golint)
    • Line 116: warning: exported method Service.Handle should have comment or be unexported (golint)
    • honeytrap/listener/udp_conn.go
    • Line 1: warning: package comment should be of the form "Package listener ..." (golint)
    • Line 21: warning: exported type DummyUDPConn should have comment or be unexported (golint)
    • Line 44: warning: exported method DummyUDPConn.Close should have comment or be unexported (golint)
    • Line 48: warning: exported method DummyUDPConn.LocalAddr should have comment or be unexported (golint)
    • Line 52: warning: exported method DummyUDPConn.RemoteAddr should have comment or be unexported (golint)
    • Line 56: warning: exported method DummyUDPConn.SetDeadline should have comment or be unexported (golint)
    • Line 60: warning: exported method DummyUDPConn.SetReadDeadline should have comment or be unexported (golint)
    • Line 64: warning: exported method DummyUDPConn.SetWriteDeadline should have comment or be unexported (golint)
    • honeytrap/services/services.go
    • Line 1: warning: package comment should be of the form "Package services ..." (golint)
    • Line 34: warning: exported type ServicerFunc should have comment or be unexported (golint)
    • Line 36: warning: exported function Register should have comment or be unexported (golint)
    • Line 41: warning: exported function Range should have comment or be unexported (golint)
    • Line 47: warning: exported function Get should have comment or be unexported (golint)
    • Line 57: warning: exported type CanHandlerer should have comment or be unexported (golint)
    • Line 61: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 67: warning: exported function WithChannel should have comment or be unexported (golint)
    • Line 74: warning: exported type Proxier should have comment or be unexported (golint)
    • Line 78: warning: exported function WithDirector should have comment or be unexported (golint)
    • Line 87: warning: exported type TomlDecoder should have comment or be unexported (golint)
    • Line 91: warning: exported function WithConfig should have comment or be unexported (golint)
    • Line 99: warning: exported var SensorLow should have comment or be unexported (golint)
    • honeytrap/listener/canary/arp/arp.go
    • Line 1: warning: package comment should be of the form "Package arp ..." (golint)
    • Line 23: warning: exported const ARP_OPC_RESERVED should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported type ArpOpcode should have comment or be unexported (golint)
    • Line 112: warning: exported type Frame should have comment or be unexported (golint)
    • Line 137: warning: exported function Parse should have comment or be unexported (golint)
    • Line 142: warning: exported method Frame.Unmarshal should have comment or be unexported (golint)
    • honeytrap/services/ftp/ftp.go
    • Line 1: warning: package comment should be of the form "Package ftp ..." (golint)
    • Line 33: warning: exported function FTP should have comment or be unexported (golint)
    • Line 90: warning: exported type Opts should have comment or be unexported (golint)
    • honeytrap/web/web_other.go
    • Line 1: warning: package comment should be of the form "Package web ..." (golint)
    • Line 40: warning: exported function AcceptAllOrigins should have comment or be unexported (golint)
    • Line 104: warning: exported function New should have comment or be unexported (golint)
    • Line 241: warning: exported type Message should have comment or be unexported (golint)
    • Line 246: warning: exported method Message.MarshalJSON should have comment or be unexported (golint)
    • Line 253: warning: exported function Data should have comment or be unexported (golint)
    • honeytrap/services/limiter.go
    • Line 1: warning: package comment should be of the form "Package services ..." (golint)
    • Line 25: warning: exported function NewLimiter should have comment or be unexported (golint)
    • Line 32: warning: exported type Limiter should have comment or be unexported (golint)
    • Line 39: warning: exported method Limiter.Allow should have comment or be unexported (golint)
    • honeytrap/services/ftp/conn.go
    • Line 1: warning: package comment should be of the form "Package ftp ..." (golint)
    • Line 35: warning: exported type Conn should have comment or be unexported (golint)
    • Line 57: warning: exported method Conn.LoginUser should have comment or be unexported (golint)
    • Line 61: warning: exported method Conn.IsLogin should have comment or be unexported (golint)
    • Line 65: warning: exported method Conn.PublicIP should have comment or be unexported (golint)
    • Line 76: warning: exported method Conn.PassivePort should have comment or be unexported (golint)
    • honeytrap/config/config.go
    • Line 1: warning: package comment should be of the form "Package config ..." (golint)
    • Line 56: warning: comment on exported var Default should be of the form "Default ..." (golint)
    • honeytrap/services/counterstrike.go
    • Line 1: warning: package comment should be of the form "Package services ..." (golint)
    • Line 33: warning: exported const COUNTERSTRIKE_A2S_INFO should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported function CounterStrike should have comment or be unexported (golint)
    • honeytrap/services/http.go
    • Line 1: warning: package comment should be of the form "Package services ..." (golint)
    • Line 36: warning: comment on exported function HTTP should be of the form "HTTP ..." (golint)
    • Line 89: warning: exported function Headers should have comment or be unexported (golint)
    • Line 97: warning: exported function Cookies should have comment or be unexported (golint)
    • honeytrap/services/tftp.go
    • Line 1: warning: package comment should be of the form "Package services ..." (golint)
    • Line 30: warning: exported function TFTP should have comment or be unexported (golint)
    • honeytrap/services/decoder/decoder.go
    • Line 1: warning: package comment should be of the form "Package decoder ..." (golint)
    • Line 21: warning: exported type ErrOutOfBounds should have comment or be unexported (golint)
    • Line 31: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 50: warning: exported type Decode should have comment or be unexported (golint)
    • Line 56: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 63: warning: exported method Decode.LastError should have comment or be unexported (golint)
    • Line 68: warning: exported method Decode.Available should have comment or be unexported (golint)
    • Line 73: warning: exported method Decode.HasBytes should have comment or be unexported (golint)
    • Line 89: warning: exported method Decode.Byte should have comment or be unexported (golint)
    • Line 102: warning: exported method Decode.Int16 should have comment or be unexported (golint)
    • Line 115: warning: exported method Decode.Uint32 should have comment or be unexported (golint)
    • Line 128: warning: exported method Decode.Int32 should have comment or be unexported (golint)
    • Line 141: warning: exported method Decode.Data should have comment or be unexported (golint)
    • Line 146: warning: exported method Decode.PeekByte should have comment or be unexported (golint)
    • Line 155: warning: exported method Decode.PeekInt16 should have comment or be unexported (golint)
    • Line 164: warning: exported method Decode.Copy should have comment or be unexported (golint)
    • Line 176: warning: comment on exported method Decode.Seek should be of the form "Seek ..." (golint)
    • honeytrap/services/ftp/ftpfs.go
    • Line 1: warning: package comment should be of the form "Package ftp ..." (golint)
    • Line 25: warning: exported type Fs should have comment or be unexported (golint)
    • Line 29: warning: exported function NewFileDriver should have comment or be unexported (golint)
    • Line 33: warning: exported method Fs.Init should have comment or be unexported (golint)
    • Line 36: warning: exported method Fs.Stat should have comment or be unexported (golint)
    • Line 47: warning: exported method Fs.ChangeDir should have comment or be unexported (golint)
    • Line 52: warning: exported method Fs.ListDir should have comment or be unexported (golint)
    • Line 68: warning: exported method Fs.DeleteDir should have comment or be unexported (golint)
    • Line 83: warning: exported method Fs.DeleteFile should have comment or be unexported (golint)
    • Line 88: warning: exported method Fs.Rename should have comment or be unexported (golint)
    • Line 95: warning: exported method Fs.MakeDir should have comment or be unexported (golint)
    • Line 101: warning: exported method Fs.GetFile should have comment or be unexported (golint)
    • Line 119: warning: exported method Fs.PutFile should have comment or be unexported (golint)
    • Line 179: warning: exported method Fs.CurDir should have comment or be unexported (golint)
    • honeytrap/listener/agent/decoder.go
    • Line 1: warning: package comment should be of the form "Package agent ..." (golint)
    • Line 24: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 30: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 34: warning: exported method Decoder.ReadData should have comment or be unexported (golint)
    • Line 50: warning: exported method Decoder.ReadString should have comment or be unexported (golint)
    • Line 66: warning: exported method Decoder.ReadAddr should have comment or be unexported (golint)
    • honeytrap/event/conn.go
    • Line 1: warning: package comment should be of the form "Package event ..." (golint)
    • Line 20: warning: exported type Conn should have comment or be unexported (golint)
    • Line 26: warning: exported method Conn.Options should have comment or be unexported (golint)
    • Line 30: warning: exported function WithConn should have comment or be unexported (golint)
    • honeytrap/event/event.go
    • Line 1: warning: package comment should be of the form "Package event ..." (golint)
    • Line 146: warning: comment on exported function SourceHardwareAddr should be of the form "SourceHardwareAddr ..." (golint)
    • Line 153: warning: comment on exported function DestinationHardwareAddr should be of the form "DestinationHardwareAddr ..." (golint)
    • honeytrap/listener/agent/encoder.go
    • Line 1: warning: package comment should be of the form "Package agent ..." (golint)
    • Line 24: warning: exported function NewEncoder should have comment or be unexported (golint)
    • Line 30: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 34: warning: exported method Encoder.WriteString should have comment or be unexported (golint)
    • Line 38: warning: exported method Encoder.WriteData should have comment or be unexported (golint)
    • Line 43: warning: exported method Encoder.WriteAddr should have comment or be unexported (golint)
    • honeytrap/listener/canary/udp/udp.go
    • Line 1: warning: package comment should be of the form "Package udp ..." (golint)
    • Line 21: warning: exported type Header should have comment or be unexported (golint)
    • Line 29: warning: exported function Unmarshal should have comment or be unexported (golint)
    • Line 53: warning: exported method Header.Marshal should have comment or be unexported (golint)
    • honeytrap/services/dns.go
    • Line 1: warning: package comment should be of the form "Package services ..." (golint)
    • Line 33: warning: comment on exported function DNS should be of the form "DNS ..." (golint)
    • honeytrap/messages/agent.go
    • Line 1: warning: package comment should be of the form "Package messages ..." (golint)
    • Line 18: warning: exported type Agent should have comment or be unexported (golint)
    • Line 27: warning: exported type AgentConnect should have comment or be unexported (golint)
    • Line 31: warning: exported type AgentDisconnect should have comment or be unexported (golint)
    • Line 35: warning: exported type AgentPing should have comment or be unexported (golint)
    • honeytrap/pushers/elasticsearch/retrier.go
    • Line 1: warning: package comment should be of the form "Package elasticsearch ..." (golint)
    • Line 25: warning: exported type Retrier should have comment or be unexported (golint)
    • Line 28: warning: exported method Retrier.Retry should have comment or be unexported (golint)
    • honeytrap/listener/agent/connections.go
    • Line 1: warning: package comment should be of the form "Package agent ..." (golint)
    • Line 21: warning: exported type Connections should have comment or be unexported (golint)
    • Line 26: warning: exported method Connections.Add should have comment or be unexported (golint)
    • Line 33: warning: exported method Connections.Each should have comment or be unexported (golint)
    • Line 42: warning: exported method Connections.Delete should have comment or be unexported (golint)
    • Line 56: warning: exported method Connections.Get should have comment or be unexported (golint)
    • honeytrap/pushers/pulsar/pulsar.go
    • Line 1: warning: package comment should be of the form "Package pulsar ..." (golint)
    • Line 43: warning: exported type Message should have comment or be unexported (golint)
    • Line 74: warning: exported type Config should have comment or be unexported (golint)
    • Line 80: warning: exported function Insecure should have comment or be unexported (golint)
    • Line 85: warning: exported function New should have comment or be unexported (golint)
    • honeytrap/services/ldap/bind_test.go
    • Line 45: warning: don't use underscores in Go names; var bindRequest_anon should be bindRequestAnon (golint)
    • Line 53: warning: don't use underscores in Go names; var bindRequest_nopassw should be bindRequestNopassw (golint)
    • Line 73: warning: don't use underscores in Go names; var bindResponse_succes should be bindResponseSucces (golint)
    • Line 81: warning: don't use underscores in Go names; var bindResponse_fail should be bindResponseFail (golint)
    • honeytrap/pushers/bus_channel.go
    • Line 1: warning: package comment should be of the form "Package pushers ..." (golint)
    • Line 21: warning: exported function NewBusChannel should have comment or be unexported (golint)
    • Line 25: warning: exported type BusChannel should have comment or be unexported (golint)
    • Line 28: warning: exported method BusChannel.Send should have comment or be unexported (golint)
    • honeytrap/listener/canary/ipv4/ipv4.go
    • Line 1: warning: package comment should be of the form "Package ipv4 ..." (golint)
    • Line 25: warning: exported const Version should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type HeaderFlags should have comment or be unexported (golint)
    • Line 33: warning: exported const MoreFragments should have comment (or a comment on this block) or be unexported (golint)
    • Line 111: warning: comment on exported function Parse should be of the form "Parse ..." (golint)
    • Line 117: warning: exported method Header.Unmarshal should have comment or be unexported (golint)
    • honeytrap/services/ntp.go
    • Line 1: warning: package comment should be of the form "Package services ..." (golint)
    • Line 29: warning: comment on exported function NTP should be of the form "NTP ..." (golint)
    • honeytrap/services/ftp/auth.go
    • Line 1: warning: package comment should be of the form "Package ftp ..." (golint)
    • Line 16: warning: exported type Auth should have comment or be unexported (golint)
    • Line 20: warning: exported type User should have comment or be unexported (golint)
    • Line 24: warning: exported method User.CheckPasswd should have comment or be unexported (golint)
    • honeytrap/listener/canary/icmp/icmp.go
    • Line 1: warning: package comment should be of the form "Package icmp ..." (golint)
    • Line 23: warning: exported const ICMPv4TypeEchoReply should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: comment on exported const ICMPv4CodeNet should be of the form "ICMPv4CodeNet ..." (golint)
    • Line 43: warning: exported const ICMPv4CodeHost should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: comment on exported const ICMPv4CodeTTLExceeded should be of the form "ICMPv4CodeTTLExceeded ..." (golint)
    • Line 63: warning: comment on exported const ICMPv4CodePointerIndicatesError should be of the form "ICMPv4CodePointerIndicatesError ..." (golint)
    • Line 68: warning: comment on exported const ICMPv4CodeTOSNet should be of the form "ICMPv4CodeTOSNet ..." (golint)
    • Line 159: warning: exported type ICMPv4TypeCode should have comment or be unexported (golint)
    • Line 195: warning: exported method ICMPv4TypeCode.GoString should have comment or be unexported (golint)
    • Line 211: warning: exported type ICMPv4 should have comment or be unexported (golint)
    • Line 220: warning: exported function Parse should have comment or be unexported (golint)
    • honeytrap/services/filesystem/htfs.go
    • Line 1: warning: package comment should be of the form "Package filesystem ..." (golint)
    • Line 31: warning: exported type Htfs should have comment or be unexported (golint)
    • Line 39: warning: comment on exported method Htfs.RealPath should be of the form "RealPath ..." (golint)
    • Line 54: warning: exported method Htfs.Cwd should have comment or be unexported (golint)
    • Line 59: warning: exported method Htfs.ChangeDir should have comment or be unexported (golint)
    • Line 80: warning: exported function New should have comment or be unexported (golint)
    • honeytrap/services/ipp/ipp.go
    • Line 1: warning: package comment should be of the form "Package ipp ..." (golint)
    • Line 39: warning: exported function IPP should have comment or be unexported (golint)
    • Line 57: warning: exported type Config should have comment or be unexported (golint)
    • honeytrap/server/honeytrap.go
    • Line 1: warning: package comment should be of the form "Package server ..." (golint)
    • Line 34: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 44: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 60: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 74: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 154: warning: comment on exported type ServiceMap should be of the form "ServiceMap ..." (with optional leading article) (golint)
    • Line 163: warning: exported var ErrNoServicesGivenPort should have comment or be unexported (golint)
    • Line 246: warning: comment on exported function ToAddr should be of the form "ToAddr ..." (golint)
    • Line 278: warning: exported function IsTerminal should have comment or be unexported (golint)
    • Line 604: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • honeytrap/director/director.go
    • Line 1: warning: package comment should be of the form "Package director ..." (golint)
    • Line 27: warning: exported function Register should have comment or be unexported (golint)
    • Line 32: warning: exported function Get should have comment or be unexported (golint)
    • Line 40: warning: exported function GetAvailableDirectorNames should have comment or be unexported (golint)
    • Line 57: warning: exported type SetChanneler should have comment or be unexported (golint)
    • Line 61: warning: exported function WithChannel should have comment or be unexported (golint)
    • Line 70: warning: exported type TomlDecoder should have comment or be unexported (golint)
    • Line 74: warning: exported function WithConfig should have comment or be unexported (golint)
    • honeytrap/pushers/marija/marija.go
    • Line 1: warning: package comment should be of the form "Package marija ..." (golint)
    • Line 45: warning: exported function New should have comment or be unexported (golint)
    • Line 61: warning: exported function Insecure should have comment or be unexported (golint)
    • honeytrap/services/ssh/ssh-simulator.go
    • Line 1: warning: package comment should be of the form "Package ssh ..." (golint)
    • Line 57: warning: exported function Simulator should have comment or be unexported (golint)
    • Line 112: warning: exported function PayloadDecoder should have comment or be unexported (golint)
    • honeytrap/services/ldap/conn.go
    • Line 1: warning: package comment should be of the form "Package ldap ..." (golint)
    • Line 23: warning: exported type Conn should have comment or be unexported (golint)
    • Line 31: warning: exported function NewConn should have comment or be unexported (golint)
    • Line 39: warning: comment on exported method Conn.StartTLS should be of the form "StartTLS ..." (golint)
    • honeytrap/listener/dummy.go
    • Line 1: warning: package comment should be of the form "Package listener ..." (golint)
    • Line 21: warning: exported function MustDummy should have comment or be unexported (golint)
    • Line 26: warning: exported function Dummy should have comment or be unexported (golint)
    • honeytrap/pushers/dshield/messages.go
    • Line 1: warning: package comment should be of the form "Package dshield ..." (golint)
    • Line 22: warning: exported type Submit should have comment or be unexported (golint)
    • Line 29: warning: exported type HTTPEvent should have comment or be unexported (golint)
    • Line 42: warning: exported method HTTPEvent.MarshalJSON should have comment or be unexported (golint)
    • Line 61: warning: exported type SSHEvent should have comment or be unexported (golint)
    • Line 73: warning: exported method SSHEvent.MarshalJSON should have comment or be unexported (golint)
    • honeytrap/services/smtp/server.go
    • Line 1: warning: package comment should be of the form "Package smtp ..." (golint)
    • Line 22: warning: exported type Handler should have comment or be unexported (golint)
    • Line 26: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 28: warning: exported type ServeMux should have comment or be unexported (golint)
    • Line 33: warning: exported method ServeMux.HandleFunc should have comment or be unexported (golint)
    • Line 40: warning: exported function HandleFunc should have comment or be unexported (golint)
    • Line 45: warning: exported var DefaultServeMux should have comment or be unexported (golint)
    • Line 47: warning: exported function NewServeMux should have comment or be unexported (golint)
    • Line 49: warning: exported method ServeMux.Serve should have comment or be unexported (golint)
    • Line 58: warning: exported type Server should have comment or be unexported (golint)
    • honeytrap/storage/storage.go
    • Line 1: warning: package comment should be of the form "Package storage ..." (golint)
    • Line 31: warning: comment on exported function SetDataDir should be of the form "SetDataDir ..." (golint)
    • Line 41: warning: comment on exported function MustDB should be of the form "MustDB ..." (golint)
    • honeytrap/services/ja3/crypto/tls/common.go
    • Line 28: warning: exported const VersionSSL30 should have comment (or a comment on this block) or be unexported (golint)
    • Line 101: warning: exported const CurveP256 should have comment (or a comment on this block) or be unexported (golint)
    • Line 182: warning: exported const NoClientCert should have comment (or a comment on this block) or be unexported (golint)
    • Line 219: warning: exported const PKCS1WithSHA1 should have comment (or a comment on this block) or be unexported (golint)
    • Line 232: warning: comment on exported const ECDSAWithSHA1 should be of the form "ECDSAWithSHA1 ..." (golint)
    • Line 292: warning: exported method ClientHelloInfo.JA3 should have comment or be unexported (golint)
    • Line 340: warning: exported method ClientHelloInfo.JA3Digest should have comment or be unexported (golint)
    • honeytrap/services/ssh/type_writer.go
    • Line 1: warning: package comment should be of the form "Package ssh ..." (golint)
    • Line 24: warning: exported function NewTypeWriterReadCloser should have comment or be unexported (golint)
    • Line 28: warning: exported type TypeWriterReadWriteCloser should have comment or be unexported (golint)
    • Line 63: warning: exported method TypeWriterReadWriteCloser.Close should have comment or be unexported (golint)
    • honeytrap/event/map.go
    • Line 1: warning: package comment should be of the form "Package event ..." (golint)
    • Line 27: warning: exported method Event.MarshalJSON should have comment or be unexported (golint)
    • honeytrap/services/dns-proxy.go
    • Line 1: warning: package comment should be of the form "Package services ..." (golint)
    • Line 32: warning: comment on exported function DNSProxy should be of the form "DNSProxy ..." (golint)
    • honeytrap/services/ftp/driver.go
    • Line 1: warning: package comment should be of the form "Package ftp ..." (golint)
    • Line 21: warning: comment on exported type DriverFactory should be of the form "DriverFactory ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported type Driver should be of the form "Driver ..." (with optional leading article) (golint)
    • honeytrap/pushers/rabbitmq/rabbitmq.go
    • Line 1: warning: package comment should be of the form "Package rabbitmq ..." (golint)
    • Line 36: warning: exported type AMQPConfig should have comment or be unexported (golint)
    • Line 41: warning: exported function New should have comment or be unexported (golint)
    • Line 85: warning: exported type AMQPObject should have comment or be unexported (golint)
    • Line 93: warning: exported method AMQPObject.Send should have comment or be unexported (golint)
    • honeytrap/pushers/raven/raven.go
    • Line 1: warning: package comment should be of the form "Package raven ..." (golint)
    • Line 46: warning: exported function New should have comment or be unexported (golint)
    • Line 62: warning: exported function Insecure should have comment or be unexported (golint)
    • honeytrap/server/options.go
    • Line 1: warning: package comment should be of the form "Package server ..." (golint)
    • Line 25: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 34: warning: exported type OptionFn should have comment or be unexported (golint)
    • Line 36: warning: exported function WithMemoryProfiler should have comment or be unexported (golint)
    • Line 43: warning: exported function WithCPUProfiler should have comment or be unexported (golint)
    • Line 50: warning: exported function WithConfig should have comment or be unexported (golint)
    • Line 61: warning: exported function WithRemoteConfig should have comment or be unexported (golint)
    • Line 77: warning: exported function WithDataDir should have comment or be unexported (golint)
    • Line 119: warning: exported function WithToken should have comment or be unexported (golint)
    • honeytrap/listener/canary/ethernet/ethernet.go
    • Line 1: warning: package comment should be of the form "Package ethernet ..." (golint)
    • Line 22: warning: exported type Frame should have comment or be unexported (golint)
    • Line 31: warning: exported function Parse should have comment or be unexported (golint)
    • Line 39: warning: exported method Frame.Unmarshal should have comment or be unexported (golint)
    • honeytrap/services/adb.go
    • Line 1: warning: package comment should be of the form "Package services ..." (golint)
    • Line 30: warning: exported function Adb should have comment or be unexported (golint)
    • honeytrap/pushers/dshield/dshield.go
    • Line 1: warning: package comment should be of the form "Package dshield ..." (golint)
    • Line 70: warning: exported function New should have comment or be unexported (golint)
    • Line 106: warning: exported function Insecure should have comment or be unexported (golint)
    • Line 111: warning: exported function GetMyIP should have comment or be unexported (golint)
    • Line 133: warning: exported method Backend.MakeAuthHeader should have comment or be unexported (golint)
    • honeytrap/web/metadata.go
    • Line 1: warning: package comment should be of the form "Package web ..." (golint)
    • Line 21: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 29: warning: exported method Metadata.MarshalJSON should have comment or be unexported (golint)
    • honeytrap/services/ldap/constants.go
    • Line 1: warning: package comment should be of the form "Package ldap ..." (golint)
    • Line 17: warning: comment on exported const AppBindRequest should be of the form "AppBindRequest ..." (golint)
    • Line 19: warning: exported const AppBindResponse should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: comment on exported const ResSuccess should be of the form "ResSuccess ..." (golint)
    • honeytrap/listener/options.go
    • Line 1: warning: package comment should be of the form "Package listener ..." (golint)
    • Line 23: warning: exported type AddAddresser should have comment or be unexported (golint)
    • Line 27: warning: exported function WithAddress should have comment or be unexported (golint)
    • Line 42: warning: exported type SetChanneler should have comment or be unexported (golint)
    • Line 46: warning: exported function WithChannel should have comment or be unexported (golint)
    • Line 55: warning: exported type TomlDecoder should have comment or be unexported (golint)
    • Line 59: warning: exported function WithConfig should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!