-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (60 loc) · 2.92 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
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
#!/usr/bin/python
import sys
import os
import subprocess
import time
try:
lol = open("/usr/local/bin/stupidlazy")
lol.close()
os.system("clear")
print("Really?")
time.sleep(1)
os.system("clear")
print("Why the heck you want to run setup again?")
print("A error happend? i am going to try to fix it for you wait a second.")
os.system("cp -rf /usr/lib/python3/dist-packages/colorama /usr/lib/python2.7/dist-packages/")
os.system("cp -rf /usr/lib/python3/dist-packages/colorama-0.4.3.egg-info /usr/lib/python2.7/dist-packages/")
os.system("cp -rf /usr/lib/python3/dist-packages/requests /usr/lib/python2.7/dist-packages/")
os.system("cp -rf /usr/lib/python3/dist-packages/requests_file-1.5.1.egg-info /usr/lib/python2.7/dist-packages/")
os.system("cp -rf /usr/lib/python3/dist-packages/urllib3 /usr/lib/python2.7/dist-packages/")
os.system("cp -rf /usr/lib/python3/dist-packages/urllib3-1.25.9.egg-info /usr/lib/python2.7/dist-packages/")
os.system("cp -rf /usr/lib/python3/dist-packages/six.py /usr/lib/python2.7/dist-packages/")
os.system("cp -rf /usr/lib/python3/dist-packages/six-1.15.0.egg-info /usr/lib/python2.7/dist-packages/")
os.system("cp -rf /usr/lib/python3/dist-packages/certifi /usr/lib/python2.7/dist-packages/")
os.system("cp -rf /usr/lib/python3/dist-packages/certifi-2020.6.20.egg-info /usr/lib/python2.7/dist-packages/")
os.system("cp -rf /usr/lib/python3/dist-packages/idna /usr/lib/python2.7/dist-packages/")
os.system("cp -rf /usr/lib/python3/dist-packages/idna-2.10.egg-info /usr/lib/python2.7/dist-packages/")
print("Try it now, if i didn't work, contact azgard on github, bye !")
time.sleep(1)
sys.exit()
except IOError:
os.system("clear")
print("Installing...")
time.sleep(1)
os.system("sudo apt-get install xterm -y")
os.system("sudo apt-get install figlet")
os.system("sudo apt-get install python3-pip")
os.system("sudo apt-get install python-pip")
os.system("sudo python -m pip install urllib2")
os.system("sudo python -m pip install colorama")
os.system("sudo python -m pip install BeautifulSoup")
os.system("sudo python -m pip install beautifulsoup4")
os.system("sudo python3 -m pip install google")
os.system("sudo python3 -m pip install urllib2")
os.system("sudo python3 -m pip install colorama")
os.system("sudo python3 -m pip install BeautifulSoup")
os.system("sudo python3 -m pip install beautifulsoup4")
os.system("sudo python3 -m pip install google")
os.system("clear")
subprocess.Popen("mkdir /usr/share/stupidlazy/;cp -rf * /usr/share/stupidlazy/", shell=True).wait()
filewrite = open("/usr/local/bin/stupidlazy", "w")
filewrite.write("#!/bin/sh\ncd /usr/share/stupidlazy\npython stupidlazy.py")
filewrite.close()
subprocess.Popen("chmod +x /usr/local/bin/stupidlazy", shell=True).wait()
os.system("clear")
print("Done!")
print("Starting the tool...")
print("BTW ! you can start the tool anywhere on your terminal by typing: stupidlazy")
print("Bye!")
time.sleep(4)
os.system("python stupidlazy.py")