当前位置:K88软件开发文章中心编程全书编程全书01 → 文章内容

几款网络测试工具总结_3

减小字体 增大字体 作者:潇湘隐者  来源:潇湘隐者  发布时间:2018-12-31 4:12:04

paping安装测试
 
 
 
paping的下载地址如下,它分WindowsLinux版本。
 
https://code.google.com/archive/p/paping/downloads
 
tar -xvf paping_1.5.5_x86-64_linux.tar.gz
 
解压到任意目录,就可以直接执行。另外paping命令对比psping命令,功能更简单、单一。它只有简单的4个参数。
 
 
 
-p, --port N    指定被测试服务的 TCP 端口(必须);
--nocolor   屏蔽彩色输出;
-t, --timeout   指定超时时长,单位为毫秒,默认值为 1000
-c, --count N   指定测试次数。
 
[root@DB-Server tmp]# ./paping -?
paping v1.5.5 - Copyright (c) 2011 Mike Lovell
 
Syntax: paping [options] destination
 
Options:
 -?, --help     display usage
 -p, --port N   set TCP port N (required)
     --nocolor  Disable color output
 -t, --timeout  timeout in milliseconds (default 1000)
 -c, --count N  set number of checks to N
 
[root@DB-Server tmp]# ./paping --nocolor -p 80 -c 10 www.azure.cn
paping v1.5.5 - Copyright (c) 2011 Mike Lovell
 
Connecting to 1stcncloud.dtwscachev290.ourwebcdn.com [27.155.71.36] on TCP 80:
 
Connected to 27.155.71.36: time=0.39ms protocol=TCP port=80
Connected to 27.155.71.36: time=0.33ms protocol=TCP port=80
Connected to 27.155.71.36: time=0.73ms protocol=TCP port=80
Connected to 27.155.71.36: time=0.48ms protocol=TCP port=80
Connected to 27.155.71.36: time=0.49ms protocol=TCP port=80
Connected to 27.155.71.36: time=0.39ms protocol=TCP port=80
Connected to 27.155.71.36: time=0.37ms protocol=TCP port=80
Connected to 27.155.71.36: time=0.35ms protocol=TCP port=80
Connected to 27.155.71.36: time=0.47ms protocol=TCP port=80
Connected to 27.155.71.36: time=0.52ms protocol=TCP port=80
 
Connection statistics:
        Attempted = 10, Connected = 10, Failed = 0 (0.00%)
Approximate connection times:
        Minimum = 0.33ms, Maximum = 0.73ms, Average = 0.45ms
 
 
 
Hping介绍
 
Hping 目前最新的版本为hping3是一个命令行下使用的TCP/IP数据包组装/分析工具,其命令模式很像Unix下的ping命令,但是它不仅能发送ICMP回应请求,它还可以支持TCPUDPICMPRAW-IP协议,它有一个路由跟踪模式,能够在两个相互包含的通道之间传送文件。Hping常被用于检测网络和主机,其功能非常强大,可在多种操作系统下运行,如LinuxFreeBSDNetBSDOpenBSDSolarisMacOs XWindows
 
Hping 的主要功能有:
  1、防火墙测试 
  2、高级端口扫描
  3网络检测,可以用不同的协议、服务类型(TOS)、IP分片 
  4、手工探测MTU 最大传输单元) 路径
  5、先进的路由跟踪,支持所有的协议 
  6、远程操作系统探测 
  7、远程的运行时间探测 
  8TCP/IP堆栈审计 
 
Hping的官方网址为http://www.hping.org/,开发者为是Salvatore Sanfilippo,官方介绍资料如下:
 
   hping is a command-line oriented TCP/IP packet assembler/analyzer. The interface is inspired to the ping(8) unix command, but hping isn't only able to send ICMP echo requests. It supports TCP, UDP, ICMP and RAW-IP protocols, has a traceroute mode, the ability to send files between a covered channel, and many other features.
 
While hping was mainly used as a security tool in the past, it can be used in many ways by people that don't care about security to test networks and hosts. A subset of the stuff you can do using hping:
·         Firewall testing
·         Advanced port scanning
·         Network testing, using different protocols, TOS, fragmentation
·         Manual path MTU discovery
·         Advanced traceroute, under all the supported protocols
·         Remote OS fingerprinting
·         Remote uptime guessing
·         TCP/IP stacks auditing
·         hping can also be useful to students that are learning TCP/IP.
Hping works on the following unix-like systems: Linux, FreeBSD, NetBSD, OpenBSD, Solaris, MacOs X, Windows.
 
 
 
Hping安装
 
Hping这个项目在GitHub上,https://github.com/antirez/hping,可以直接从这里下载安装。另外如果yum源有安装程序,使用yum安装最方便、快捷。
 
yum install hping3
 
 
下面是官方文档的源码安装,不过源码安装需要依赖一些组件,想必yum安装麻烦很多:
 
Linux
-----
 
please, follows this steps:
 
$ ./configure (first try ./configure --help)
$ vi Makefile (optional)
$ make
$ su
# make install
 
FreeBSD, OpenBSD, NetBSD
------------------------
 
You will need the libpcap and the gmake utility installed on your system.
 
$ ./configure
$ gmake
$ su (or calife)
# gmake install
 
 
 
Hping测试
 
 
查看hping的帮助信息:
 
 
[root@DB-Server ~]# hping3 --help  #或者hping --help
 
 
下面表格整理了部分参数信息,更多参数信息可以参考帮助文档或http://man.linuxde.net/hping 
 
 
 
参数
参数说明
-h  --help
显示帮助信息
-v  --version
显示版本信息
-c  --count
指定发送包的次数
-i  --interval
--fast
--faster
    --flood
发送间隔时间(单位是毫秒缺省时间是1,此功能在增加传输率上很重要,idle/spoofing扫描时此功能也会被用到,你可以参考hping-howto获得更多信息
-fast 每秒发10数据包,与-i m100等同。表示间隔10毫秒发送一个数据包
--faster 每秒发送100个数据包
--flood  以最快的速度发送数据包。不显示答复
-n  --numeric
指定以数字形式输出
-q  --quiet
安静模式 只输出开始结束信息
-I  --interface
interface name 无非就是eth0之类的网卡参数
-V  --verbose
显示更多信息
-D  --debug
进入DEBUG模式
-z  --bind
快捷键的使用 
-Z  --unbind
消除快捷键
…………….
…………………..

[1] [2]  下一页


几款网络测试工具总结_3