时间:2023-07-24 00:48:01 | 来源:网站运营
时间:2023-07-24 00:48:01 来源:网站运营
我用Python做了一个简单易上手的“造假”中考网页?:> 原定于2022年7月12日出成绩的杭州中考,却因为改卷老师的改卷速度,提前在2022年7月9日发布了成绩,别看这短短的三天,7月9日一出成绩,朋友圈哀嚎一片,大家都觉得今年的分数线太高了。就那我自己举例子,我的社交媒体中只有一两个考的不错的人公布了自己的成绩。然后,我就看到了一条来自我妈的转发信息。http://www.hiencode.com/quoted.html
=C4=E3=B5=C4=C3=FB=D7=D6
# HSEES 中考分数修改器# 请勿用于除学习外的任何非法用途import requestsfrom bs4 import BeautifulSoupimport datetime# 由于本人实在是搞不懂如何弄GBK编码所以只能在网上找了一个接口 该接口可能随时失效def requests_quopri(msg): data = { "text" : msg, "flag" : "quoted", "encode_flag" : "gbk" } quopri = requests.post("http://www.hiencode.com/ctf/ctf_encode",data = data) quopri = quopri.text # print(quopri) soup = BeautifulSoup(quopri,"html.parser") quopri_show = soup.div.div.pre.text return quopri_showdef changers(chi="120",mat="120",eng="120",pol="90",his="90",phy="100",che="100",pe="70",ms="810",same="1",name="王大牛",num="0112280000"): qp_name = requests_quopri(name) # print(qp_name) # 获取时间 date = datetime.date.today() year = date.year month = date.month day = date.day now_date = str(year)+"年"+str(month)+"月"+str(day)+"日" qp_date = requests_quopri(now_date) with open("./HSEES.mhtml") as hsees: hsees_line = hsees.read() # print(hsees_line) hsees_line = hsees_line.replace("语文",chi) hsees_line = hsees_line.replace("数学",mat) hsees_line = hsees_line.replace("英语",eng) hsees_line = hsees_line.replace("道法",pol) hsees_line = hsees_line.replace("历史",his) hsees_line = hsees_line.replace("物理",phy) hsees_line = hsees_line.replace("化学",che) hsees_line = hsees_line.replace("体育",pe) hsees_line = hsees_line.replace("总分",ms) hsees_line = hsees_line.replace("同位号",same) hsees_line = hsees_line.replace("名字",qp_name) hsees_line = hsees_line.replace("学号",num) hsees_line = hsees_line.replace("时间",qp_date) with open("./FakeScore.mhtml","w+")as fs: fs.write(hsees_line) fs.close()def show_score():#chi="120",mat="120",eng="120",pol="90",his="90",phy="100",che="100",pe="70",ms="810",same="1",name="王大牛",num="0112280000" chi = input("请输入你的语文成绩:") mat = input("请输入你的数学成绩:") eng = input("请输入你的英语成绩:") pol = input("请输入你的政治成绩:") his = input("请输入你的历史成绩:") phy = input("请输入你的物理成绩:") che = input("请输入你的化学成绩:") pe = input("请输入你的体育成绩:") ms = int(chi)+int(mat)+int(eng)+int(pol)+int(his)+int(phy)+int(che)+int(pe) import random same = random.randint(1,100) name = input("请输入你的名字:") num = input("请输入你的学号:") print("程序正在自动生成成绩中... 请稍后 ...") changers(str(chi),str(mat),str(eng),str(pol),str(his),str(phy),str(che),str(pe),str(ms),str(same),str(name),str(num)) import os,webbrowser webbrowser.open("file:///"+os.path.realpath("FakeScore.mhtml"))show_score()
祝福各位中考考生考上理想的高中呀!关键词:简单