티스토리 뷰

Programming/Python

Scapy 설치하기

do9dark 2015. 4. 11. 18:02

Scapy 2.3.1


Scapy is a tool, written in Python, for manipulating network packets. It can be used for capturing packets, forging them and decoding them. And that is just the tip of the iceberg, there are also a lot of other network related tasks that Scapy can handle.


Scanning: The act of probing a host machine to identify any specific detail about it. Eg. Port scanning.

Sniffing: The act of intercepting and logging the packets which flow across the network.

Fuzzing: A software testing technique in which random data is passed as input to a computer application to check its stability.


Scapy를 설치하기 전에 3가지를 우선적으로 설치해야 한다. 

1. Python 2.5 이상

2. pylibpcap-0.6.4

3. libdnet-1.12



libpcap 설치


소스 다운로드

http://dfn.dl.sourceforge.net/sourceforge/pylibpcap/pylibpcap-0.6.4.tar.gz

$ wget http://dfn.dl.sourceforge.net/sourceforge/pylibpcap/pylibpcap-0.6.4.tar.gz


설치

$ tar xfz pylibpcap-0.6.4.tar.gz

$ cd pylibpcap-0.6.4

$ sudo python setup.py install



libdnet 설치


소스 다운로드

http://libdnet.sourceforge.net/

http://libdnet.googlecode.com/files/libdnet-1.12.tgz

$ wget http://libdnet.googlecode.com/files/libdnet-1.12.tgz


설치

$ tar xfz libdnet-1.12.tgz

$ cd libdnet-1.12

$ ./configure

$ make

$ sudo make install

$ cd python

$ sudo python setup.py install



Scapy 설치


소스 다운로드

http://www.secdev.org/projects/scapy/

$ https://bitbucket.org/secdev/scapy/downloads/scapy-2.3.1.zip


설치

unzip scapy-2.3.1.zip

$ cd scapy-2.3.1

$ sudo python setup.py install


실행

[root:~]# scapy

INFO: Can't import python gnuplot wrapper . Won't be able to plot.

INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().

WARNING: No route found for IPv6 destination :: (no default route?)

INFO: Can't import python Crypto lib. Won't be able to decrypt WEP.

INFO: Can't import python Crypto lib. Disabled certificate manipulation tools

Welcome to Scapy (2.3.1)

>>> 



추가 라이브러리 설치

gnuplot-py

pycrypto

PyX



gnuplot-py 설치


소스 다운로드

http://sourceforge.net/projects/gnuplot-py/files/

gnuplot-py-1.8.tar.gz


설치

$ tar xfz gnuplot-py-1.8.tar.gz

$ cd gnuplot-py-1.8

$ sudo python setup.py install



pycrypto 설치


소스 다운로드

https://www.dlitz.net/software/pycrypto/

$ wget http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz


설치

$ tar xfz pycrypto-2.6.1.tar.gz

$ cd pycrypto-2.6.1

$ sudo python setup.py install



PyX 설치


소스 다운로드
http://sourceforge.net/projects/pyx/files/pyx/0.12.1/
PyX-0.12.1.tar.gz

설치
$ tar xfz PyX-0.12.1.tar.gz
$ cd PyX-0.12.1
$ sudo python setup.py install



Scapy 확인


실행

[root:~]# scapy

WARNING: No route found for IPv6 destination :: (no default route?)

Welcome to Scapy (2.3.1)

>>> 

'Programming > Python' 카테고리의 다른 글

(PEP 8) Style Guide for Python Code  (0) 2016.08.15
Python Modules  (0) 2016.01.16
Scapy 사용하기  (0) 2015.04.11
PySide - Combine (Show, About, Close)  (0) 2015.04.07
PySide - Show Licence (File Open)  (0) 2015.04.07
PySide - About Box  (0) 2015.04.07
PySide - Close Button  (0) 2015.04.05
PySide - QMessageBox  (0) 2015.04.05
OS X에서 PySide 설치하기  (0) 2015.04.05
쉘 스크립트(shell script)의 시작 #!(shebang)  (0) 2014.11.14
댓글
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
링크
공지사항
Total
Today
Yesterday