ubuntu16.04中Netcat安装
作者:互联网
参考链接:https://www.jianshu.com/p/91dd4ab317c7
具体代码
larry@larry-VirtualBox:~$ sudo apt-get -y install netcat-traditional
[sudo] larry 的密码:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列【新】软件包将被安装:
netcat-traditional
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 26 个软件包未被升级。
需要下载 60.7 kB 的归档。
解压缩后会消耗 161 kB 的额外空间。
获取:1 http://mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 netcat-traditional amd64 1.10-41 [60.7 kB]
已下载 60.7 kB,耗时 5秒 (12.0 kB/s)
正在选中未选择的软件包 netcat-traditional。
(正在读取数据库 ... 系统当前共安装有 334533 个文件和目录。)
正准备解包 .../netcat-traditional_1.10-41_amd64.deb ...
正在解包 netcat-traditional (1.10-41) ...
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在设置 netcat-traditional (1.10-41) ...
larry@larry-VirtualBox:~$ sudo update-alternatives --config nc
有 2 个候选项可用于替换 nc (提供 /bin/nc)。
选择 路径 优先级 状态
------------------------------------------------------------
* 0 /bin/nc.openbsd 50 自动模式
1 /bin/nc.openbsd 50 手动模式
2 /bin/nc.traditional 10 手动模式
要维持当前值[*]请按<回车键>,或者键入选择的编号:2
update-alternatives: 使用 /bin/nc.traditional 来在手动模式中提供 /bin/nc (nc)
larry@larry-VirtualBox:~$ nc -h
[v1.10-41]
connect to somewhere: nc [-options] hostname port[s] [ports] ...
listen for inbound: nc -l -p port [-options] [hostname] [port]
options:
-c shell commands as `-e'; use /bin/sh to exec [dangerous!!]
-e filename program to exec after connect [dangerous!!]
-b allow broadcasts
-g gateway source-routing hop point[s], up to 8
-G num source-routing pointer: 4, 8, 12, ...
-h this cruft
-i secs delay interval for lines sent, ports scanned
-k set keepalive option on socket
-l listen mode, for inbound connects
-n numeric-only IP addresses, no DNS
-o file hex dump of traffic
-p port local port number
-r randomize local and remote ports
-q secs quit after EOF on stdin and delay of secs
-s addr local source address
-T tos set Type Of Service
-t answer TELNET negotiation
-u UDP mode
-v verbose [use twice to be more verbose]
-w secs timeout for connects and final net reads
-C Send CRLF as line-ending
-z zero-I/O mode [used for scanning]
port numbers can be individual or ranges: lo-hi [inclusive];
hyphens in port names must be backslash escaped (e.g. 'ftp\-data').
larry@larry-VirtualBox:~$
标签:bin,ubuntu16.04,...,nc,traditional,larry,软件包,Netcat,安装 来源: https://blog.csdn.net/qq_31648921/article/details/115089163