Difference between revisions of "Netcat"

From wikieduonline
Jump to navigation Jump to search
Line 16: Line 16:
 
:<code>nc -l -p 2222 -c 'nc 10.10.10.4 8888'</code>
 
:<code>nc -l -p 2222 -c 'nc 10.10.10.4 8888'</code>
  
 +
:<code><nc<IPaddress or FQDN> <port number></code>
  
 
== Related commands ==
 
== Related commands ==

Revision as of 11:09, 6 April 2020

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

Netcat is the swiss army knife of the hackers. Netcat is used for file (exploit) transfer, finding open ports & remote administration (Bind & Reverse Shells). You can manually connect to any network service like HTTP using netcat. Another utility is to listen on any udp/tcp ports on your machine for any incoming connections.

  • 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'
<nc<IPaddress or FQDN> <port number>

Related commands

See also

Advertising: