-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheasy.py
211 lines (187 loc) · 3.73 KB
/
easy.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
import os
def main():
print("Welcome to getting the requirements")
choice = input("""
1. Install pip
2. Install kali-linux-all
3. Install git
4. All important single modules
5.Clear
6.Update
Enter your choice: """)
if choice == "1":
pip()
elif choice == "2":
kali()
elif choice == "3":
git()
elif choice == "4":
single()
elif choice == "5":
clear()
elif choice == "6":
update()
def pip():
try:
os.system("sudo apt install python3-pip")
main()
except:
print("Failed")
main()
def kali():
try:
os.system("apt-get install kali-linux-all && kali-linux-full && kali-linux")
main()
except:
try:
os.system("apt-get install kali-linux")
main()
except:
print("Failed")
quit()
def git():
try:
os.system("apt-get install git")
main()
except:
print("This didnt work")
main()
def single():
print("Most important pen testing tools you need")
choice = input("""
1.Hydra
2.Metasploit
3.John the ripper
4.NMAP
5.Hashcat
6.WireShark
7.Aircrack-ng
8.Nessus
9.Snort
10.Nikto
11.Yersinia
12.Clear
0.Exit
Enter a choice: """)
if choice == "1":
hydra()
elif choice == "2":
metasploit()
elif choice == "3":
John()
elif choice == "4":
nmap()
elif choice == "5":
hashcat()
elif choice == "6":
wireshark()
elif choice == "7":
aircrack()
elif choice == "8":
Nessus()
elif choice == "9":
Snort()
elif choice == "10":
Nikto()
elif choice == "11":
Yersinia()
elif choice == "12":
clear1()
elif choice == "0":
Exit()
else:
print("Enter a valid choice")
def hydra():
try:
os.system("apt-get install hydra")
single()
except:
print("Could not find")
single()
def metasploit():
try:
os.system("apt-get install metasploit-framework && postgresql")
single()
except:
print("Not found")
single()
def John():
try:
os.system("apt-get install john")
single()
except:
print("Not found")
single()
def nmap():
try:
os.system("apt-get install nmap")
single()
except:
print("Not found")
single()
def hashcat():
try:
os.system("apt-get install hashcat")
single()
except:
print("Not found")
single()
def wireshark():
try:
os.system("apt-get install hashcat")
single()
except:
print("Not found")
single()
def aircrack():
try:
os.system("apt-get install aircrack-ng")
single()
except:
print("Not found")
single()
def Nessus():
try:
os.system("apt-get install nessus")
single()
except:
print("Not found")
single()
def Snort():
try:
os.system("apt-get install snort")
single()
except:
print("Not found")
single()
def Nikto():
try:
os.system("apt-get install nikto")
single()
except:
print("File not found")
single()
def Yersinia():
try:
os.system("apt-get install yersinia")
single()
except:
print("Not found")
single()
def Exit():
main()
def clear():
os.system("clear")
main()
def clear1():
os.system("clear")
single()
def update():
try:
os.system("git clone https://github.com/WHYSOEASY/EasyScript.git")
print("Updated version in new file in the directory")
exit()
except:
print("Updated already or failed to update")
main()
main()