=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== gortr-0.14.6/cmd/gortr/gortr.go-802- sshConfig.PasswordCallback = func(conn ssh.ConnMetadata, password []byte) (*ssh.Permissions, error) { gortr-0.14.6/cmd/gortr/gortr.go:803: log.Infof("Connected (ssh-password): %v/%v", conn.User(), conn.RemoteAddr()) gortr-0.14.6/cmd/gortr/gortr.go-804- if conn.User() != *SSHAuthUser || !bytes.Equal(password, []byte(*SSHAuthPassword)) { gortr-0.14.6/cmd/gortr/gortr.go:805: log.Warnf("Wrong user or password for %v/%v. Disconnecting.", conn.User(), conn.RemoteAddr()) gortr-0.14.6/cmd/gortr/gortr.go-806- return nil, errors.New("Wrong user or password") ############################################## gortr-0.14.6/cmd/gortr/gortr.go-837- log.Infof("Connected (ssh-key): %v/%v with key %v %v (matched with line %v)", gortr-0.14.6/cmd/gortr/gortr.go:838: conn.User(), conn.RemoteAddr(), key.Type(), keyBase64, i+1) gortr-0.14.6/cmd/gortr/gortr.go-839- noKeys = true ############################################## gortr-0.14.6/cmd/gortr/gortr.go-843- if !noKeys { gortr-0.14.6/cmd/gortr/gortr.go:844: log.Warnf("No key for %v/%v %v %v. Disconnecting.", conn.User(), conn.RemoteAddr(), key.Type(), keyBase64) gortr-0.14.6/cmd/gortr/gortr.go-845- return nil, errors.New("Key not found") ############################################## gortr-0.14.6/cmd/gortr/gortr.go-847- } else { gortr-0.14.6/cmd/gortr/gortr.go:848: log.Infof("Connected (ssh-key): %v/%v with key %v %v", conn.User(), conn.RemoteAddr(), key.Type(), keyBase64) gortr-0.14.6/cmd/gortr/gortr.go-849- } ############################################## gortr-0.14.6/lib/client.go-165-func (c *ClientSession) StartPlain(addr string) error { gortr-0.14.6/lib/client.go:166: addrTCP, err := net.ResolveTCPAddr("tcp", addr) gortr-0.14.6/lib/client.go-167- if err != nil { ############################################## gortr-0.14.6/lib/client.go-185-func (c *ClientSession) StartSSH(addr string, config *ssh.ClientConfig) error { gortr-0.14.6/lib/client.go:186: addrTCP, err := net.ResolveTCPAddr("tcp", addr) gortr-0.14.6/lib/client.go-187- if err != nil { ############################################## gortr-0.14.6/lib/server.go-601- if s.log != nil { gortr-0.14.6/lib/server.go:602: s.log.Warnf("Could not accept %s connection from %v (not enough slots available: %d)", logEnv, tcpconn.RemoteAddr(), s.maxconn) gortr-0.14.6/lib/server.go-603- } ############################################## gortr-0.14.6/lib/server.go-606- if s.log != nil { gortr-0.14.6/lib/server.go:607: s.log.Infof("Accepted %s connection from %v (%d/%d)", logEnv, tcpconn.RemoteAddr(), s.connected+1, s.maxconn) gortr-0.14.6/lib/server.go-608- } ############################################## gortr-0.14.6/lib/server.go-611- if err != nil && s.log != nil { gortr-0.14.6/lib/server.go:612: s.log.Errorf("Error with %s client %v: %v", logEnv, tcpconn.RemoteAddr(), err) gortr-0.14.6/lib/server.go-613- } ############################################## gortr-0.14.6/lib/server.go-708-func (c *Client) String() string { gortr-0.14.6/lib/server.go:709: return fmt.Sprintf("%v (v%v) / Serial: %v", c.tcpconn.RemoteAddr(), c.version, c.curserial) gortr-0.14.6/lib/server.go-710-} ############################################## gortr-0.14.6/lib/server.go-712-func (c *Client) GetRemoteAddress() net.Addr { gortr-0.14.6/lib/server.go:713: return c.tcpconn.RemoteAddr() gortr-0.14.6/lib/server.go-714-} ############################################## gortr-0.14.6/lib/server.go-716-func (c *Client) GetLocalAddress() net.Addr { gortr-0.14.6/lib/server.go:717: return c.tcpconn.LocalAddr() gortr-0.14.6/lib/server.go-718-}