Simple TCP Relaying with NetCat
# setup listener on port 22
nc -lvvp 22
# setup listener on port 4444 and direct stdout to port 22 using netcat
nc -lvvp 4444 | nc localhost 22
# send a string "test" to port 4444 using netcat
echo test | nc localhost 4444
PreviousWMI + PowerShell Desired State Configuration Lateral MovementNextEmpire Shells with NetNLTMv2 Relaying
Last updated