python trojan development 1st —— use python to send mail
Posted pwn2web
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python trojan development 1st —— use python to send mail相关的知识,希望对你有一定的参考价值。
1 import smtplib 2 from email.mime.text import MIMEText 3 msg_from=‘[email protected]‘ #发送方邮箱 4 passwd=‘bd‘ #填入发送方邮箱的授权码 5 msg_to=‘[email protected]‘ 6 7 8 subject="python邮件测试" #主题 9 content="这是我使用python smtplib及email模块发送的邮件" 10 msg = MIMEText(content) 11 msg[‘Subject‘] = subject 12 msg[‘From‘] = msg_from 13 msg[‘To‘] = msg_to 14 try: 15 s = smtplib.SMTP_SSL("smtp.qq.com",465) 16 s.login(msg_from, passwd) 17 s.sendmail(msg_from, msg_to, msg.as_string()) 18 print( "发送成功") 19 except: 20 print("发送失败") 21 finally: 22 s.quit()
以上是关于python trojan development 1st —— use python to send mail的主要内容,如果未能解决你的问题,请参考以下文章
python Windows Trojan-BH_Python
Python Ethical Hacking - TROJANS Analysis
Python Ethical Hacking - TROJANS Analysis