Simulate Attacks With Mininet And Hping3
It measures network load with bwm-ng
when the net is under attack and plots the result.
This demo has been tested on Ubuntu 20
with Python 3.8
.
The attack range is highlighted in red color.
View the topology on Mininet-Topology-Visualizer
sudo python3 miniattack <option-1> <option-2> <interfaces>
For the options, you can set any supported options of hping3
. See hping3 -h
for more information.
After setting options, you can declare the name of the interfaces which want to be displayed. If no interface is declared, all of them will be displayed.
sudo python3 miniattack --flood --udp
sudo python3 miniattack --flood --udp s1-eth1 s1-eth2
Every time the program runs, the resulting plot will be saved as pdf with the name plot.pdf
in the same directory.
Rabist - view on LinkedIn
- Course: Internet Engineering - Undergraduate
- Teacher: Dr. Mehran Shetabi
- Univ: Yazd University
- Semester: Spring 1400
Licensed under MIT.