Linux Netcat commands
1. Introduction
netcat is the swiss army knife of networking tools, it can read and write data over the network via TCP and UDP. What netcat does is create a link between two computers and return two streams of data. By combining and redirecting with other tools, you can use it in a script in many ways. You can set up a server, transfer files, communicate with Chat with friends, transmit streaming media or use it as a standalone client for other protocols
2) Install
wget from source http://ncu.dl.sourceforge.net/project/netcat/netcat/0.7.1/netcat-0.7.1.tar .gz
3. Installation
Unzip tar -zxvf netcat-0.7.1.tar.gz
To configure, store the file in /opt/netcat. When deleting or uninstalling the software, just delete this file:
./configure –prefix=/opt/netcat
compile make
install make install
4. Configuration
vim /etc/profile
Add the following:
set netcat path
export NETCAT_HOME=/opt/netcat
export PATH=[Math Processing Error]NETCAT_HOME/bin
Save, exit, and make the configuration take effect:
source /etc/profile
5. Inspection
nc -help succeeded