当前位置: 首页 > news >正文

wordpress 视频站主题网站备案弊端

wordpress 视频站主题,网站备案弊端,天津移动网站设计,企业网站模板包含什么介绍 一个有那么一点功能但是又不太保险的防沉迷工具 我脑子进水了才会写这玩意儿 为了变强#xff0c;我不择手段#xff08;笑出zhu jiao 代码 好像没什么用的设定界面 # -*- coding: utf-8 -*- # Environment PyCharm # File_name login |User Pfolg # 2024/…介绍 一个有那么一点功能但是又不太保险的防沉迷工具 我脑子进水了才会写这玩意儿 为了变强我不择手段笑出zhu jiao 代码 好像没什么用的设定界面 # -*- coding: utf-8 -*- # Environment PyCharm # File_name login |User Pfolg # 2024/8/3 13:05 想这样的但是石粒不济弄了个残废品出来可以用 有加密技术能持续监管线程能防止自身被击杀能防止自身被删除还能自主关闭 import hashlib import json import os import random from tkinter import messagebox from tkinter import ttk import tkinter as tk import timecount 0 flag False bol Truedef mainControl(frame):# 目标程序 这里可以翻任务管理器找程序名appDict {米哈游启动器: HYPHelper.exe,原神: YuanShen.exe,绝区零: ZenlessZoneZero.exe,Bilibili: 哔哩哔哩.exe,网易云音乐: cloudmusic.exe,腾讯视频: QQLive.exe,雷神加速器: leigod.exe,Steam: steam.exe,QQ: QQ.exe,微信: WeChat.exe,Edge: msedge.exe,QQ浏览器: QQBrowser.exe,Chrome: chrome.exe,}appList list(appDict.keys())BooleanVars [tk.BooleanVar() for _ in range(len(appList))]def selectAllApp(x):if x:for obj in BooleanVars:obj.set(True)else:for obj in BooleanVars:obj.set(False)selectApp tk.BooleanVar()ttk.Checkbutton(frame, text全选, variableselectApp, commandlambda: selectAllApp(selectApp.get())).place(relx.02, rely.05)for i in range(len(appList)):ttk.Checkbutton(frame, textappList[i], variableBooleanVars[i]).place(relx.02, rely.05 * i .12)# 时间段starTime, endTime tk.StringVar(), tk.StringVar()allTime tk.BooleanVar()def selectAllTime(x):if x:starTime.set(0.0)endTime.set(24.0)else:starTime.set()endTime.set()timeList [i * .5 for i in range(48)]timeList.append(24.0)ttk.Label(frame, textStart).place(relx.7, rely.1)ttk.Label(frame, textend).place(relx.7, rely.2)ttk.Combobox(frame, valuestimeList, textvariablestarTime, width6).place(relx.75, rely.1)ttk.Combobox(frame, valuestimeList, textvariableendTime, width6).place(relx.75, rely.2)ttk.Checkbutton(frame, text全时段封禁, variableallTime, commandlambda: selectAllTime(allTime.get())).place(relx.72, rely.3)try:readf open(Cache.txt, r, encodingutf-8)settingList json.load(readf)for i in range(len(appList)):BooleanVars[i].set(settingList[0].get(appList[i])[1])starTime.set(settingList[1])endTime.set(settingList[2])c settingList[3]readf.close()except BaseException:print(404)def getvalue():global bol, bif bol:for j in range(len(BooleanVars)):appDict[appList[j]] [appDict.get(appList[j]), BooleanVars[j].get()]bol FalsefileNameKeys 究竟要不要在这里写上原理啥的呢写了会怎么样不写又会有什么结果额思来想去我觉得我这个程序漏洞比较大于是我决定加强主次程序间关系废话一段就这样吧。原理什么的别想了。myKeys for _ in range(3):a random.randint(0, len(fileNameKeys) - 1)myKeys fileNameKeys[a]b hashlib.md5(myKeys.encode()).hexdigest()savef open(Cache.txt, w, encodingutf-8)json.dump([appDict, starTime.get(), endTime.get(), b], savef, ensure_asciiFalse, indent4)messagebox.showinfo(titlemessage, messageSuccess)savef.close()try:os.remove(f.\\{c}.txt)except FileNotFoundError:passlb1 ttk.Label(frame, text正在运行)def startUp():file open(f.\\{b}.txt, w, encodingutf-8)file.close()os.system(start .\\killPID.pyw)lb1.pack()def stopAPP():try:os.remove(f.\\{b}.txt)except NameError:passos.remove(f.\\{c}.txt)lb1.pack_forget()ttk.Button(frame, textStart, width8, commandstartUp).place(relx.7, rely.7)ttk.Button(frame, textStop, width8, commandstopAPP).place(relx.8, rely.7)ttk.Button(frame, textHelp, width8,commandlambda: messagebox.showinfo(titlemessage, message一选二保存三运行四停止)).place(relx.9, rely.8)ttk.Button(frame, text保存, commandgetvalue, width8).place(relx.9, rely.9)try:if os.path.isfile(f.\\{c}.txt):lb1.pack()except UnboundLocalError:pass# 判断用户名和密码是否正确用的sha256 # 这里自己设置我的用户名和密码就当模板罢这玩意逆向不出来。暴力破解、差分攻击…… def judge(x, y):global count, flagif (hashlib.sha256(x.encode()).hexdigest() 00cfe4cfcd27c0c2f658560a2068b1e7e9ae8ca64a93b8d8cad84c9d2603c18band hashlib.sha256(y.encode()).hexdigest() dc96921b3a27e6a8b257d6e6a2a3b083549e1bcd09b497b7f8cdd5a95867e2e3):messagebox.showinfo(titleSuccess, messageYou are successfully logged in!)frameLogin.place_forget()window.title(游戏管理系统)with open(log.txt, a, encodingutf-8) as f:f.write(fSuccess-{count}{time.strftime(%Y/%m/%d-%H:%M:%S, time.localtime())}\n)frameControl.place(relx0, rely0, widthw, heighth)returnelif count 4:messagebox.showerror(titleFail, messageSorry, your opportunity has been exhausted!)with open(log.txt, a, encodingutf-8) as f: # 不管登录成功或失败都要记录日志f.write(fFail-{count}{time.strftime(%Y/%m/%d-%H:%M:%S, time.localtime())}\n)returnelse:messagebox.showerror(titleFail, messageSomething error,please try again!\nfleft:{4 - count},all:5)count 1# 登录界面 def pwdAndUser(frame):user, pwd tk.StringVar(), tk.StringVar()ttk.Label(frame, textWELCOME, font(msyh.ttc, 30)).place(relx.38, rely.2)ttk.Label(frame, textUserName).place(relx.3, rely.4)ttk.Label(frame, textPassword).place(relx.3, rely.5)ttk.Entry(frame, width20, textvariableuser).place(relx.4, rely.4)ttk.Entry(frame, width20, textvariablepwd).place(relx.4, rely.5)ttk.Button(frame, textLogin, commandlambda: judge(user.get(), pwd.get())).place(relx.43, rely.6)if __name__ __main__:window tk.Tk()window.title(Login)screen_w, screen_h window.winfo_screenwidth(), window.winfo_screenheight()w, h int(screen_w / 2), int(screen_h / 2)window.geometry(f{w}x{h}{int(screen_w / 4)}{int(screen_h / 4)})window.resizable(False, False)frameLogin ttk.Frame(window)frameLogin.place(relx0, rely0, widthw, heighth)pwdAndUser(frameLogin)frameControl ttk.Frame(window)mainControl(frameControl)window.mainloop() 主要运行程序 原理嘛寻找并击杀线程 # -*- coding: utf-8 -*- # Environment PyCharm # File_name killPID |User Pfolg # 2024/8/4 17:46 import json import psutil import time import os from plyer import notificationflag Truedef find_and_kill_process(process_name):# 查找所有名为process_name的进程for proc in psutil.process_iter([name]):if proc.info[name] process_name:# 记录优化日志f open(.\\log.txt, a, encodingutf-8)f.write(f{time.strftime(%Y/%m/%d-%H:%M:%S, time.localtime())}\t{process_name}\t{proc.pid}\n)f.close()print(f找到进程: {proc.info[name]} (PID: {proc.pid}))# 尝试关闭进程try:proc.terminate() # 发送终止信号proc.wait(timeout10) # 等待进程结束print(f进程 {proc.pid} 已被终止。)# messagebox.showerror(titleWindows, message未知错误)except psutil.NoSuchProcess:print(f进程 {proc.pid} 已经不存在。)except psutil.AccessDenied:notification.notify(titleReminder,messageNo power to endstr(proc.pid),timeout10, # 通知显示时间单位为秒)print(f没有权限终止进程 {proc.pid}。)except Exception as e:print(f终止进程 {proc.pid} 时发生错误: {e})break # 如果只需要关闭一个进程找到后即可退出循环def mainProcess():global flagfile open(.\\Cache.txt, r, encodingutf-8)setInf json.load(file)appInf setInf[0]begin setInf[1]over setInf[2]name setInf[3]file.close()app []# 筛选可禁用的应用for i in appInf.keys():x appInf.get(i)if x[1]:app.append(x[0])notification.notify(titleReminder,messageSystem Start Running,timeout3, # 通知显示时间单位为秒)while flag:may_now time.strftime(%H:%M, time.localtime()).split(:)now int(may_now[0]) int(may_now[1]) / 60if float(begin) now float(over):for i in app:find_and_kill_process(i)time.sleep(.1) # 减速减内存if os.path.isfile(f.\\{name}.txt):passelse:flag Falsenotification.notify(titleReminder,messageSystem End Running,timeout3, # 通知显示时间单位为秒)if __name__ __main__:mainProcess()效果 上个视频看看吧 额那个弹窗我后面删了程序就显得比较隐蔽了。 不足 功能不强想禁的程序只能在代码里添加 删掉md5码生成的txt文件后程序就退出运行了 太简陋朴实了。 其他 可以手动设置开机自启动把程序2放到startup文件夹内就可以了 可以生成日志登录啥的、线程击杀啥的 CPU占用一般在0-10%间最多时间在1%-2% 改改代码就能自己用了。
http://www.hkea.cn/news/14469967/

