Projekte
Auf GitHub ansehen
davidyslu/USTC-TK2016
davidyslu/USTC-TK2016 has 265 GitHub stars and 66 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-20 11:11 UTC. Last push 2024-01-04.
Gemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- Verlauf wird gesammelt
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
Über uns
Toolkit for processing PCAP file and transform into image of MNIST dataset
EntwicklerwerkzeugeREADME.md
OriginalUSTC-TK2016
This repository is a toolkit called "USTC-TK2016", which is used to parse network traffic (.pcap file). Besides, the dataset is "USTC-TFC2016".
- The
masterbranch can only run on Windows environment. - The
ubuntubranch can run on Ubuntu Linux 16.04 LTS environment.
NOTICE: This repository credits to echowei/DeepTraffic
Installation
- Clone this repository on your machine
# Clone the repository on "master" branch $ git clone -b master https://github.com/yungshenglu/USTC-TK2016 - Install the required packages via the following command
# Run the command at the root of the repository $ pip3 install -r requirements.txt- The requried packages are listed as follow:
Execution
NOTICE: You are on the
masterbranch now!
- Download the traffic dataset USTC-TFC2016 and put it into the directory
1_Pcap\- You can download the traffic dataset USTC-TFC2016 from my another repository.
- Open the PowerShell and run
1_Pcap2Session.ps1(take a few minutes)- To split the PCAP file by each session, please make sure the line 10 and 14 in
1_Pcap2Session.ps1is uncommented and make line 11 and 15 is in comment. - To split the PCAp file by each flow, please make sure the line 11 and 15 in
1_Pcap2Session.ps1is uncommented and make line 10 and 14 is in comment. - Run
1_Pcap2Session.ps1# Make sure your current directory is correct PS> .\1_Pcap2Session.ps1 - If succeed, you will see the following files (folders) in folder
2_Session\AllLayers\L7\
- To split the PCAP file by each session, please make sure the line 10 and 14 in
- Run
2_ProcessSession.ps1(take a few minutes)# Make sure your current directory is correct PS> .\2_ProcessSession.ps1- If succeed, you will see the following files (folders) in folder
3_ProcessedSession\FilteredSession\- Get the top 60000 large PCAP filesTrimedSession\- Trim the filtered PCAP files into size 784 bytes (28 x 28) and append0x00if the PCAP file is shorter than 784 bytes- The files in subdirectory
Test\andTrain\is random picked from dataset.
- If succeed, you will see the following files (folders) in folder
- Run
3_Session2Png.py(take a few minutes)# Make sure your current directory is correct PS> python3 3_Session2png.py- If succeed, you will see the following files (folders) in folder
4_Png\Test\- For testingTrain\- For training
- If succeed, you will see the following files (folders) in folder
- Run
4_Png2Mnist.py(take a few minutes)# Make sure your current directory is correct PS> python3 4_Png2Mnist.py- If succeed, you will see the the training datasets in folder
5_Mnist\train-images-idx1-ubytetrain-images-idx3-ubytetrain-images-idx1-ubyte.gztrain-images-idx3-ubyte.gz
- If succeed, you will see the the training datasets in folder
Contributor
NOTICE: You can follow the contributing process CONTRIBUTING.md to join me. I am very welcome any issue!
- Author
- Contributor