netcat

From Wikipedia, the free encyclopedia

netcat
Developed by *Hobbit*[citation needed]
Latest release 1.10 / March 20, 1996
OS UNIX
Genre Network utility
License None[citation needed]
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.

Netcat was voted the second most useful network security tool in a 2000 poll conducted by insecure.org on the nmap users mailing list.[1] In 2003, it gained fourth place,[2] a position it also held in the 2006 poll.[3]

Contents

[edit] 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

[edit] Variants

The original version of netcat is a UNIX program. Its author is known as *Hobbit*. He released version 1.1 in March of 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.

[edit] References

  1. ^ Top 50 Security Tools (2000). Retrieved on 2007-09-30.
  2. ^ Top 75 Security Tools (2003). Retrieved on 2007-09-30.
  3. ^ Top 100 Security Tools (2006). Retrieved on 2008-02-18.

[edit] See also

[edit] External links