Created
August 16, 2013 17:34
-
-
Save Kurt-P/6251859 to your computer and use it in GitHub Desktop.
How to use netcat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#to send with netcat | |
nc -p 9000 -l < '/path/to/file | |
#e.g. nc -p 9000 -l /home/user/text.txt | |
#to receve with netcat | |
nc 0.0.0.0 (ip of sender) 'port number' > '/path/to/save/file | |
#e.g. nc 128.101.71.9 9000 > /home/kurt/text.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment