forked from wermaxta/Trity
-
Notifications
You must be signed in to change notification settings - Fork 81
/
install.py
51 lines (44 loc) · 1.81 KB
/
install.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
import os, sys
from time import sleep
if not os.geteuid() == 0:
sys.exit("\033[1;31mPlease run this script as root!\033[0m")
header = """
------------------
< \033[1;36mTrity Installer!!\033[1;36m >
------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||-----||
|| ||
"""
print header
print "\033[1;36mOperating Systems Available:\033[1;36m "
print "\n--------------------------"
print "(1) Kali Linux / Ubuntu / Raspbian"
print "--------------------------\n"
option = raw_input("\033[0m[>] Select Operating System: \033[0m")
if option == "1":
print "\033[1;33m[*] Loading...\033[0m"
os.system('apt-get install python-pip')
os.system('easy_install pip')
import pip
os.system('sudo apt-get install libjpeg-dev libfreetype6 zlib1g-dev')
os.system('pip2.7 install --upgrade beautifulsoup4')
os.system('pip install google')
os.system('pip install requests')
os.system('pip install pythonwhois')
os.system('pip2.7 install --upgrade html5lib')
os.system('pip install pillow')
os.system('pip install qrcode')
os.system('pip install requests[security]')
os.system('pip install http://effbot.org/downloads/Imaging-1.1.6.tar.gz')
install = os.system("apt-get update && apt-get install -y build-essential git")
install2 = os.system("cp -R trity/ /opt/ && cp trity.py /opt/trity && cp run.sh /opt/trity && cp run.sh /usr/bin/trity && chmod +x /usr/bin/trity")
os.system('apt-get install sendemail')
os.system('apt-get install libncurses5')
pip.main(["install", "scapy", "pythonwhois", "BeautifulSoup", "requests", "mechanize", "google", "qrcode"])
print "\033[1;32m[!] Finished Installing! Run 'trity' to run program [!]\033[0m"
sys.exit()
else:
print "Whoops! Something went wrong!"