-
Notifications
You must be signed in to change notification settings - Fork 11
/
comboServer_main.py
52 lines (41 loc) · 1.83 KB
/
comboServer_main.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
from flask import Flask, render_template
import subprocess,os
from termcolor import cprint
app = Flask(__name__)
app.config["DEBUG"] = True
@app.route('/', methods=['GET'])
def home():
return render_template("homepage.html")
@app.route('/jquery.js', methods=['GET'])
def jquery():
return render_template("jquery.js")
@app.route('/evil_on', methods=['GET'])
def on_evil():
subprocess.call(['gnome-terminal', '--',"sudo", "python3", "FakeAuth_EvilTwin/start_Evil_Twin.py"])
return ("Activated")
@app.route('/evil_off', methods=['GET'])
def off_evil():
subprocess.call(['gnome-terminal', '--',"sudo", "python3", "FakeAuth_EvilTwin/stop_Evil_Twin.py"])
return ("De-Activated")
@app.route('/ddos_on', methods=['GET'])
def on_ddos():
subprocess.call(['gnome-terminal', '--',"sudo", "python3", "Ddos_Wifi/Ddos_Wifi.py"])
return ("Activated")
@app.route('/ddos_off', methods=['GET'])
def off_ddos():
subprocess.call(['gnome-terminal', '--',"sudo", "sh", "Ddos_Wifi/off_wifiDos.sh"])
return ("De-Activated")
if not 'SUDO_UID' in os.environ.keys():
print("Try running this program with sudo.")
exit()
else:
cprint(''' _____ _ _____
/ ____| | | / ____|
| | ___ _ __ ___ | |__ ___ | (___ ___ _ ____ _____ _ __
| | / _ \| '_ ` _ \| '_ \ / _ \ \___ \ / _ \ '__\ \ / / _ \ '__|
| |___| (_) | | | | | | |_) | (_) | ____) | __/ | \ V / __/ |
\_____\___/|_| |_| |_|_.__/ \___/ |_____/ \___|_| \_/ \___|_|
''',"red")
cprint(" By Kalihackz","green")
cprint(" Version : Final","yellow")
app.run(debug=False)