Great answer with one small modification: adding -p to the "port"
Recipient:
nc -l -p 8011 >logfile.txt
I pulled out the nc help file (nc -h) using your suggestion
Sender:
nc -h 2>&1 | nc 127.0.0.1 8011
I tried
nc -h > logfile.txt nc -h >> logfile.txt
which never worked.
I am running netcat for Windows 7 in 2 cmd.exe
Thanks again
source share