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的更多相关文章

  1. Nmap / NetCat(nc) / 网络安全工具

    nmap - 网络探测工具和安全/端口扫描器 nmap [ <扫描类型> ...] [ <选项> ] { <扫描目标说明> } 描述 Nmap ("Net ...

  2. Linux 网络工具netcat(nc)的应用

    NETCAT netcat是Linux常用的网络工具之一,它能通过TCP和UDP在网络中读写数据,通过与其他工具结合和重定向,可以在脚本中以多种方式使用它. netcat所做的就是在两台电脑之间建立链 ...

  3. NC / Netcat - 反弹Shell

    原理 实验环境: 攻击机:windows机器,IP:192.168.12.109 受害机:linux机器,IP:192.168.79.1 攻击机:设置本地监听端口2222 C:\netcat>n ...

  4. NC / Netcat - 文件传输

    文件传输:将文件从B用户机器传输到A用户机器. 实验环境1: A用户,windows系统,IP:192.168.12.109 B用户,linux系统,IP:192.168.79.3 A用户作为接受传输 ...

  5. nc(netcat)扫描开放端口

    探测单个端口是否开放可以用telnet,专业探测端口可以用Nmap,而对于非渗透用途的Linux可以直接用netcat. 1.使用netcat探测端口是否开放 nc -z -v - #z代表不交互要不 ...

  6. 在linux下编译netcat并且反弹cmdshell(转载)

    本地Windows监听 nc -vv -l -p 1234   首先从sf上get一个tar的压缩包 wget http://sourceforge.net/projects/netcat/files ...

  7. Centos下安装nc命令工具安装以及使用

    1)netcat(nc)是一个简单而有用的工具,被誉为网络安全界的“瑞士军刀”,不仅可以通过使用TCP或UDP协议的网络连接读写数据,同时还是一个功能强大的网络调试和探测工具,能够建立你需要的几乎所有 ...

  8. nc命令的用法

    1.什么是nc netcat(nc)是一个简单而有用的工具,可以使用tcp或者udp进行网络间读写数据,传输文件,接收发送数据,验证网络是否畅通. 2.命令行: 1) -l 用于指定nc将处于侦听模式 ...

  9. Linux下反弹shell的种种方式

    [前言:在乌云社区看到反弹shell的几种姿势,看过之余自己还收集了一些,动手试了下,仅供参考] 0x01 Bash bash -i >& /dev/tcp/ >& 这里s ...

随机推荐

  1. CentOS 6.4 32位系统 LAMP(Apache+MySQL+PHP)安装步骤

    先来解释一下,什么是 LAMP.正如标题所言,LAMP 实际上就是 Linux.Apache.MySQL.PHP 四个名称的缩写,当然最后一个 “P” 还有其他说法是 Perl 或者 Python.不 ...

  2. 优化MySQL,还是使用缓存?读一篇文章有感

    今天我想对一个Greenfield项目上可以采用的各种性能优化策略作个对比.换言之,该项目没有之前决策强加给它的各种约束限制,也还没有被优化过. 具体来说,我想比较的两种优化策略是优化MySQL和缓存 ...

  3. 八大常见内排序java实现

    虽然排序算法烂大街了,但是哥依然用java实现了一遍,只为自己练练手,后面可以时不时的回头看看...仅此而已,各位可以提意见,莫喷!! 一.冒泡排序 基本思想:在要排序的一组数中,对当前还未排好序的范 ...

  4. TaskTracker任务初始化及启动task源码级分析

    在监听器初始化Job.JobTracker相应TaskTracker心跳.调度器分配task源码级分析中我们分析的Tasktracker发送心跳的机制,这一节我们分析TaskTracker接受JobT ...

  5. Entity Framework 简单增删改操作

    前言 在 Entity Framework 简单查询操作 中主要是学习了在Entity Framework中的几种不同模式的查询操作,现在主要来学习一下简单的增加.删除.修改操作. 增加 在EF中添加 ...

  6. Brackets(区间dp)

    Brackets Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 3624   Accepted: 1879 Descript ...

  7. 交叉编译php5,、nginx、squid方法

    本文为原创,转载请注明:http://www.cnblogs.com/tolimit/ 交叉编译php5 软件版本:php-5.4.27 依赖库:zlib,libxml2 交叉编译器:arm-hisi ...

  8. HTML中的IE条件注释

    IE条件注释是一种特殊的HTML注释,这种注释只有IE5.0及以上版本才能理解.比如普通的HTML注释是: <!--This is a comment--> 而只有IE可读的IE条件注释是 ...

  9. Linux 4.6分支已到生命尽头 请尽快升级至Linux 4.7.1

    导读 在Linux Kernel 4.7首个维护版本发布的同时,Greg Kroah-Hartman同时也向社区发布了Linux Kernel 4.6.7版本.作为Linux 4.6分支的第7个维护版 ...

  10. 6个关于dd命令备份Linux系统的例子

    数据丢失带来的损失是相当昂贵的.关键数据的丢失会对各种规模的企业带来影响.有几种方法来备份Linux系统,包括rsync的和rsnapshot等.本文提供有关使用dd命令备份Linux系统的6个实例. ...