Hedi

import requests import random import time import socket import os from datetime import datetime import concurrent.futures # الحصول على التاريخ والوقت الحالي now = datetime.now() hour = now.hour minute = now.minute day = now.day month = now.month year = now.year # مسح الشاشة os.system("clear") os.system("figlet Sending Traffic") print("Author : YourName") print("github : https://github.com/YourGithub") print() # طلب اسم النطاق أو الـ IP domain = input("Target Domain (e.g., example.blogspot.com): ") port = int(input("Port : ")) # تأكد من أن القيمة المدخلة هي عدد صحيح # تحويل اسم النطاق إلى عنوان IP try: ip = socket.gethostbyname(domain) print(f"Resolved IP: {ip}") except socket.gaierror: print("Error: Unable to resolve the domain to IP.") exit() # قائمة وكيل المستخدم (User Agents) user_agents = [ 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36', ] # إعدادات الزيارة url = f"http://{domain}/" # تغيير الرابط وفقًا لما تحتاجه min_wait = 0.01 # الحد الأدنى للانتظار بين الزيارات (بالثواني) max_wait = 0.03 # الحد الأقصى للانتظار بين الزيارات (بالثواني) # دالة لإرسال الزيارة def send_visit(): headers = { 'User-Agent': random.choice(user_agents), } try: # إرسال طلب HTTP GET response = requests.get(url, headers=headers) print(f"Visit sent | Status: {response.status_code}") except requests.RequestException as e: print(f"Error: {e}") # استخدام المعالجات المتعددة لإرسال الزيارات بشكل أسرع def start_sending_visits(num_visits): with concurrent.futures.ThreadPoolExecutor(max_workers=50) as executor: for _ in range(num_visits): executor.submit(send_visit) wait_time = random.uniform(min_wait, max_wait) time.sleep(wait_time) # الانتظار بشكل عشوائي بين الزيارات # عدد الزيارات التي ترغب في إرسالها num_visits = 1000 # على سبيل المثال إرسال 1000 زيارة # بدء إرسال الزيارات start_sending_visits(num_visits) print("تم إرسال الزيارات.")

Commentaires