Attacks ======= DoS ^^^ You can initialize the class using: .. code-block:: python 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 String 127.0.0.1 the target host. targetPort This is the Port of the Integer 80 target host. threadNum This is the number of Integer 25 threads to be started. =========== =========================== ======= ========= Here are some public variables that you can access: =========== =========================== ======= ========= Variable Description Type Default =========== =========================== ======= ========= attacking Returns True if you have Boolean False activated the start function. attackNum Returns the number of times Integer 0 the target IP and Port has been pinged. =========== =========================== ======= ========= start ***** This function does not take in any arguments. Simply just call the start function: .. code-block:: python 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: .. code-block:: python dos.stop() This function will throw an exception if the attack has not been started.