-
Notifications
You must be signed in to change notification settings - Fork 0
/
mailer.py
88 lines (76 loc) · 2.62 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
import os
import sys
import time
from os import system
from time import sleep
try:
import requests
except ImportError:
os.system('pip2 install requests')
try:
request = requests.get("https://github.com/thajudcodes", timeout=3)
except (requests.ConnectionError, requests.Timeout) as exception:
print("[!] No internet connection [!]")
sys.exit()
import requests
R = '\033[1;31m'
G = '\033[1;32m'
Y = '\033[1;33m'
C = '\033[1;36m'
W = '\033[1;37m'
def hprint(s):
for c in s + '\n':
sys.stdout.write(c)
sys.stdout.flush()
time.sleep(8.0 / 100)
logo = """
\033[1;32m ______ _ \033[1;33m __ __ _ _
\033[1;32m | ____| | | \033[1;33m | \/ | (_) |
\033[1;32m | |__ __ _| | _____ \033[1;33m | \ / | __ _ _| |
\033[1;32m | __/ _ | |/ / _ \ \033[1;33m | |\/| |/ _ | | |
\033[1;32m | | | (_| | < __/ \033[1;33m | | | | (_| | | |
\033[1;32m |_| \__,_|_|\_\___| \033[1;33m |_| |_|\__,_|_|_|
\033[1;36m [\033[1;37m+\033[1;36m]\033[1;32m CREATED BY thajudecodes \033[1;31m(\033[1;33mmuhammed thajudheen\033[1;31m)
"""
system("clear")
print (logo)
print ('')
hprint(G + ' Launching Fake Mailer ...')
sleep(2)
print ('')
to = raw_input(G + " Send Mail To" + C + " : " + Y)
print ('')
subject = raw_input(G + " Input Mail Subject" + C + " : " + Y)
print ("")
msg = raw_input(G + " Input Mail Content" + C + " : " + Y)
print ("")
usagnt = 'Mozilla/5.0 (Linux; Android 6.0.1; HTC6545LVW Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/85.0.4183.101 Mobile Safari/537.36 [FB_IAB/Orca-Android;FBAV/283.0.0.16.120;]'
sess = requests.Session()
rth = sess.post('http://anonymouse.org/cgi-bin/anon-email.cgi', headers={
'Host': 'anonymouse.org',
'User-Agent': usagnt,
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Accept-Encoding': 'gzip, deflate',
'Referer': 'http://anonymouse.org/anonemail.html',
'Connection': 'close',
'Upgrade-Insecure-Requests':'1',
'Content-Type':'application/x-www-form-urlencoded'
}, data={
'to': to,
'subject': subject,
'text': msg
})
if '200' in rth.text:
hprint(G + " Sending Email >>>>>>>>>>")
else:
hprint(G + " Sending Email >>>>>>>>>>")
print ('')
time.sleep(2)
hprint(C + " Mail Successfully Sent !!")
print ('')
sleep(3)
hprint(W + " Process can take some time !! Please note: In order to increase your privacy, the anonymous e-mail will be randomly delayed up to 12 hours.")
print ('')
print (Y + " Visit www.github.com/thajudecodes for More Tools" + W)
print ('')