相关文章:

  • 网上做牙刷上什么网站haodiaoorg.wordpress
  • 网站的域名怎么起一个app软件
  • 济南家居行业网站开发网站建设需要做什么
  • 某公司网站策划建设外贸网络推广的方式
  • 东莞做网站最好有哪些公司wordpress安装 简书
  • 免费销售网站模板不同网站相似的页面百度收录吗
  • 如何快速构建一个网站电商网站备案
  • 个人购物网站怎么做阳江网红桥定位
  • net域名网站成都网站建设推来客
  • 科技设计网站各种推广平台
  • 蓝色科技网站建设建设部网站资质查询6
  • 电子商务系统的概念广州seo报价
  • 企点官网江苏优化网站哪家好
  • 上海专业做网站公司wordpress加水印
  • 网站参数错误怎么解决方法分类信息网站建设价格
  • 哪些网站可以做画赚钱湖南网站建设开发
  • 福田做网站多少钱网站中做背景图片位置咋写
  • 用手机什么软件做网站wordpress 分类打不开
  • 辽宁城乡住房建设厅网站打不开wordpress用那个采集器
  • 黄埔区做网站郑州seo技术服务
  • 施坦威网站关于我们wordpress菜单子菜单
  • 石家庄网站建设推广做网站的税率
  • php做网站一般用什么软件软件工程课程设计
  • 合肥网站建设哪家好价格深圳注册公司在什么网站
  • 如何建设红色旅游网站python网站开发实例
  • 做新闻封面的网站做网站用哪个开发工具好
  • 汉唐皓月网站推广方案c 做的博客网站
  • 网站文章更新外贸网站推广建设
  • 云南网官方网站360建筑网的内容百度可以查到吗
  • wordpress 站内通知装饰公司网站源码下载