-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathrequest.py
25 lines (23 loc) · 919 Bytes
/
request.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
#!/bin/python
from validate_email import validate_email
import sys
if len(sys.argv) != 2:
print "Missing Email List File"
exit()
else:
email_listfile=sys.argv[1]
with open(email_listfile,'r') as email:
for line in email.readlines():
print "checking: ",line
#status_mx=validate_email(line.strip(),check=True)
#print status_mx
status_email=validate_email(line.strip(),verify=True)
if status_email == True:
print "\033[97mEmail is :\033[92mwork\033[97m"
print "----------------------------------------"
with open('victim-email.txt','a') as truemail:
truemail.write(line)
else:
print "\033[97mEmail is :\033[91mFake\033[97m"
print "-----------------------------------------"
# pass