Skip to content

This project aims to design a software able to classify Wi-Fi encrypted traffic, using Pyshark for analyze online and offline traffic.

Notifications You must be signed in to change notification settings

TheFalco/Encypted-Wi-Fi-traffic-classificator

Repository files navigation

Encypted Wi-Fi traffic classificator

This project aims to design a software able to classify Wi-Fi encrypted traffic, using Pyshark for analyze online and offline traffic.
The classification is performed with respect to a trained model.

Collaborators

The project was developed by Matteo Falconi and Mattia Iamundo as part of the Wireless Internet course at Politecnico di Milano.

Requirements

A list of requirements is available here.

Usage

It is possible to train the model, perform offline classification and performe online classification.

Training

It is possible to configure the training data, specifing in the input_data.json file the MAC addresses of the Station and of the Access Point and the training set. The training set should be already prepared: with only DATA packets filtered, and should be placed in the /training_captures folder.

In order to create your own trained model, delete the trained_model.sav file in the /learner folder

Offline classification

Perform classification over a .pcapng file:

python main.py -type 0 -f filepath -sta Station_MAC_Address -ap AccessPoint_MAC_Address 

MAC addresses should be in the form XX:XX:XX:XX:XX:XX

Online classification

Perform classification over packets captured live in monitor mode:

python main.py -type 1 -i interface -sta Station_MAC_Address -ap AccessPoint_MAC_Address -t Live_Capture_Timeout

MAC addresses should be in the form XX:XX:XX:XX:XX:XX
Interface should be eth0, wlan0 ecc.
Live capture Timout is set to 20 by default and it is an optional argument. It is expressed in seconds, and it expresses the time between each prediction in online classification.

About

This project aims to design a software able to classify Wi-Fi encrypted traffic, using Pyshark for analyze online and offline traffic.

Topics

Resources

Stars

Watchers

Forks

Languages