-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMassShell.py
180 lines (164 loc) · 6.08 KB
/
MassShell.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#author :SimplyPancake
#python_version :2.7.6
#=======================================================================
# Import the modules needed to run the script.
import sys, os
# Main definition - constants
menu_actions = {}
# =======================
# MENUS FUNCTIONS
# =======================
# Main menu
def main_menu():
os.system('clear')
print """
███╗ ███╗ █████╗ ███████╗███████╗
████╗ ████║██╔══██╗██╔════╝██╔════╝
██╔████╔██║███████║███████╗███████╗
██║╚██╔╝██║██╔══██║╚════██║╚════██║
██║ ╚═╝ ██║██║ ██║███████║███████║
╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝
_______________
| By |
|SimplyPancake|
|_____________|
(\__/) ||
(•ㅅ•) ||
/ \づ
"""
print "1. Install all tools(INSTALLS ROUTERSPLOIT KALI VERSION)"
print "2. Update all tools(ONLY WORKS IF ALL TOOLS INSTALLED)"
print "\n99. Quit"
choice = raw_input(" >> ")
exec_menu(choice)
return
# Execute menu
def exec_menu(choice):
os.system('clear')
ch = choice.lower()
if ch == '':
menu_actions['main_menu']()
else:
try:
menu_actions[ch]()
except KeyError:
print "Invalid selection, please try again.\n"
menu_actions['main_menu']()
return
#===============
#update
#===============
def upd8():
#Update DZGEN
os.system('cd InSc/DZGEN && sudo git pull')
os.system('clear')
#Update Fluxion
os.system('cd InSc/fluxion && sudo git pull')
os.system('clear')
#Update Fsociety
os.system('chmod +x InSc/fsociety/update.sh && ./InSc/fsociety/update.sh')
os.system('clear')
#Update RedHawk
os.system('cd InSc/RED_HAWK && sudo git pull')
os.system('clear')
#Update routersploit
os.system('cd InSc/routersploit && sudo git pull')
os.system('clear')
#Update Trity
os.system('cd InSc/Trity && sudo git pull')
os.system('clear')
#Update Yuki Chan
os.system('cd InSc/Yuki-Chan-The-Auto-Pentest && sudo git pull')
os.system('clear')
#Update Trape
os.system('cd InSc/trape && sudo git pull')
os.system('clear')
#Update sAINT
os.system('cd InSc/sAINT && sudo git pull')
os.system('chmod +x InSc/sAINT/configure.sh')
os.system('cd sAINT && ./configure.sh')
#Update FatRat
os.system('chmod +x InSc/TheFatRat/update && ./InSc/TheFatRat/update')
os.system('chmod +x InSc/TheFatRat/setup.sh && ./InSc/TheFatRat/setup.sh')
os.system('clear')
#Go back to main menu
os.system('python MassShell.py')
#================
#install all
#================
def installall():
#install DZGEN
os.system('cd InSc && git clone https://github.com/joker25000/DZGEN.git')
os.system('chmod +x InSc/DZGEN/DZGEN')
os.system('clear')
#install Fluxion
os.system('cd InSc && git clone https://github.com/FluxionNetwork/fluxion.git')
os.system('clear')
#install fsociety
os.system('cd InSc && git clone https://github.com/Manisso/fsociety.git')
os.system('./fsociety/install.sh')
os.system('clear')
#install redhawk
os.system('cd InSc && git clone https://github.com/Tuhinshubhra/RED_HAWK.git')
os.system('clear')
#install routersploit for kali
os.system('pip install requests')
os.system('pip install paramiko')
os.system('pip install beautifulsoup4')
os.system('pip install pysnmp')
os.system('cd InSc && git clone https://github.com/reverse-shell/routersploit')
os.system('clear')
#install yuki chan
os.system('cd InSc && git clone https://github.com/Yukinoshita47/Yuki-Chan-The-Auto-Pentest.git')
os.system('cd InSc/Yuki-Chan-The-Auto-Pentest && chmod 777 wafninja joomscan install-perl-module.sh yuki.sh')
os.system('cd InSc/Yuki-Chan-The-Auto-Pentest && chmod 777 Module/WhatWeb/whatweb')
os.system('pip install -r InSc/Yuki-Chan-The-Auto-Pentest/requirements.txt')
os.system('cd InSc/Yuki-Chan-The-Auto-Pentest && ./install perl-module.sh')
os.system('clear')
#install Trape
os.system('cd InSc && git clone https://github.com/boxug/trape.git')
os.system('pip install InSc/trape/requirements.txt')
#install sAINT
os.system('apt install maven default-jdk default-jre openjdk-8-jdk openjdk-8-jre -y')
os.system('apt install zlib1g-dev libncurses5-dev lib32z1 lib32ncurses5 -y')
os.system('cd InSc && git clone https://github.com/tiagorlampert/sAINT.git')
os.system('chmod +x InSc/sAINT/configure.sh')
os.system('cd InSc/sAINT && ./configure.sh')
os.system('clear')
#print msg to install trity and fatrat.
os.system('clear')
print "Please install Trity and TheFatRat manually, because python..."
#install trity
# os.system('git clone https://github.com/toxic-ig/Trity.git')
# os.system('chmod +x Trity/install.py')
# os.system('chmod +x Trity/trity.py')
# os.system('cd Trity')
# os.system('clear')
# print "Somehow, someway, executing scripts in scripts is really hard. #Please type 'cd Trity && sudo python install.py. After that is completed, #please type 'cd ..' '
#install FatRat (install last)
# os.system('git clone https://github.com/Screetsec/TheFatRat.git')
# os.system('chmod +x TheFatRat/setup.sh')
# os.system('clear')
# print "somehow, someway, running scripts in python messes up a bit. #Please run 'cd TheFatRat && ./setup.sh'. The install script will ask you #if you want to create a shortcut. Please answer with 'y', otherwise this #script won't work."
# Exit program
def exit():
sys.exit()
# =======================
# MENUS DEFINITIONS
# =======================
# Menu definition
menu_actions = {
'main_menu': main_menu,
'1': installall,
'2': upd8,
'99': exit,
}
# =======================
# MAIN PROGRAM
# =======================
# Main Program
if __name__ == "__main__":
# Launch main menu
main_menu()