上善若水,不浮不沉!
分类: 网络与安全
2014-12-02 16:28:16
RedHat6.5 下hping2的安装与使用
1.hping3安装
(1)下载
(2)安装
tar -zxvf
cd hping2-rc3
(3)修改配置vi configure 主要是man path变量
在configure文件中找到“INSTALL_MANPATH=”语句,如下图
(4)安装编译
[root@localhost hping2-rc3]# ./configure
出现问题:
在包含自 ars.h:18 的文件中, 从 arsglue.c:5:
byte***.h:22:3: 错误:#error can not find the byte order
for this architecture, fix byte***.h
在包含自 arsglue.c:5 的文件中:
ars.h:180:2: 错误:#error "Please, edit Makefile and
add -DBYTE_ORDER_(BIG|LITTLE)_ENDIAN"
]ars.h:244:2: 错误:#error "Please, edit Makefile and
add -DBYTE_ORDER_(BIG|LITTLE)_ENDIAN"
解决办法:在bytesex.h中,增加x86_64位判断
[root@localhost hping2-rc3]# ./configure
build byteorder.c...
create byteorder.h...
--------------------------------------
system type: LINUX
FORCE_LIBPCAP:
LIBPCAP :
PCAP_INCLUDE :
MANPATH : /usr/local/share/man
(to modify try configure --help)
--------------------------------------
creating Makefile...
now you can try `make'
[root@localhost hping2-rc3]make
----------
-----------
./hping2 -v
hping version 2.0.0-rc3 (Mon May 3 10:56:19 CEST 2004)
linux sockpacket based binary
use `make strip' to strip hping2 binary
use `make install' to install hping2
[root@localhost hping2-rc3]# make install
cp -f hping2 /usr/sbin/
chmod 755 /usr/sbin/hping2
ln -sf /usr/sbin/hping2 /usr/sbin/hping
[root@localhost hping2-rc3]# ls
2. hping3使用
基于hping攻击http://blog.csdn.net/aspirationflow/article/details/8008855
基于hping测试http://blog.chinaunix.net/uid-7608308-id-2047914.html
试验环境