Netcat 及 Cryptcat 简单介绍和使用

0x00 Netcat

一、简介

  它是一个小型的网络工具,不过其功能强大,主要通过建立 TCP 链接或使用无连接的 UDP 进行数据传输等,所以其主要功能是通过 TCP 和 UDP 等协议的工作作用设计的。

二、功能

1.端口扫描
  • $nc -z -v -n 172.31.100.7 21-25
2.做服务器端或客户端
  • 用来监听某个端口或连接某个端口
3.传输数据
  • 主要通过其他程序对文件进行压缩等操作后进行传输。

三、命令

	[使用]
		nc [-46bCDdhjklnrStUuvZz] [-I length] [-i interval] [-O length]
		   [-P proxy_username] [-p source_port] [-q seconds] [-s source]
	       [-T toskeyword] [-V rtable] [-w timeout] [-X proxy_protocol]
	       [-x proxy_address[:port]] [destination] [port]
	[命令参数]
		-4		       Use IPv4
		-6		       Use IPv6
		-I length	   设置 TCP 接收缓存为 length
		-i secs		   设置延迟发送时间为 secs
		-O length	   设置 TCP 发送缓存为 length
		-w secs		   设置超时时间为 secs
				
		-k		       持续监听
		-l		       开启监听模式
		-p port		   设置监听端口为 port
		-s addr		   指定本机发送地址		
		-u		       UDP 协议模式   //主要用于端口扫描
		-z		       扫描建立连接后关闭不进行数据交互
		-v		       显示详细的交互信息
				
		-D		Enable the debug socket option
		-d		Detach from stdin		
		-n		Suppress name/port resolutions		
		-P proxyuser	Username for proxy authentication
		-T toskeyword	Set IP Type of Service
		-t		Answer TELNET negotiation
		-U		Use UNIX domain socket
	    -q secs		quit after EOF on stdin and delay of secs
		-r		Randomize remote ports
		-S		Enable the TCP MD5 signature option
		-X proto	Proxy protocol: "4", "5" (SOCKS) or "connect"
		-x addr[:port]	Specify proxy address and port

0x01 Cryptcat

一、简介

  该程序和 Netcat 主要功能相同,是 Netcat 的加密版本。

二、命令

	[使用]
		connect to somewhere:	cryptcat [-options] hostname port[s] [ports] ... 
		listen for inbound:	cryptcat  -l -p port [-options] [hostname] [port]
	[命令参数]
		 -i secs			同上
		 -l			        同上
		 -s addr			同上
		 -u			        同上
		 -v			        同上
		 -w secs			同上
		 -p port			同上
		 -z			        同上
		 -o file			输出为文件

		 -r			randomize local and remote ports		 
		 -n			numeric-only IP addresses, no DNS	 
		 -g gateway		source-routing hop point[s], up to 8
		 -G num			source-routing pointer: 4, 8, 12, ...
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值