Difference between revisions of "Netcat"

From wikieduonline
Jump to navigation Jump to search
Line 11: Line 11:
 
* <code>echo "text to send" | nc IP port</code>
 
* <code>echo "text to send" | nc IP port</code>
 
* <code>echo "text to send" | nc 10.10.10.10  54</code>
 
* <code>echo "text to send" | nc 10.10.10.10  54</code>
 +
 +
* Forward port:
 +
:<code>nc -l -p ORIGIN_PORT -c 'nc DESTINATION_IP DESTINATIO_PORT'</code>
 +
:<code>nc -l -p 2222 -c 'nc 10.10.10.4 8888'</code>
  
 
== See also ==
 
== See also ==

Revision as of 15:18, 4 February 2020

This article is a Draft. Help us to complete it.


  • Windows: ncat.exe
  • Linux:


nc examples

  • echo "text to send" | nc IP port
  • echo "text to send" | nc 10.10.10.10 54
  • Forward port:
nc -l -p ORIGIN_PORT -c 'nc DESTINATION_IP DESTINATIO_PORT'
nc -l -p 2222 -c 'nc 10.10.10.4 8888'

See also

Advertising: