
The netcat manual defines netcat as Netcat is a computer networking service for reading from and writing network connections using TCP or UDP. Therefore its called the "Swiss-army knife for TCP/IP".

So it is a small tool that is packed with lots of features. So we have a netcat.exe file at Windows 7 and preinstalled Netcat (NC) binary in Kali LinuxĪt Kali machine setup a listener by giving this command.Its a "power version" of the traditional telnet program.Īpart from basic telnet functions it can do various other things like creating socket servers to listen for incoming connections on ports, transfer files from the terminal etc. This can be accomplished in multiple ways. Victim PC: Windows 7 (IP address: 192.168.43.200 )įirst of all, we have to deliver a netcat.exe Windows binary executable to the victim machine. To bypass the firewall we can make use of a reverse connection from our victim machine to us, which will bypass the firewall, as most of the firewalls did not block outgoing traffic on mostly used ports like port 80 and 443 ( HTTP and HTTPS).Īttacker Machine: Kali Linux (IP address: 192.168.43.76 ) The bind connection is that when you have to connect to the remote IP address and port number, which is, most of the time does not work due to the presence of a firewall at another end, which is blocking all incoming connections unless the port is in the exception list. A utility like Netcat helps us to get a reverse shell in multiple situations like getting shell while RCE in web applications, during post-exploitation, and many more.

Ncat or Netcat is a feature-packed networking utility which reads and writes raw data across networks from the command line. This article explains how the two types of connections, Reverse connection and Bind connection are made to get a shell on the box with Netcat utility.
