-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from sepehrdaddev/experimental
Experimental
- Loading branch information
Showing
31 changed files
with
1,089 additions
and
619 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include "Attack_Vector.hpp" | ||
#include <unistd.h> | ||
|
||
Attack_Vector::Attack_Vector(const config *conf, Logger *logger) : conf{conf}, logger{logger}{ | ||
|
||
} | ||
|
||
void Attack_Vector::run() { | ||
for (int x = 0; x < conf->THREADS; x++) { | ||
if(fork()){ | ||
attack(&x); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef XERXES_ATTACK_VECTOR_H | ||
#define XERXES_ATTACK_VECTOR_H | ||
|
||
#include "Configuration.hpp" | ||
#include "Logger.hpp" | ||
|
||
class Attack_Vector { | ||
friend class Spoofed_Flood; | ||
friend class Http_Flood; | ||
|
||
public: | ||
Attack_Vector() = default; | ||
Attack_Vector(const config *conf, Logger *logger); | ||
virtual void run(); | ||
|
||
protected: | ||
const config *conf; | ||
Logger *logger; | ||
|
||
private: | ||
virtual void attack(const int *id) = 0; | ||
}; | ||
|
||
|
||
#endif //XERXES_ATTACK_VECTOR_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef XERXES_ATTACK_VECTORS_H | ||
#define XERXES_ATTACK_VECTORS_H | ||
|
||
#include "ICMP_Flood.hpp" | ||
#include "Null_Flood.hpp" | ||
#include "Slowloris.hpp" | ||
#include "Http_Flood.hpp" | ||
#include "Spoofed_TCP_Flood.hpp" | ||
#include "Spoofed_UDP_Flood.hpp" | ||
|
||
#endif //XERXES_ATTACK_VECTORS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.