컴퓨터 이야기

hping3 다운로드 및 설치

느림의 미학 . 2013. 10. 9. 11:56

1. hping3 를 적절한 폴더에 다운받는다. 


[root@uzi down]# wget http://www.hping.org/hping3-20051105.tar.gz

--2013-10-09 11:11:33--  http://www.hping.org/hping3-20051105.tar.gz

Resolving www.hping.org... 192.70.106.166

Connecting to www.hping.org|192.70.106.166|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 584001 (570K) [application/x-gzip]

Saving to: `hping3-20051105.tar.gz'


100%[==========================================================================>] 584,001      213K/s   in 2.7s    


2013-10-09 11:11:37 (213 KB/s) - `hping3-20051105.tar.gz' saved [584001/584001]


2. 압축 풀자 


[root@uzi down]# ll

합계 572

-rw-r--r--. 1 root root 584001 2005-11-05 19:37 hping3-20051105.tar.gz

[root@uzi down]# tar -xzvf hping3-20051105.tar.gz 


[root@uzi down]# 


3. 설치 


yum install -y gcc-*

yum install -y libpcap-devel

yum install -y tcl*


./configure

make


4. 오류 발생 

 

bpf.h 관련 


[root@uzi hping3-20051105]# ln -s /usr/include/pcap/bpf.h /usr/include/net/bpf.h


bytesex.h 관련 



      1 /* Original code from the Linux C library */

      2 /* Copyright (C) 2000,2001 Salvatore Sanfilippo <antirez@invece.org>

      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 

      7 #ifndef ARS_BYTESEX_H

      8 #define ARS_BYTESEX_H

      9 

     10 #if     defined(__i386__) \

     11     || defined(__x86_64__) \

     12     || defined(__alpha__) \

     13     || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))

     14 #define BYTE_ORDER_LITTLE_ENDIAN


11번줄 추가 


undefined reference to `hping_script' 오류시 


make clean 한뒤 make 한다. 


5. 설치완료!