-
Notifications
You must be signed in to change notification settings - Fork 0
/
scapy_unit_test
48 lines (33 loc) · 1.14 KB
/
scapy_unit_test
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
scapy installation on freebsd
wget --trust-server-names https://github.com/secdev/scapy/archive/master.zip
unzip master
cd scapy-master
python setup.py install
git clone https://github.com/secdev/scapy.git
cd scapy/test
pip install tox
./run_tests
pip installation :
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
/usr/local/bin/python2.7 get-pip.py
pip lastest version installation :
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
/usr/local/bin/python get-pip.py
pip install -U pip
Python3.9 installation
https://tecadmin.net/how-to-install-python-3-9-on-ubuntu-18-04/
sudo apt install wget build-essential checkinstall
sudo apt install libreadline-gplv2-dev libncursesw5-dev libssl-dev \
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
cd /opt
sudo wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
tar xzf Python-3.8.0.tgz
cd Python-3.8.0
sudo ./configure --enable-optimizations
sudo make altinstall
apt install python3-pip
scapy debugging:
import logging
import sys
logging.getLogger("scapy").setLevel(1)
logging.basicConfig(stream=sys.stdout, level=logging.INFO)