forked from abhi-r3v0/Adhrit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstaller.py
41 lines (31 loc) · 1.18 KB
/
installer.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
# !/usr/bin/env python
import os
class dep_installer():
def __init__(self):
pass
def ins(self):
print "\n[+] Installing necessary tools "
try:
os.system('sudo apt-get install toilet')
print "\n[+] Installation of dependencies complete"
except OSError as ose:
print "\n[!] Error installing dependency"
print "\n[+] Installing ARM dependencies"
try:
os.system('sudo apt-get install libc6-armel-cross libc6-dev-armel-cross')
os.system('sudo apt-get install binutils-arm-linux-gnueabi')
os.system('sudo apt-get install libncurses5-dev')
print "\n[+] Installation of ARM tools complete"
except OSError as ose:
print "\n[!] Error installing ARM dependencies"
print "\n[+] Installing Android debug tools "
try:
os.system('sudo apt-get install android-tools-adb')
print "\n[+] Installation of Android tools complete"
except OSError as ose:
print "\n[!] Error installing Android tools"
def main():
dep = dep_installer()
dep.ins()
if __name__ == '__main__':
main()