//View Tip #516
Similar Tips
» Because wireshark is big and nc is small.
» Local/remote webserver


Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
On client machine
nc -lpvv port > file

On server machine
nc -vv clientip port < file

Example :
Client: nc -l -p 6868 > file.txt
Server: nc 6868 < file.txt

View Comments »


Add your comment

Comments are currently disabled
Sweet.  Great for pen-testing. Thanks!
Posted 2009-02-06 14:50:52
I use something quite similar, but IMO simpler, especially for more than one file:

nc -l -p 6868 | tar -xvvf -

tar -cvvf - file.txt | nc -w 1 6868
Posted 2009-02-07 09:39:07

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit