1.下载netcat,下载地址:https://sourceforge.net/projects/netcat/files/netcat/
2.编译安装1
2
3
4
5tar -xzvf netcat-0.7.1.tar.gz
cd netcat-0.7.1
./configure --prefix=/opt/netcat/netcat0.7.1
make
make install
3.创建软连接1
ln -s /opt/netcat/netcat0.7.1/bin/netcat /bin/netcat
4.验证1
2
3nc –help
或者:
./netcat