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

 

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 31.41.59.26 6868 < file.txt


View Comments »




Comments 

Add your comment

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

Client:
nc -l -p 6868 | tar -xvvf -

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

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit