ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

ubuntu16.04中Netcat安装

2021-03-22 18:02:27  阅读:419  来源: 互联网

标签:bin ubuntu16.04 ... nc traditional larry 软件包 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

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有