This repository is a toolkit called "USTC-TK2016", which is used to parse network traffic (.pcap
file). Besides, the dataset is "USTC-TFC2016".
master
branch can only run on Windows environment.ubuntu
branch can run on Ubuntu Linux 16.04 LTS environment.NOTICE: This repository credits to echowei/DeepTraffic
# Clone the repository on "master" branch
$ git clone -b master https://github.com/yungshenglu/USTC-TK2016
# Run the command at the root of the repository
$ pip3 install -r requirements.txt
NOTICE: You are on the
master
branch now!
1_Pcap\
1_Pcap2Session.ps1
(take a few minutes)
1_Pcap2Session.ps1
is uncommented and make line 11 and 15 is in comment.1_Pcap2Session.ps1
is uncommented and make line 10 and 14 is in comment.1_Pcap2Session.ps1
# Make sure your current directory is correct
PS> .\1_Pcap2Session.ps1
2_Session\
AllLayers\
L7\
2_ProcessSession.ps1
(take a few minutes)
# Make sure your current directory is correct
PS> .\2_ProcessSession.ps1
3_ProcessedSession\
FilteredSession\
- Get the top 60000 large PCAP filesTrimedSession\
- Trim the filtered PCAP files into size 784 bytes (28 x 28) and append 0x00
if the PCAP file is shorter than 784 bytesTest\
and Train\
is random picked from dataset.3_Session2Png.py
(take a few minutes)
# Make sure your current directory is correct
PS> python3 3_Session2png.py
4_Png\
Test\
- For testingTrain\
- For training4_Png2Mnist.py
(take a few minutes)
# Make sure your current directory is correct
PS> python3 4_Png2Mnist.py
5_Mnist\
train-images-idx1-ubyte
train-images-idx3-ubyte
train-images-idx1-ubyte.gz
train-images-idx3-ubyte.gz
NOTICE: You can follow the contributing process CONTRIBUTING.md to join me. I am very welcome any issue!