forked from MrTaharAmine/Yuki-Chan-The-Auto-Pentest
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathyuki.sh
296 lines (293 loc) · 19.7 KB
/
yuki.sh
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
#!/bin/bash
# The Yuki Chan
#
# Automated Intel-Gathering - Vulnerability Analysis - OSINT
# Tracking - System Enumeration - And Off Course Pentesting Too
#
# Version : 1.0 | Codename : Waifu Sudah Lacur
# Coded by : Yukinoshita 47 | Garuda Security Hacker
#
# Tested on : Kali Linux
# I highly recommend using this tool by using Kali Linux OS
# If You using another OS dont forget to install python and perl requirements
#
# More Info : http://www.garudasecurityhacker.org
#
# This Tool Designed For Lazy Way To Pentest :)
# Remember Educational Purpose only Not For Crime
# Im Not Responsible If Something Bad Thing Happen
# Use At Your Own Risk
#
echo ""
echo " "
echo " ██╗ ██╗ ██╗ ██ "
echo " ██║ ██║ ██║ ██╝ "
echo " ██║ ██║ ██╚═██╝ ██╗ "
echo " █████████║ ██╗ ██╗ ██ ██║ ══╝ "
echo " ██╔══╝ ██║ ██║ ██╔═██╗ ██╗"
echo " ██║ ██║ ██║ ██║ ██╗ ██║"
echo " ██║ ███████║ ██║ ██╗ ██║ "
echo " ══╝ ═══════╝ ══╝ ══╝ ══╝ "
echo " The YuKi-Chan "
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Automated Intel-Gathering - Vulnerability Analysis - OSINT ║"
echo "║ Tracking - System Enumeration - And Off Course Pentesting Too ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo "╔════════════════════════════════════════════════════════════════╗"
echo " ║ Version : 1.0 | Codename : Waifu Sudah Lacur ║"
echo " ║ Coded by : Yukinoshita 47 | Garuda Security Hacker ║"
echo " ║ Tested on : Kali Linux ║"
echo " ║ More Info : http://www.garudasecurityhacker.org ║"
echo " ╚════════════════════════════════════════════════════╝"
echo " Recode The Copyright Is Not Make You A Coder Dude :p "
echo "══════════════════════════════════════════════════════════════════"
echo "Enter domain of your Target Below example site.com :"
read TARGET
echo ""
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ ║"
echo "║ WARNING ║"
echo "║ ║"
echo "║ I highly recommend using this tool by using Kali Linux OS ║"
echo "║ ║"
echo "║ By using this tool it means you agree with terms, ║"
echo "║ conditions, and risks ║"
echo "║ ║"
echo "║ By using this tool you agree that ║"
echo "║ 1. use for legitimate security testing ║"
echo "║ 2. not for crime ║"
echo "║ 3. the use of this tool solely for ║"
echo "║ educational reasons only ║"
echo "║ ║"
echo "║ By using this tool you agree that ║"
echo "║ 1. You are willing to be charged with criminal or state ║"
echo "║ law applicable by law enforcement officers ║"
echo "║ and government when abused ║"
echo "║ 2. the risk is borne by yourself ║"
echo "║ ║"
echo "║ Thank you and happy pentest ║"
echo "║ ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo ""
echo ""
echo ""
echo ""
echo "█[1]█"
echo ""
echo ""
echo ""
echo "█[2]█"
echo ""
echo ""
echo ""
echo "█[3]█"
echo ""
echo ""
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ YUKI-CHAN STARTED ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Let's Find Who The Hell Is This Owner ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo "whois looking up (if not run maybe not installed in your OS)"
whois $TARGET
echo "whois looking up finished"
echo ""
echo "nslooking up (if not run maybe not installed in your OS)"
nslookup $TARGET
echo "nslooking up finished"
echo ""
echo "scanning with nmap (if not run maybe not installed in your OS)"
nmap -v -O $TARGET
echo "scanning with nmap finished"
echo ""
echo "starting the harvester for gathering email and subdomain information"
python Module/theHarvester/theHarvester.py -d $TARGET -l 500 -b google
echo "the harvester finished"
echo ""
echo "starting metagoofil for gathering document maybe important"
python Module/metagoofil/metagoofil.py -d $TARGET -t doc,pdf,xls,csv,txt -l 200 -n 50 -o metagoofiles -f data.html
echo "metagoofil finished"
echo ""
echo "starting dnsrecon for gathering DNS record "
python Module/dnsrecon/dnsrecon.py -d $TARGET
echo "dnsrecon finished"
echo ""
dig -x $TARGET
python Module/sublist3r/sublist3r.py --domain $TARGET
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Got It :v wkwkwkwkwk ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Web Application Firewall Scanning Starting ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo "scanning WAF with wafw00f"
wafw00f http://$TARGET
echo "scanning finished next..."
echo ""
echo "try bypass WAF with wafninja"
./wafninja bypass -u "http://$TARGET/index.php" -p "Name=PAYLOAD&Submit=Submit" -c "phpsessid=value" -t xss -o output.html
echo ""
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Web Application Firewall Scanning Finished ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ XSS Scanning Starting ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
python Module/XssPy.py -u $TARGET -v
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ XSS Scanning Finished ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Web / CMS Vulnerability Scanning Starting ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo "checking web with whatweb (if not run maybe not installed in your OS)"
./Module/WhatWeb/whatweb $TARGET
echo ""
echo ""
echo "checking web with spaghetti"
python Module/Spaghetti/spaghetti.py --url http://$TARGET --scan [0-3]
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Scan Wordpress Starting ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo "start scanning wpscan.rb (if not run maybe not installed in your OS)"
wpscan --url http://$TARGET --enumerate u
echo ""
echo "If Your OS Doesn't Have WPScan"
echo "Dont Worry Dude I Have Alternative Scanner For You"
echo "Next Time Use Kali Linux if you want this tool work perfectly "
echo ""
python Module/wpscanner.py -s http://$TARGET -n 20
droopescan scan wordpress -u http://$TARGET
python Module/WPSeku/wpseku.py --target http://$TARGET
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Scan Wordpress Finished ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Scan Joomla Starting ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo "start scanning"
./joomscan -u http://$TARGET
droopescan scan joomla -u http://$TARGET
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Scan Joomla Finished ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Scan Other CMS Starting ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo ""
echo "scan drupal cms"
droopescan scan drupal -u http://$TARGET
echo "scan dupal cms finished next...."
echo ""
echo "scan silverstripe cms"
droopescan scan silverstripe -u http://$TARGET
echo "scan silverstripe cms finished next..... "
echo ""
echo "scan moodle cms"
droopescan scan moodle -u http://$TARGET
echo "scan moodle cms finished next..... "
echo ""
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Scan Other CMS Finished ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Web / CMS Vulnerability Scanning Finished ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ SSL Vulnerability Scanning Starting ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo "starting sslscan (if not run maybe not installed in your OS)"
sslscan $TARGET
echo "sslscan finished let's use another way"
echo ""
echo "starting sslyze (if not run maybe not installed in your OS)"
sslyze --resum --certinfo=basic --compression --reneg --sslv2 --sslv3 --hide_rejected_ciphers $TARGET
echo "sslyze finished let's change side"
echo ""
echo "Update U2SV First"
python Module/a2sv/a2sv.py -u
echo "Update Finished Continue Scanning"
python Module/a2sv/a2sv.py -t $TARGET
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ SSL Vulnerability Scanning Finished ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Fuzz Scanning Starting ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo "starting fuzzing with waf ninja"
./wafninja fuzz -u "http://$TARGET/index.php?id=FUZZ" -c "phpsessid=value" -t xss -o output.html
echo "fuzzing finished"
echo ""
echo "starting fuzzing.php web dir"
echo ""
python3 Module/dirsearch/dirsearch.py -u http://$TARGET -e .php
echo ""
echo "fuzzing .php web dir"
echo ""
echo ""
echo "starting.asp web dir finished"
python3 Module/dirsearch/dirsearch.py -u http://$TARGET -e .asp
echo "fuzzing .asp web dir finished"
echo ""
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Fuzz Scanning Finished ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ Moving Metagoofil Files ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
echo "Moving Metagoofil Folder"
mv metagoofiles /root/Desktop
echo "Moving Metagoofil Folder Finished"
echo ""
echo "Moving Metagoofile data.html"
mv data.html /root/Desktop
echo "Moving Metagoofil data.html finished"
echo ""
echo ""
echo ""
echo ""
echo "█[1]█"
echo ""
echo ""
echo ""
echo "█[2]█"
echo ""
echo ""
echo ""
echo "█[3]█"
echo ""
echo ""
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ YUKI-CHAN FINISHED ║"
echo "║ HOPE YOU ENJOY IT ║"
echo "║ AND AS ALWAYS ║"
echo "║ HAVE NICE DAY ║"
echo "╚════════════════════════════════════════════════════════════════╝"