Windows: Netcat
nc -l -p 4444 On Machine B (Client):
In this post, I’ll show you where to get a reliable Windows Netcat binary, how to install it, and the most useful practical commands for debugging, file transfers, and reverse shells. There are several variants of Netcat for Windows. The most widely trusted is the original Nmap distribution’s Netcat ( ncat ) or the classic nc.exe from the era of security toolkits.
On Server (listening):
nc -l -p 5555 > received_file.txt On Client:
nc 192.168.1.Server 5555 < C:\folder\myfile.txt No SMB, no USB drive – just raw TCP. Need to share a directory quickly? netcat windows
ncat -l -p 8080 --keep-open --sh-exec "type index.html" Then visit http://localhost:8080 in your browser. This is the most famous (and dangerous) use case. Use only on machines you own or have explicit permission to test.
ncat [options] [target host] [port] Check your version: nc -l -p 4444 On Machine B (Client):
while ($true) { nc -l -p 8080 -c "echo -e 'HTTP/1.1 200 OK\n\n Hello from Windows Netcat!'" } Or with Ncat’s --keep-open and a static file: