atr3.py 文件源码

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

项目:Atlantr 作者: SUP3RIA 项目源码 文件源码
def imap(usr, pw, host):
    socket.setdefaulttimeout(time_out)
    usr = usr.lower()
    try:
        if len(host) < 2:
            port = 993
        else:
            port = int(host[1])
        mail = imaplib.IMAP4_SSL(str(host[0]), port)
        a = str(mail.login(usr, pw))
        return a[2: 4]
    except imaplib.IMAP4.error:
        return False
    except BaseException:
        return "Error"

#/-----------------IMAP-------------------------#


#------GETUNKNOWN--HOST--------------------------#
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号