netcat
![]() | |
Developer(s) | *Hobbit*[1] |
---|---|
Stable release | |
Operating system | UNIX |
Type | Network utility |
License | Permissive free software[2] |
Website | http://www.vulnwatch.org/netcat/ |
netcat is a computer networking utility for reading from and writing to network connections on either TCP or UDP. It goes by the tag-line of "The Swiss-army knife for TCP/IP."
Netcat was voted the second most useful network security tool in a 2000 poll conducted by insecure.org on the nmap users mailing list.[3] In 2003, it gained fourth place,[4] a position it also held in the 2006 poll.[1]
Examples
Copy files from machine foo to bar on port 3333 (-l, listen):
user@bar$ nc -l -p 3333 > backup.iso user@foo$ nc bar 3333 < backup.iso
Open a raw connection to port 25 (like telnet):
nc mail.server.net 25
Check if UDP ports (-u) 80-90 are open on 192.168.0.1 using zero mode I/O (-z):
nc -vzu 192.168.0.1 80-90
Pipe via UDP (-u) with a wait time (-w) of 1 second to 'loggerhost' on port 514
echo '<0>message' | nc -w 1 -u loggerhost 514
Variants
The original version of netcat is a UNIX program. Its author is known as *Hobbit*. He released version 1.1 in March 1996.
Netcat is fully POSIX compatible and there exist several implementations, including a rewrite from scratch known as GNU netcat, which is maintained by Giovanni Giacobbi and an MS-Windows version of netcat created by Chris Wysopal. Andreas Bischoff has ported the Windows version to Windows CE (now known as Windows Mobile).
On some systems, modified versions or similar utilities go by the command name(s) nc, ncat, pnetcat, socat, sock, socket, sbd.
socat is a more complex cousin of netcat. It is larger and more flexible than netcat, and has more options that must be configured for a given task.
Cryptcat is a version of netcat with integrated transport encryption capabilities.
References
- ^ a b "Top 100 Security Tools". 2006. Retrieved 2008-02-18.
- ^ "Copyright file". Debian. Retrieved 2008-09-06.
- ^ "Top 50 Security Tools". 2000. Retrieved 2007-09-30.
- ^ "Top 75 Security Tools". 2003. Retrieved 2007-09-30.
See also
External links
- OpenBSD nc(1) man page via OpenBSD
- GNU netcat
- Download Netcat for Windows -- Md5sum=37f2383aa4e825e7005c74099f8bb2c3
- Socat
- Netcat for Windows CE (PocketPC, Windows Mobile)
- Advanced Netcat Tutorial
- Netcat - a couple of useful examples