Thursday, April 30, 2015

Install NetCat on Linux ( CentOS / Fedora / RedHat et.. )

NetCat often referred to as a Swiss army knife of networking tools, this versatile command can assist you in monitoring, testing, and sending data across network connections.

1) Download appropriate RPM build for NetCat utility
 http://rpm.pbone.net/index.php3?stat=3&limit=1&srodzaj=3&dl=40&search=netcat

I used below rpm for CentOS :
http://rpm.pbone.net/index.php3/stat/4/idpl/21781849/dir/centos_6/com/netcat-1.10-891.1.x86_64.rpm.html

2) Install RPM package using RPM command.

$ rpm -ivh netcat-1.10-891.1.x86_64.rpm

3) Test netcat

Create Server / Listen on TCP port
$ netcat -l -p 4444

Connect to Server / TCP Client

$ netcat localhost 4444

Now whatever you type in Client terminal that will be echoed in Server terminal.


 

No comments:

Post a Comment