Attacks¶
DoS¶
You can initialize the class using:
dos = DrSploitberg.attacks.DoS()
Lies here is a list of all arguments the Dos() class can take:
Arguments |
Description |
Type |
Default |
---|---|---|---|
targetIP |
This is the IP Adress of the target host. |
String |
127.0.0.1 |
targetPort |
This is the Port of the target host. |
Integer |
80 |
threadNum |
This is the number of threads to be started. |
Integer |
25 |
Here are some public variables that you can access:
Variable |
Description |
Type |
Default |
---|---|---|---|
attacking |
Returns True if you have activated the start function. |
Boolean |
False |
attackNum |
Returns the number of times the target IP and Port has been pinged. |
Integer |
0 |
start¶
This function does not take in any arguments. Simply just call the start function:
dos.start()
This function can called as many times as required.
stop¶
This function does not take in any arguments. Simply just call the start function:
dos.stop()
This function will throw an exception if the attack has not been started.