-
Notifications
You must be signed in to change notification settings - Fork 2
Added SYN Flooding to Scenario Example #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…tion send_one_syn(). Also created send_syn.hpp
…syn() into a DOS SYN attack.
…rkstations and possibly Raspberry Pis
CarlosBeltranQ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added SYN Flooding capabilities to Scenario. Plus, Metric Logging for all the DDoS attack types and Python files that plot given metric files.
| } | ||
| total_read += bytes_read; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double check here.
…r the config generator.
examples/SST_Testbed/lib/metrics.cpp
Outdated
| using namespace std::chrono; | ||
| return duration_cast<microseconds>(system_clock::now().time_since_epoch()) | ||
| .count(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| using namespace std::chrono; | |
| return duration_cast<microseconds>(system_clock::now().time_since_epoch()) | |
| .count(); | |
| return duration_cast<microseconds>(std::chrono::system_clock::now().time_since_epoch()) | |
| .count(); |
examples/SST_Testbed/lib/metrics.cpp
Outdated
| #include <iomanip> | ||
| #include <mutex> | ||
|
|
||
| using namespace std; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest removing using namespace std; and always explicitly using std::blah.
examples/SST_Testbed/lib/metrics.cpp
Outdated
| } | ||
|
|
||
| void metrics_end_row_and_write(MetricsRow& r) { | ||
| using namespace std::chrono; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto here for removing using namespace std::chrono;
| 2. Run `mkdir build && cd build` | ||
|
|
||
| 3. Run `cmake ..`. | ||
| 3. Run `cmake ..` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add award winning on top of readme. @CarlosBeltranQ
…ace from metrics.cpp
|


Added SYN Flooding to SST Testbed
When the user launches the SYN Flood attack using the
DoSSYNkeyword,clientwill call a function insend_syn.cppcalledsend_syn_packets().send_syn_packets()will create the headers and socket necessary to send syn packets toAuth.Metric Logging
Added the ability to track metrics for the DoS and DDoS attacks by adding an optional
-metricsflag when running./client.The metric log files are put into a file in the
SST_Testbed/metric_logs/directory.These files are CSV files and the values they hold are the:
For more details about each of these values, please visit
SST_Testbed/lib/README.md.Plot Generators
A
plot.pyfile was added inSST_Testbed/plot_generators/that plots given metric files. These plots will extract the latency and throughput information from the metric log files and plot them on graphs.The graphs will have either
latency, in milliseconds, orthroughput, in attempts per second, plotted on the y-axis and the number of malicious clients plotted on the x-axis.latencyis the average duration of each operation during an attack, in milliseconds.throughputis the number of attempted operations during an attack, per second.