Open ghost-ng opened 3 years ago
im fairly certain this is not the best way to do this, but i solved the problem with a loop:
for {
socksClient, err := remoteListener.Accept()
if err != nil {
return fmt.Errorf("could not handle incoming socks client request: %s", err)
}
conf := &socks5.Config{}
server, err := socks5.New(conf)
if err != nil {
return fmt.Errorf("failed creating new Socks server: %s", err)
}
server.ServeConn(socksClient)
}
//return server.ServeConn(socksClient)
}
my program:
On connection:
Proxychains Error (the port should be open)
the exe then quits. This happens with and without the "select {}"
Update 1: seems to work with netcat, but not with nmap - either way though, it closes after the first connection (regardless of error); my initial thought is that nmap scans dont work because of the immediate close, see update 2
Update 2:
I used the code in the front page readme