Lab of SJTU 001-(2018-2019-1)IS301
-
Python 3.6 and above. (Replace
python
in below commands topython3
if necessary)-
Windows and macOS: install by binary package.
-
Linux
-
Ubuntu / Debian:
apt install python python-dev
-
CentOS:
yum install python python-devel
-
-
-
libpcap
-
Windows
-
macOS
brew install libpcap
-
Linux
-
Ubuntu / Debian:
apt install libpcap-dev
-
CentOS:
yum install libpcap-devel
-
-
pip install -r requirements.txt
If pip
failed on Windows, follow the instruction below:
-
Install Cython:
pip install Cython
-
git clone https://github.com/pynetwork/pypcap
-
Download Npcap SDK to the current directory
-
Unzip
npcap-sdk-1.01.zip
and rename directorynpcap-sdk-1.01
towpdpack
-
cd pypcap
cython pcap.pyx
python setup.py install
-
Then, enter project directory and run
pip install -r requirements.txt
python gui-thread.py