Skip to content

This is a script which is used to conditionally label/classify the flow generated by CICFlowmeter python implementation given the PCAP files.

Notifications You must be signed in to change notification settings

daud99/FlowLabeler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Label Flow

This script is intend to change the label of the flow based on the source and destination IP.

Adding executable permission for the script

chmod +x ./label.sh

Usage

./label.sh -s <src ip> -d <dst ip> -l <label | class > -f {filename} -b {true|false}

The provided file must be of type CSV (Comman Seperated Variable) file.

Example

./label.sh -s 169.254.107.171 -d 169.254.107.171 -l DOSATTACK -f hulk.csv
./label.sh -s 169.254.107.171 -d 169.254.107.171 -l DOSATTACK -f hulk.csv -b true

The above command will replace the label for all the flow's with source IP 169.254.107.171 and destination IP 169.254.107.171 to "DOSATTACK" in the hulk.csv file.

if -b flag is set to true, then the reciprocal i.e. src will be also check as dst and dst will be also check as src.

About

This is a script which is used to conditionally label/classify the flow generated by CICFlowmeter python implementation given the PCAP files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages