def pillage(self, username, password, server, port, domain, outputdir="."):
print "%s, %s, %s, %s" % (username, password, server, domain)
mail = None
if (port == 993):
mail = IMAPS(outputdir=outputdir)
elif (port == 143):
mail = IMAP(outputdir=outputdir)
elif (port == 995):
mail = POP3S(outputdir=outputdir)
elif (port == 110):
mail = POP3(outputdir=outputdir)
else:
print "ERROR, unknown port provided"
return
mail.connect(server)
t = Thread(target=self.tworker, args=(mail, username, password, domain, server, port,))
t.start()
#-----------------------------------------------------------------------------
# main test code
#-----------------------------------------------------------------------------
评论列表
文章目录