Editing Netcat

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
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.
+
{{Draft}}
 +
 
  
 
* Windows: <code>[[ncat]].exe</code>
 
* Windows: <code>[[ncat]].exe</code>
Line 11: Line 12:
 
* <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 (see also <code>[[socat]]</code>):
+
* Forward port:
 
:<code>nc -l -p ORIGIN_PORT -c 'nc DESTINATION_IP DESTINATIO_PORT'</code>
 
:<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>
 
:<code>nc -l -p 2222 -c 'nc 10.10.10.4 8888'</code>
  
:<code>nc <IPaddress or FQDN> <port number></code>
 
 
 
[[nc]] -vnzu  5x.253.51.xxx 4501
 
Connection to 5x.253.51.xxx 4501 port [udp/*] succeeded!
 
-u Use UDP
 
[[nc -v|-v]] verbose
 
-z  specifies that nc should just scan for listening daemons, without sending any data to them
 
 
nc -zv google.com 80
 
Connection to google.com 80 port [tcp/http] succeeded!
 
 
nc -zv google.com 443
 
Connection to google.com 443 port [tcp/https] succeeded!
 
 
[[UDP]] (-u)
 
nc -u XXXXX
 
  
 
== Related commands ==
 
== Related commands ==
 
* <code>[[iperf]]</code>
 
* <code>[[iperf]]</code>
* <code>[[pv]] </[[dev]]/[[zero]] | ssh REMOTE_SERVER 'cat >/dev/[[null]]'</code>
+
* <code>[[pv]] </dev/[[zero]] | ssh REMOTE_SERVER 'cat >/dev/[[null]]'</code>
* <code>[[nping]]</code>
 
* <code>[[netstat]]</code>
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: