-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
phisherprice.sh
3756 lines (3332 loc) · 136 KB
/
phisherprice.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
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
##################################
# PhiserPrice version 4.1(ALPHA) #
##################################
## Developed on BackBox With <3 ##
## By SirCryptic ##
##################################
##################################
## rjwdlu4eva ##
##################################
## Greetz To: ##
##################################
## NullSecurityTeam ##
## M0bly ##
## Double A ##
##################################
## R1ff ##
## M0nde ##
## lucci ##
## Jack ##
## Kiera ##
##################################
## Repo ##
################################################
## https://github.com/SirCryptic/phisherprice ##
################################################
## LICENSE ##
#########################################################################
## https://github.com/SirCryptic/phisherprice/blob/re-write/LICENSE.md ##
#########################################################################
## Changelog ##
###########################################################################
## https://github.com/SirCryptic/phisherprice/blob/re-write/CHANGELOG.md ##
###########################################################################
## NOTICE: ##
################################################################################################################################################
## If you have paid for this script, please be aware that you have been scammed. ##
## This script is open source and freely available for anyone to use and modify under the terms of the license for personal use. ##
## No one should be charging you for access to this script or claiming it as their own work. ##
## If you have any concerns or questions, please contact the original author (SirCryptic) or report the scam to the appropriate authorities. ##
################################################################################################################################################
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
echo "You Forgot To Say The Magic Word, bRuHhh cmon"
exit 1
fi
clear
echo -n "Loading Please Wait."
# API keys and other variables
phone_lookup_api_key=REPLACE_ME_WITH_YOUR_API_KEY
bin_checker_api_key=REPLACE_ME_WITH_YOUR_API_KEY
email_validator_api_key=REPLACE_ME_WITH_YOUR_API_KEY
SHODAN_API_KEY=REPLACE_ME_WITH_YOUR_API_KEY
HISTFILE="$HOME/.bash_history"
history -a "$HISTFILE"
if [[ $- == *i* ]]; then
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
bind '"\e[C": forward-char'
bind '"\e[D": backward-char'
fi
history -r
history -a
history -w
# Set the terminal size
echo "${green}Setting terminal size...${reset}"
resize -s 50 150
# Set up color variables
black=`tput setaf 0`
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
blue=`tput setaf 4`
magenta=`tput setaf 5`
cyan=`tput setaf 6`
white=`tput setaf 7`
reset=`tput sgr0`
colors=(
"$(tput setaf 0)"
"$(tput setaf 1)"
"$(tput setaf 2)"
"$(tput setaf 3)"
"$(tput setaf 4)"
"$(tput setaf 5)"
"$(tput setaf 6)"
"$(tput setaf 7)"
"$(tput sgr0)"
)
banner_files=(
"phisherprice/main/banners/banner1.txt"
"phisherprice/main/banners/banner2.txt"
"phisherprice/main/banners/banner3.txt"
"phisherprice/main/banners/banner4.txt"
"phisherprice/main/banners/banner5.txt"
"phisherprice/main/banners/banner6.txt"
)
title="PhisherPrice"
echo -e '\033]2;'$title'\007'
ACPbanner="
${cyan} ___ _____ ______${magenta}______
${cyan} / _ \/ __ \| ___ \ ${magenta} ___|
${cyan}/ /_\ \ / \/| |_/ /${magenta} |_
${cyan}| _ | | | __/${magenta}| _|
${cyan}| | | | \__/\| | ${magenta}| |
${cyan}\_| |_/\____/\_| ${magenta}\_|
${cyan}Admin Control Panel ${magenta}Finder ${yellow}[BETA]
${magenta}Developed By ${cyan}NullSecurityTeam${reset}
${magenta}Revised By ${cyan}SirCryptic@NullSecurityTeam${reset}
"
# Parse the command-line arguments
while getopts "b" opt; do
case $opt in
b)
show_banner=true
;;
\?)
echo "Invalid option: -$OPTARG" >&2
;;
esac
done
# Select a random banner file if banners are enabled
if [ "$show_banner" = true ]; then
selected_banner=${banner_files[RANDOM % ${#banner_files[@]}]}
fi
# Select a random color
random_color=$((RANDOM % 8))
color=${colors[$random_color]}
# Main menu function
main_menu() {
while true
do
clear
# Print the banner with the selected color if banners are enabled
if [ "$show_banner" = true ]; then
cat "$selected_banner" | sed "s/.*/${color}&${colors[8]}/"
fi
echo -e "
┌───────────────────────────────────────┐
│${red}Main Menu${reset} │
├───────────────────────────────────────┤
│${green}1${reset} │Recon │
│${green}2${reset} │Cracking │
│${green}3${reset} │AutoxSploits │
│${green}4${reset} │Networking │
│${green}5${reset} │C.Y.O xSploits │
│${green}6${reset} │AutoExif │
│${green}7${reset} │SE Toolkit │
│${green}8${reset} │Start Th3inspector │
│${green}u${reset} │Update Script │
│${green}c${reset} │Contact Information │
├───────────────────────────────────────┤
│ q/Q To Exit │
"├$blue["$red"PhisherPrice$blue]$reset──$blue[$red~$blue]$reset──$blue["$yellow"ToolSet$blue]:"$reset────────┘"
read -r -p"└─────► $reset" choice
case $choice in
1)
submenu1
;;
2)
submenu2
;;
3)
submenu3
;;
4)
submenu4
;;
5)
submenu5
;;
6)
submenu6
;;
7)
clear
echo "Are you sure you want to start SE Toolkit?"
read -p "Press Y to confirm or any other key to cancel." confirm
if [[ "$confirm" =~ ^([yY][eE][sS]|[yY])$ ]]; then
clear
echo -e "\n**************************************************"
echo "****** ${green}Starting${reset} Social Engineering Toolkit... ******"
echo -e "**************************************************\n"
if sudo setoolkit; then
clear
echo -e "\n**************************************************"
echo "****** SET has been ${red}closed${reset} ******"
echo -e "**************************************************\n"
else
clear
echo -e "\n**************************************************"
echo "****** ${red}Error${reset} running SET... ******"
echo "****** Please check your installation. ******"
echo -e "**************************************************\n"
fi
else
clear
echo -e "\n**************************************************"
echo "****** ${red}Operation cancelled.${reset} ******"
echo -e "**************************************************\n"
fi
;;
8)
clear
echo "Are you sure you want to start Th3inspector?"
read -p "Press Y to confirm or any other key to cancel." confirm
if [[ "$confirm" =~ ^([yY][eE][sS]|[yY])$ ]]; then
clear
echo -e '\n**************************************************'
echo "****** ${green}Loading${reset} Th3inspector... ******"
echo -e '**************************************************\n'
Th3inspector
clear
echo -e '\n**************************************************'
echo "****** Th3inspector has been ${red}closed.${reset} ******"
echo -e '**************************************************\n'
else
clear
echo -e '\n**************************************************'
echo "****** ${red}Operation cancelled.${reset} ******"
echo -e '**************************************************\n'
fi
;;
u|U)
clear
echo "${green}Updating Phisherprice...${reset}"
REPO_URL="https://github.com/sircryptic/phisherprice.git"
INSTALL_DIR="/usr/local/bin/phisherprice"
echo "${yellow}Cloning latest release...${reset}"
git clone $REPO_URL $INSTALL_DIR.new || { echo "Failed to clone latest release"; exit 1; }
if [ -d $INSTALL_DIR.old ]; then
echo "${yellow}Removing old version...${reset}"
sudo rm -rf $INSTALL_DIR.old || { echo "${red}Failed to remove old version${reset}"; exit 1; }
fi
if [ -d $INSTALL_DIR ]; then
echo "${yellow}Backing up current version...${reset}"
sudo mv $INSTALL_DIR $INSTALL_DIR.old || { echo "${red}Failed to move current version to backup${reset}"; exit 1; }
fi
echo "${green}Installing latest version...${reset}"
sudo mv $INSTALL_DIR.new $INSTALL_DIR || { echo "${red}Failed to install latest version${reset}"; exit 1; }
echo "${yellow}Making $INSTALL_DIR/phisherprice.sh executable...${reset}"
sudo chmod +x $INSTALL_DIR/phisherprice.sh || { echo "${red}Failed to make phisherprice.sh executable${reset}"; exit 1; }
echo "${yellow}Creating symbolic link for phisherprice.sh as pp...${reset}"
if [ -L /usr/local/bin/pp ]; then
echo "${yellow}Removing old symbolic link...${reset}"
sudo rm /usr/local/bin/pp || { echo "${red}Failed to remove old symbolic link${reset}"; exit 1; }
fi
sudo ln -s $INSTALL_DIR/phisherprice.sh /usr/local/bin/pp || { echo "${red}Failed to create symbolic link${reset}"; exit 1; }
echo "${green}Update complete!${reset}"
echo "${yellow}Restarting Phisherprice${reset} (${green}now accessible via 'pp'${reset})..."
sudo pp || { echo "${red}Failed to restart Phisherprice${reset}"; exit 1; }
;;
c|C)
clear
echo -e "${Yellow}If you have any issues, feel free to ${green}file a bug report${reset} on GitHub @ https://github.com/sircryptic/phisherprice${reset}"
echo -e "\e[1;34mI would personally like to thank \e[1;35mJack \e[1;34mover at \e[1;32mKali Hacking Community Discord Server\e[1;34m for being my motivation to keep making this tool. Sadly, this tool is no longer going to be updated much longer, and the original KHC community sank. Farewell to all those I personally knew.\nI would also like to thank \e[1;35mKiera<3 \e[1;34mover @KCH \e[1;34mfor making me aware of bugs. Without people like this, I probably would have been oblivious. So thank you once again to all those that made this possible and gave me inspiration.\n- \e[1;31mSirCryptic \e[1;31m\n"
;;
q|Q)
clear
echo "${red}Exiting PhisherPrice.${green} Goodbye!${reset}"
exit 0
;;
*)
echo "Invalid option: $choice"
;;
esac
echo ""
read -p "Press enter to continue...${reset}"
done
}
# Submenu 1 function
submenu1() {
while true
do
clear
echo -e "
┌────────────────────────────────────────────┐
│${red}Recon & Auditing${reset} │
├────────────────────────────────────────────┤
│${green}1${reset} │Whois Info │
│${green}2${reset} │Geo IP │
│${green}3${reset} │IP Lookup │
│${green}4${reset} │DNS Lookup │
│${green}5${reset} │Reverse DNS Lookup │
│${green}6${reset} │Shared DNS Lookup │
│${green}7${reset} │Nmap Scan (w/OS Detection) │
│${green}8${reset} │SSH Scanner (Scan for weak cyphers) │
│${green}9${reset} │SSL/TLS Scanner (Scan for weak cyphers) │
│${green}10${reset} │Retreive HTTP Headers │
│${green}11${reset} │Autonomous System Lookup (AS/ASN/IP) │
│${green}12${reset} │Banner Grab │
│${green}13${reset} │Extract All Links From Host │
│${green}14${reset} │Phone Number Lookup │
│${green}15${reset} │Reverse Analytics │
│${green}16${reset} │Get Server Users │
│${green}17${reset} │SQL Map │
│${green}18${reset} │SQL Map (Quick/Deep) │
│${green}19${reset} │Scan For Vulns (Metasploit) │
│${green}20${reset} │BIN Checker │
│${green}21${reset} │Email Validator │
│${green}22${reset} │Scan Shodan for vulnrable IOT Devices │
│${green}23${reset} │Admin Control Panel Finder [BETA] │
├────────────────────────────────────────────┤
│ b/B To Go To Back ~ q/Q To Exit │
"├$blue["$red"PhisherPrice$blue]$reset──$blue[$red~$blue]$reset──$blue["$yellow"Recon/Auditing$blue]:"$reset──────┘"
read -r -p"└─────► $reset" choice
case $choice in
1)
clear
echo "Enter website domain:"
read -e domain
history -a
echo "$domain" >> ~/.bash_history
echo -e "\n----------------------------------------"
echo "Gathering Information About Host:"
echo "-------------------------------"
response=$(whois $domain)
if [[ -z $response || $response == *"No match for"* || $response == *"NOT FOUND"* ]]; then
echo "Error: Domain $domain not found"
else
echo -e "\n----------------------------------------"
echo "Domain Information"
echo "----------------------------------------"
echo -e "$response"
echo -e "\nDo you want to save the information to a file? (y/n)"
read -e saveToFile
if [[ $saveToFile == "y" ]]; then
echo -e "$response" > "$domain.txt"
echo "Information saved to file: $domain.txt"
fi
fi
;;
2)
clear
echo -e "Geo IP Lookup"
echo "Enter IP or Domain:"
read -e subop3
history -a
echo -e "\n-------------------------------"
echo "Getting Geo IP Information for:"
echo "$subop3" >> ~/.bash_history
echo "-------------------------------"
response=$(curl -s "https://api.hackertarget.com/geoip/?q=$subop3")
if [[ -z $response || $response == *"error"* ]]; then
echo "Error: Failed to retrieve Geo IP information for $subop3"
else
echo -e "\n-----------------------------"
echo "Geo IP Information Found"
echo "-----------------------------"
echo -e "$response"
fi
;;
3)
clear
echo -e "Reverse IP Lookup"
echo "Enter IP or Domain:"
read -e subop4
history -a
echo -e "\n-------------------------------"
echo "Getting IP Information for:"
echo "$subop4" >> ~/.bash_history
echo "-------------------------------"
response=$(curl -s "http://api.hackertarget.com/reverseiplookup/?q=$subop4")
if [[ -z $response || $response == *"error"* ]]; then
echo "Error: Failed to retrieve reverse IP information for $subop4"
else
echo -e "\n-----------------------------"
echo "Reverse IP Information Found"
echo "-----------------------------"
echo -e "$response"
fi
;;
4)
clear
echo -e "DNS Lookup"
echo "Enter IP Address, IP Range or Domain Name:"
read -e subop5
history -a
echo -e "\n-------------------------------"
echo "Getting DNS Information for:"
echo "$subop5" >> ~/.bash_history
echo "-------------------------------"
response=$(curl -s "http://api.hackertarget.com/dnslookup/?q=$subop5")
if [[ -z $response || $response == *"error"* ]]; then
echo "Error: Failed to retrieve DNS information for $subop5"
else
echo -e "\n-----------------------------"
echo "DNS Information Found"
echo "-----------------------------"
echo -e "$response"
fi
;;
5)
clear
echo -e "Reverse DNS Lookup"
echo "Enter IP or domain:"
read -e subop6
history -a
echo -e "\n-------------------------------"
echo "Getting DNS information for:"
echo "$subop6" >> ~/.bash_history
echo "-------------------------------"
response=$(curl -s "https://api.hackertarget.com/reversedns/?q=$subop6")
if [[ -z $response || $response == *"error"* ]]; then
echo "Error: Failed to retrieve DNS information for $subop6"
else
echo -e "\n-----------------------------"
echo "DNS Information Found"
echo "-----------------------------"
echo -e "$response"
fi
;;
6)
clear
echo -e "Shared DNS Finder"
echo "Enter IP Or Domain."
read -e subop7
history -a
echo -e "\n-------------------------------"
echo "Finding Shared DNS Servers for:"
echo "$subop7" >> ~/.bash_history
echo "-------------------------------"
response=$(curl -s "https://api.hackertarget.com/findshareddns/?q=$subop7")
if [[ -z $response || $response == *"error"* ]]; then
echo "Error: Failed to retrieve shared DNS servers for $subop7"
else
echo -e "\n-------------------------------"
echo "Shared DNS Servers Found"
echo "-------------------------------"
echo -e "$response"
read -p "Do you want to save the results to a file? (y/n) " save_to_file
if [[ $save_to_file == "y" || $save_to_file == "Y" ]]; then
read -p "Enter a filename to save the results to: " filename
echo -e "$response" > "$filename"
echo "Results saved to $filename"
fi
fi
;;
7)
clear
echo -e "NMAP Scan w/OS Detection"
echo "Enter IP Or Domain."
read -e subop8
history -a
echo -e "$subop8" >> ~/.bash_history
echo -e '
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!! Getting Open Ports !!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
nmap_output=$(sudo nmap -p- --open -O $subop8)
if [[ $nmap_output == *"0 hosts up"* ]]; then
echo "No open ports found."
else
echo -e '
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! Open Ports Found Using nmap !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
echo "$nmap_output"
fi
;;
8)
clear
function scan_ciphers() {
host="$1"
port="$2"
printf "Testing available ciphers on %s:%s...\n" "$host" "$port"
printf "\n\033[1;33mTesting for weak ciphers...\033[0m\n"
openssl ciphers -v | awk '{print $1}' | while read cipher; do
openssl s_client -cipher "$cipher" -connect "$host:$port" >/dev/null 2>&1 && echo -e "Cipher \033[1;32m$cipher is enabled\033[0m" || echo -e "Cipher \033[1;31m$cipher is disabled\033[0m"
done | grep -i -E "NULL|RC4|DES|3DES|MD5|SHA-1"
printf "\n\033[1;33mTesting for strong ciphers...\033[0m\n"
openssl ciphers -v | awk '{print $1}' | while read cipher; do
openssl s_client -cipher "$cipher" -connect "$host:$port" >/dev/null 2>&1 && echo -e "Cipher \033[1;32m$cipher is enabled\033[0m" || echo -e "Cipher \033[1;31m$cipher is disabled\033[0m"
done | grep -v -E "NULL|RC4|DES|3DES|MD5|SHA-1"
printf "\n\033[1;33mTesting for weak MACs...\033[0m\n"
openssl s_client -connect "$host:$port" -tls1_2 -cipher AES256-SHA >/dev/null 2>&1 && echo -e "\033[1;32mHMAC-SHA256 is enabled\033[0m" || echo -e "\033[1;31mHMAC-SHA256 is disabled\033[0m"
openssl s_client -connect "$host:$port" -tls1_2 -cipher AES128-SHA >/dev/null 2>&1 && echo -e "\033[1;32mHMAC-SHA1 is enabled\033[0m" || echo -e "\033[1;31mHMAC-SHA1 is disabled\033[0m"
printf "\n\033[1;33mTesting for key exchange methods...\033[0m\n"
openssl s_client -connect "$host:$port" -tls1_2 -cipher AES256-SHA >/dev/null 2>&1 && echo -e "\033[1;32mECDHE key exchange is enabled\033[0m" || echo -e "\033[1;31mECDHE key exchange is disabled\033[0m"
openssl s_client -connect "$host:$port" -tls1_2 -cipher AES256-SHA >/dev/null 2>&1 && echo -e "\033[1;32mDHE key exchange is enabled\033[0m" || echo -e "\033[1;31mDHE key exchange is disabled\033[0m"
echo -e '
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Host Scanned Using PhiserPrice !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
}
echo -e "SSH Scanner"
echo -e "Enter host: "
read -e host
history -a
echo -e "Enter port: "
read -e port
scan_ciphers "$host" "$port"
;;
9)
clear
echo "Enter the host you want to scan (e.g. testsite.com):"
read -e host
echo "Enter the host port you want to scan (e.g. 443):"
read -e port
clear
echo"$host" >> ~/.bash_history
echo -e '
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Scanning host SSL/TLS for vulns !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
response=$(echo | openssl s_client -connect "$host:$port" 2>/dev/null | openssl x509 -text)
if [[ -z $response || $response == *"unable to"* ]]; then
echo "Error: Failed to retrieve SSL/TLS information for $host:$port"
else
echo -e "\n-----------------------------"
echo "${yellow}SSL/TLS Information${reset}"
echo "-----------------------------"
echo -e "$response"
if [[ $response == *"heartbleed"* ]]; then
echo -e "\n-----------------------------"
echo "Heartbleed Vulnerability ${green}Detected${reset}!"
echo "-----------------------------"
fi
fi
echo -e '
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Host scanned using PhiserPrice !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'
echo "Do you want to save the output to a text file? (y/n)"
read -e save_option
if [[ $save_option == "y" || $save_option == "Y" ]]; then
echo -e "\nSaving output to file...\n"
echo "Host: $host" > ssl_scan_results.txt
echo "Port: $port" >> ssl_scan_results.txt
echo -e "-----------------------------\nSSL/TLS Information\n-----------------------------\n$response" >> ssl_scan_results.txt
echo -e "\n-----------------------------\nHeartbleed Vulnerability Detected!\n-----------------------------" >> ssl_scan_results.txt
echo -e "\nScan complete. Results saved to ssl_scan_results.txt"
else
echo "Scan complete."
fi
;;
10)
clear
echo -e "HTTP Header Scan"
echo "Enter the host you want to scan:"
read -e subop11
history -a
echo -e "\n-------------------------------"
echo "Checking HTTP Headers for:"
echo "$subop11" >> ~/.bash_history
echo "-------------------------------"
status=$(curl -sI $subop11 | head -n 1 | cut -d' ' -f2)
if [[ $status != "200" ]]; then
echo "Error: Failed to retrieve HTTP headers for $subop11 (Status Code: $status)"
else
echo -e "\n------------------------------"
echo "HTTP Headers for $subop11"
echo "$subop11"
echo "-------------------------------"
curl -sI $subop11
fi
;;
11)
clear
echo -e "ASN Lookup"
echo "Enter the ASN you want to scan:"
echo "Example usage: 1.1.1.1 / AS15169"
read -e subop12
history -a
echo -e "\n-------------------------------"
echo "Scanning host for ASN:"
echo "$subop12" >> ~/.bash_history
echo "-------------------------------"
response=$(curl -s https://api.hackertarget.com/aslookup/?q=$subop12)
if [[ -z $response ]]; then
echo "Error: Failed to retrieve ASN information for $subop12"
else
echo -e "\n------------------------------"
echo "ASN Information for $subop12"
echo "------------------------------"
echo -e "$response"
fi
echo -e "\n------------------------------"
echo "Host scanned using PhiserPrice"
echo "------------------------------"
;;
12)
clear
echo -e "Banner Grab"
echo "Enter the IP address or domain name you want to scan:"
read -e subop13
history -a
echo -e "\n-----------------------------------"
echo "Scanning host information for:"
echo "$subop13" >> ~/.bash_history
echo "-----------------------------------"
response=$(curl -sS https://api.hackertarget.com/bannerlookup/?q="$subop13")
if [[ -z $response ]]; then
echo "Error: Failed to retrieve host information for $subop13"
else
echo -e "\n---------------------------"
echo "Host Information for $subop13"
echo "---------------------------"
echo -e "$response"
fi
;;
13)
clear
echo -e "Link Sniffer"
echo "This can reveal social media pages, etc."
echo "Enter domain name:"
read -e domain
history -a
echo -e "\n-----------------------------"
echo "Extracting host links for:"
echo "$domain" >> ~/.bash_history
echo "-----------------------------"
result=$(curl -s https://api.hackertarget.com/pagelinks/?q=$domain)
if [[ -z $result ]]; then
echo "Error: Failed to retrieve host links for $domain"
else
echo -e "\n-----------------------------"
echo "Host links for $domain:"
echo "-----------------------------"
echo -e "$result"
read -p "Save results to a file? (Y/N): " save_results
if [[ $save_results == "Y" || $save_results == "y" ]]; then
echo -e "$result" > "${domain}_pagelinks.txt"
echo "Results saved to ${domain}_pagelinks.txt"
fi
fi
echo -e "\n-----------------------------"
echo "Host links extraction completed using PhisherPrice!"
echo "-----------------------------"
;;
14)
clear
echo -e "Phone Number Lookup"
echo "Please Enter The Number Followed By The Dialing Code"
echo "for example : +447410490080 / +44 Is My Dialing Code"
read -e subop15
history -a
echo -e "\n-----------------------------"
echo "Looking Up Info About The Number:"
echo "$subop15" >> ~/.bash_history
echo "-----------------------------"
curl --request GET "https://api.apilayer.com/number_verification/validate?number=$subop15" \
--header "apikey: $phone_lookup_api_key"
echo -e "\n-----------------------------"
echo "Phone Info Found Using PhisherPrice"
echo "-----------------------------"
;;
15)
clear
echo -e "Reverse Analytics Lookup"
echo "Find Domains Using Same Google Ad-Sense ID"
echo "Enter Domain Name Or GA-ID"
echo "For example: UA-11223344 or testsite.com"
read -e subop16
history -a
echo -e '\n----------------------------------'
echo "Retrieving Hosts/GA-ID for:"
echo "subop16" >> ~/.bash_history
echo '----------------------------------'
result=$(curl -s https://api.hackertarget.com/analyticslookup/?q=$subop16)
if [[ $result == "error check your search parameter" ]]; then
echo "Error: Invalid search parameter $subop16"
else
echo -e "\n----------------------------------"
echo "Host Info Found for $subop16"
echo '----------------------------------'
echo -e "$result"
fi
echo -e '\n----------------------------------'
echo "Hosts/GA-ID retrieved using PhisherPrice"
echo '----------------------------------'
;;
16)
clear
echo -e "User Search"
echo "Enter Domain Name Or IP:"
read -e subop17
history -a
echo -e "\n-----------------------------"
echo "Retrieving Host Users for:"
echo "$subop17" >> ~/.bash_history
echo "-----------------------------"
users=$(enum4linux -M -G -P -S -U $subop17)
if [[ -z "$users" ]]; then
echo -e "\n-----------------------------"
echo "No Host Users Found for:"
echo "$subop17"
echo "-----------------------------"
else
echo -e "\n-------------------------------------------"
echo 'Host Users Retrieved Successfully'
echo '-------------------------------------------'
echo "$users"
fi
read -p "Would you like to save the output to a text file? [y/N] " save_output
if [[ $save_output =~ ^[Yy]$ ]]; then
echo "$users" > enum4linux_output.txt
echo "Output saved to enum4linux_output.txt"
fi
;;
17)
clear
echo -e "SQL Mapper"
echo "Enter Domain Name Or IP:"
read -e sql1
history -a
echo "Database Type If You Know It, If Not Leave This Blank"
echo "Press Enter If You're Unsure"
read -e db
echo "Level of tests to perform (1-5, default 1)"
read -e levelt
echo "Risk of tests to perform (1-3, default 1)"
read -e risksl
echo "SQL injection techniques to use (default: BEUSTQ)"
echo "Press Enter To Leave Default"
read -e techskill
echo -e "\n-----------------------------"
echo "Auditing Host SQL Info for:"
echo "$sql1" >> ~/.bash_history
echo "-----------------------------"
sqlmap --dbms="$db" --forms --crawl=2 --level="${levelt:-1}" --risk="${risksl:-1}" --random-agent --all --technique="${techskill:-BEUSTQ}" -u "$sql1"
if [[ $? -eq 0 ]]; then
echo -e '\n-------------------------------------------'
echo 'SQL Audit Conducted Successfully'
echo '-------------------------------------------'
read -p "Press enter to continue."
else
clear
echo -e '\n-------------------------------------------'
echo 'Failed to Conduct SQL Audit'
echo '-------------------------------------------'
fi
;;
18)
clear
echo -e "SQL Brute Force"
echo "Enter Website"
read -e sqlhost2
echo "php or html ?"
read -e phphtml1
output=$(sqlmap -u $sqlhost2 searchgetby_id.$phphtml1?id=4 --dbs --columns -D scanme --tamper=space2comment --level 5)
if [[ $output == *"available databases"* ]]; then
echo "Database information retrieved successfully:"
echo "$output"
else
echo "No database information retrieved. Please check your input and try again."
fi
;;
19)
clear
echo -e '\e[1;33mMSPLOIT VULN SCANNER\e[0m'
echo -e "\n-------------------------------------------"
echo -e "\e[1;36mEnter Victim's IP:\e[0m"
read -e victim_ip
echo -e "\n\e[1;36m------------------------------\e[0m"
echo -e "\e[1;36mRunning nmap with vuln script...\e[0m"
echo -e "\e[1;36m------------------------------\e[0m"
# start spinner animation
spinner="/-\|"
while true; do
for i in $(seq 0 3); do
echo -ne "\rScanning $victim_ip... ${spinner:$i:1}"
sleep 0.1
done
done &
# run command and save output
output=$(msfconsole -q -x "nmap -v --script vuln $victim_ip ;exit ;" 2>&1)
# stop spinner animation
kill "$!" >/dev/null 2>&1
if echo "$output" | grep -q "VULNERABLE"; then
echo -e "\n\e[1;31m-------------------------------------------\e[0m"
echo -e "\e[1;31mVulnerabilities Found:\e[0m"
echo -e "$output"
echo -e "\e[1;31m-------------------------------------------\e[0m"
else
clear
echo -e "\n\e[1;32m-------------------------------------------\e[0m"
echo -e "\e[1;32mNo vulnerabilities found.\e[0m"
echo -e "\n\e[1;32m-------------------------------------------\e[0m"
fi
;;
20)
clear
echo -e '\e[1;33m
BIN Checker \e[1;34m
'
echo "Enter The BIN Number:"
read -e r
curl --request GET \
--url https://bank-card-bin-num-check.p.rapidapi.com/api/v1/bins/b/$r \
--header "X-RapidAPI-Host: bank-card-bin-num-check.p.rapidapi.com" \
--header "X-RapidAPI-Key:$bin_checker_api_key"
echo ' '
;;
21)
clear
echo -e '\e[1;33m
Email Validator \e[1;34m
'
echo "Enter the email address to verify:"
read -e email
curl --location --request GET "https://api.apilayer.com/email_verification/${email}" \
--header "apikey: ${email_validator_api_key}"
echo ' '
;;
22)
clear
echo "Shodan Vulnrability Search${reset}"
OUTPUT_FILE="shodan_results_$(date +%Y%m%d_%H%M%S).txt"
QUERIES=("title:"webcam" port:554")
QUERIES+=("product:"Apache httpd" version:<2.4.29")
QUERIES+=("product:"Microsoft-IIS"")
QUERIES+=("product:"OpenSSH"")
QUERIES+=("product:"OpenSSH" version:<7.4")
QUERIES+=("product:"nginx"")
QUERIES+=("product:"phpMyAdmin"")
QUERIES+=("product:"Samba"")
QUERIES+=("product:"MySQL"")
QUERIES+=("product:"MySQL" port:3306")
QUERIES+=("product:"PostgreSQL"")
QUERIES+=("product:"Elasticsearch"")
QUERIES+=("product:"MongoDB"")
QUERIES+=("product:"Redis"")
QUERIES+=("product:"Rsync"")
QUERIES+=("product:"Hadoop"")
QUERIES+=("product:"Zookeeper"")
QUERIES+=("product:"Elasticsearch"")
QUERIES+=("product:"RabbitMQ"")
QUERIES+=("port:3389 has_screenshot:true")
QUERIES+=("port:22 product:"OpenSSH" version:<7.4")
QUERIES+=("port:1433 country:US product:"Microsoft SQL Server"")
QUERIES+=("port:21 product:"ProFTPD" version:<1.3.5")
QUERIES+=("port:445 os:Windows")
QUERIES+=("port:161 product:"SNMP"")
QUERIES+=("product:"D-Link Web Management"")
QUERIES+=("product:"nginx" version:<1.16.1")
QUERIES+=("product:"nginx" version:<1.19.4")
QUERIES+=("product:"PHP" version:<7.2")
QUERIES+=("product:"PHP" version:<7.3")
QUERIES+=("port:22 has_ipv6:true")
QUERIES+=("product:"Docker" port:2375")
QUERIES+=("product:"Microsoft Exchange Server 2013"")
QUERIES+=("product:"Microsoft Exchange Server 2016"")
QUERIES+=("product:"Microsoft SQL Server" port:1433")
QUERIES+=("product:"MongoDB" port:27017")
QUERIES+=("product:"Elasticsearch" port:9200")
QUERIES+=("product:"Docker" port:2375")
QUERIES+=("product:"Cisco ASA"")
QUERIES+=("product:"Juniper" port:22")
QUERIES+=("product:"HP iLO"")
QUERIES+=("product:"Supermicro IPMI"")
QUERIES+=("product:"NETGEAR ProSafe"")
QUERIES+=("product:"QNAP"")
QUERIES+=("product:"OpenSSH" version:<7.6")
QUERIES+=("product:"OpenSSL" version:<1.0.2")
QUERIES+=("product:"Exim" version:<4.92")
QUERIES+=("product:"nginx" version:<1.16.1")
QUERIES+=("product:"MongoDB" port:27017")
QUERIES+=("product:"Elasticsearch" port:9200")
QUERIES+=("product:"Apache Tomcat" version:7.0.0")
QUERIES+=('port:389 os:"Windows Server 2016"')
QUERIES+=('port:3389 os:"Windows 10"')
QUERIES+=("product:\"elasticsearch\" port:9200")
QUERIES+=("product:\"mongodb\" port:27017")
QUERIES+=("product:\"rabbitmq\" port:5672")
QUERIES+=("product:\"activemq\" port:8161")
QUERIES+=("port:6379 \"redis\"")
QUERIES+=("product:\"neo4j\" port:7474")
read -p "Do you want to start the search? (y/n) " answer
if [ "$answer" != "y" ]; then
return
fi
for QUERY in "${QUERIES[@]}"
do
echo "Searching for: $QUERY"
curl -s "https://api.shodan.io/shodan/host/search?key=$SHODAN_API_KEY&query=$QUERY" | jq 'try (.matches | .[] | {product, ip_str}) catch "API error: $QUERY"' | sed 's/"//g' >> $OUTPUT_FILE
done
echo ""
echo "Scanning finished saved to $OUTPUT_FILE"
echo ' '
;;
23)
clear
# Define the URL prefix
url_prefix="https://"
# Read the user agents from the file
user_agents=$(cat phisherprice/user_agents.txt)
# Clear the cli