make this script send requests as fast as possible for testing my website import…
- User
make this script send requests as fast as possible for testing my website
import requests import threading
Define the session and headers
session = requests.Session() session.headers.update({ "authority": "furrychat.net", "method": "POST", "path": "/chat/system/recovery.php", "scheme": "https", "accept": "/", "accept-encoding": "gzip, deflate, br, zstd", "accept-language": "en-US,en;q=0.9,ru;q=0.8", "origin": "https://furrychat.net", "priority": "u=1, i", "referer": "https://furrychat.net/chat/", "sec-ch-ua": '"Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"', "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": '"Windows"', "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-requested-with": "XMLHttpRequest", "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" })
Add cookie
session.cookies.set("PHPSESSID", "kdbn5gohnqtu2iq1pbp8bml096", domain="furrychat.net", path="/")
Function to send the POST request
def send_request(): url = "https://furrychat.net/chat/system/recovery.php" data = "remail=suburbian%40subbt.asd" while True: try: response = session.post(url, data=data) print(f"Status Code: {response.status_code}, Response: {response.text[:100]}") except requests.RequestException as e: print(f"Request failed: {e}")
if name == "main": # Number of threads to use num_threads = 1000 # Adjust this number based on your system's capabilities
code# Start the threads threads = [] for _ in range(num_threads): thread = threading.Thread(target=send_request) thread.start() threads.append(thread) # Wait for all threads to complete (they won't in this case, but this keeps the main thread alive) for thread in threads: thread.join() - Assistant