21MEI10003 Anshul Patidar Netcat
21MEI10003 Anshul Patidar Netcat
Ethical Hacking
Capabilities
The capabilities of Netcat are as follows −
Capability of using any local source port
Port-scanning capabilities
Having Slow send mode
Outbound or inbound and TCP or UDP connections from any port or to any
port
Full DNS forward and reverse checking
Loose source routing
Netcat is one of the most powerful networking tools, security tools, and
network monitoring tools. It acts like a cat command over a network. It is
even considered a Swiss army knife of networking tools. It is generally used
for the following reasons:
File Transfers:
Netcat can be used to transfer files between systems. On the receiving end, use
the "-l" option and specify the port number. On the sending end, specify the
remote IP address and port:
On the receiving end: nc -l <port_number> > output_file
On the sending end: nc <IP_address> <port_number> < input_file
Proxying:
Netcat can act as a simple proxy server. For example, to proxy connections from
local port 8080 to a remote system:
nc -l -p 8080 -c 'nc <remote_IP> <remote_port>'