From 3b583dcab6c016f039cc993bb5f54dd2f93c9267 Mon Sep 17 00:00:00 2001 From: 10_2 Date: Wed, 8 Jan 2025 11:51:03 +0800 Subject: [PATCH] =?UTF-8?q?Signed-off-by:=2010=5F2=20=20?= =?UTF-8?q?=E8=BF=99=E6=98=AF=E4=B8=80=E4=B8=AA10=5F2=E7=94=B5=E8=84=91?= =?UTF-8?q?=E7=9A=84=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2025-1-8-2.py | 19 +++++++++++++++++++ 环境.py | 8 ++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 2025-1-8-2.py diff --git a/2025-1-8-2.py b/2025-1-8-2.py new file mode 100644 index 0000000..89722d1 --- /dev/null +++ b/2025-1-8-2.py @@ -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) \ No newline at end of file diff --git a/环境.py b/环境.py index 28e1cd4..784e4c9 100644 --- a/环境.py +++ b/环境.py @@ -1,5 +1,9 @@ # 点击运行【安装第三方库.py】,即可安装本课用到的第三方库 # 使用清华镜像源安装amzqr 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中的第三方库 \ No newline at end of file