-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
38 lines (36 loc) · 1.67 KB
/
setup.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
import os
import sys
from sys import platform
if os.getuid():
print("Script By KrisIsHere | Setup Tool Built 1.1")
exit('\nroot access required\n')
if platform == "linux" or platform == "linux2":
path = os.getcwd()
parent = os.path.abspath(os.path.join(path, os.pardir))
print(os.getcwd())
lmao = input("Choose your package manager(1-apt 2-pacman 3-xbps): ")
if lmao == "1":
xd = input("Would you like to proceed with the instalation?: (Y/N) ")
if xd in ["Y", "y"]:
os.system("apt install php tcpdump traceroute scapy python3-pip ; pip3 install bane pysocks ; mkdir tools/.info ; touch tools/.info/setup.py")
else:
print("Setup stopped.")
if lmao == "2":
xd = input("Would you like to proceed with the instalation?: (Y/N) ")
if xd in ["Y", "y"]:
os.system("pacman -S php tcpdump scapy traceroute traceroute python3-pip ; pip3 install bane pysocks ; mkdir tools/.info ; touch tools/.info/setup.py")
else:
print("Setup stopped.")
if lmao == "3":
xd = input("Would you like to proceed with the instalation?: (Y/N) ")
if xd in ["Y", "y"]:
os.system("xbps-install -S php tcpdump scapy traceroute python3-pip ; pip3 install bane pysocks ; mkdir tools/.info ; touch tools/.info/setup.py")
else:
print("Setup stopped.")
elif platform == "darwin":
print("This script is not currently supported for the Mac OS")
elif platform == "win32":
print("This script is not currently supported for Windows 10 or bellow.")
else:
print("Platform not recognised...")
sys.exit()