본문 바로가기

NCS/기술적보안구축

Hping3 - Installing HPING3 with Source

Installing HPING3 with Source

1. Downloading file hping3-20051105.tar.gz

#wget http://pkgs.fedoraproject.org/lookaside/pkgs/hping3/hping3-20051105.tar.gz/md5/ca4ea4e34bcc2162aedf25df8b2d1747/hping3-20051105.tar.gz

 (hping3-20051105.tar(묶음).gz(압축파일))

2. Unzipping hping3-20051105.tar.gz

# tar zxvf hping3-20051105.tar.gz

3. Changing directory before unzipped directory.

# cd hping3-20051105

4. Configuring hping3 with lots of errors

# ./configure     (수많은 에러 발생함)

5. Installing another packages for reducing errors on installing

# yum -y install gcc

# yum -y install tcl*

# yum -y install libpcap-devel


6. Adding work if you have a linux based on x86_64.(자신의 리눅스 버젼이 64비트의 경우 에러나는)

# vi bytesex.h

Adding below a bold line after 11 line. (11라인에 다음을 추가한다.)

#if defined(__i386__) \ 

|| defined(__x86_64__) \ <-- 요 라인 추가하고 컴파일 다시 해볼것~~

|| defined(__alpha__) \ 

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

#define BYTE_ORDER_LITTLE_ENDIAN

(./configure 했을때 에러 처리)

(출처: http://kensei.co.kr/62 [KENSEI IT BLOG])


(find / -type f -name bpf.h

find / -type d -name net

)

# ln -sf /usr/include/pcap-bpf.h     /usr/include/net/bpf.h

  (make 했을때 에러 처리)

# make

# make install