自己做网站可以吗,网站后台开发技术,白云网站 建设信科网络,更改wordpress端口Blooket游戏增强与辅助工具集合
项目概述
这是一个专门为Blooket教育游戏平台开发的JavaScript辅助工具集合。Blooket是一个流行的教育游戏平台#xff0c;而该项目提供了一系列增强功能#xff0c;可以帮助用户在多种游戏模式中获得更佳的游戏体验。所有脚本均为纯JavaScr…Blooket游戏增强与辅助工具集合项目概述这是一个专门为Blooket教育游戏平台开发的JavaScript辅助工具集合。Blooket是一个流行的教育游戏平台而该项目提供了一系列增强功能可以帮助用户在多种游戏模式中获得更佳的游戏体验。所有脚本均为纯JavaScript编写可直接在浏览器控制台中执行。项目状态: 此仓库已不再更新原始作者gliz建议用户加入Discord服务器获取支持和帮助。功能特性基于代码分析该项目提供了以下核心功能多游戏模式支持: 支持Cafe、Crazy Kingdom、Gold Quest、Tower Defense、Fishing Frenzy、Blook Rush等多种游戏模式实时状态修改: 可以修改游戏中的金币、代币、物品数量等状态游戏进程控制: 支持跳过客人、清除敌人、最大化属性等操作用户界面增强: 提供可拖动的控制面板和状态显示反检测机制: 通过iframe重写浏览器原生弹窗函数以避免检测跨平台兼容: 纯JavaScript实现可在任何现代浏览器中运行安装指南系统要求现代Web浏览器Chrome、Firefox、Edge等已登录Blooket账户基本的JavaScript知识使用方法打开Blooket游戏页面如https://www.blooket.com/play按F12打开开发者工具切换到Console控制台标签页复制所需的JavaScript代码将代码粘贴到控制台并按下Enter键执行注意事项请确保在正确的游戏模式下使用对应的脚本某些功能可能需要刷新页面才能生效使用前请阅读每个脚本的具体说明使用说明基础使用示例以下是一个典型的脚本执行流程// 在浏览器控制台中执行任意一个脚本例如设置金币(async(){// 脚本初始化代码letndocument.createElement(iframe);document.body.append(n);window.alertn.contentWindow.alert.bind(window);// ... 其余功能代码})();游戏模式特定功能Gold Quest模式设置金币数量宝箱ESP显示宝箱内容为特定玩家设置金币Tower Defense模式清除所有敌人最大化防御塔属性设置代币数量Cafe模式无限食物库存设置现金数量Crazy Kingdom模式最大化资源材料、人员、幸福度、黄金设置客人数量跳过当前客人API概览项目中使用的主要技术点React状态操作: 通过访问React内部状态来修改游戏数据Firebase交互: 直接与游戏后端Firebase数据库交互Webpack分析: 解析Webpack打包的代码以获取认证信息DOM操作: 动态创建和修改页面元素核心代码1. 基础框架代码这是所有脚本共享的基础框架提供弹窗重写和可拖动页脚功能// 创建iframe以重写浏览器弹窗函数避免被检测(async(){letndocument.createElement(iframe);document.body.append(n);window.alertn.contentWindow.alert.bind(window);window.promptn.contentWindow.prompt.bind(window);window.confirmn.contentWindow.confirm.bind(window);n.remove();// 游戏特定功能代码将在这里添加})();// 创建可拖动的页脚元素显示作者信息functionfooter(){letelementdocument.createElement(div);element.stylefont-family: Nunito, sans-serif; font-size: 14px; height: 65px; width: 175px; border: 4px solid rgb(15, 15, 15); background: rgb(240, 240, 240); position: absolute; top: 20x; left: 20px; border-radius: 10px; color: rgb(0, 0, 0); text-align: center;;element.innerHTMLpMade by gliz br My a stylecolor: #0000ff; hrefhttps://twitter.com/glizuwu target_blanktwitter/a/p;document.body.appendChild(element);// 实现元素拖动功能varpos10,pos20,pos30,pos40;element.onmousedown((ewindow.event){e.preventDefault();pos3e.clientX;pos4e.clientY;document.onmouseup((){document.onmouseupnull;document.onmousemovenull;});document.onmousemove((e){ee||window.event;e.preventDefault();pos1pos3-e.clientX;pos2pos4-e.clientY;pos3e.clientX;pos4e.clientY;lettop(element.offsetTop-pos2)0?(element.offsetTop-pos2):0;letleft(element.offsetLeft-pos1)0?(element.offsetLeft-pos1):0;element.style.toptoppx;element.style.leftleftpx;});});};footer();2. Gold Quest模式 - 设置金币(async(){// 基础框架代码...functionreactHandler(){// 获取React组件句柄用于操作游戏状态returnObject.values(document.querySelector(#app div div))[1].children[1]._owner;};// 检查当前是否在Gold Quest游戏中if(window.location.pathname!/play/gold){alert(You must be in a gold quest game!);}else{// 获取用户输入的金币数量letgoldNumber(parseFloat(prompt(How much gold do you want?)));// 通过React状态更新金币数量reactHandler().stateNode.setState({gold2:gold,gold});alert(Gold added!);};})();3. Tower Defense模式 - 最大化防御塔(async(){// 基础框架代码...functionreactHandler(){returnObject.values(document.querySelector(#app div div))[1].children[1]._owner;};if(window.location.pathname!/defense){alert(You must be in a Tower Defense game!);}else{// 遍历所有防御塔并最大化其属性reactHandler().stateNode.towers.forEach(tower{tower.damage1e308;// 设置巨大伤害值tower.range1e308;// 设置巨大攻击范围tower.level3;// 设置最高等级tower.blastRadius1e308;// 设置巨大爆炸半径tower.fullCd0;// 设置零冷却时间});alert(Maxed out towers!);};})();4. 每日奖励自动获取(async(){// 基础框架代码...// 获取Blooket的认证信息vargetValues()newPromise((e,t){try{letnwindow.webpackJsonp.map(eObject.keys(e[1]).map(te[1][t])).reduce((e,t)[...e,...t],[]).find(e/\w{8}-\w{4}-\w{4}-\w{4}-\w{12}/.test(e.toString())/\(new TextEncoder\)\.encode\(\(.?)\\)/.test(e.toString())).toString();e({blooketBuild:n.match(/\w{8}-\w{4}-\w{4}-\w{4}-\w{12}/)[0],secret:n.match(/\(new TextEncoder\)\.encode\(\(.?)\\)/)[1]})}catch{t(Could not fetch auth details)}});// 编码请求数据varencodeValuesasync(e,t){letdwindow.crypto.getRandomValues(newUint8Array(12));returnwindow.btoa(Array.from(d).map(eString.fromCharCode(e)).join()Array.from(newUint8Array(awaitwindow.crypto.subtle.encrypt({name:AES-GCM,iv:d},awaitwindow.crypto.subtle.importKey(raw,awaitwindow.crypto.subtle.digest(SHA-256,(newTextEncoder).encode(t)),{name:AES-GCM},!1,[encrypt]),(newTextEncoder).encode(JSON.stringify(e))))).map(eString.fromCharCode(e)).join())};// 获取用户信息并添加奖励fetch(https://api.blooket.com/api/users,{credentials:include}).then(xx.json()).then(x{getValues().then(asynce{// 发送添加奖励的请求fetch(https://api.blooket.com/api/users/add-rewards,{method:put,credentials:include,headers:{content-type:application/json,X-Blooket-Build:e.blooketBuild},body:awaitencodeValues({name:x.name,addedTokens:500,// 添加500代币addedXp:300// 添加300经验值},e.secret)});// 重复发送以确保成功fetch(https://api.blooket.com/api/users/add-rewards,{// ... 相同配置}).then(()alert(Added daily rewards!)).catch(()alert(There was an error when adding rewards!));}).catch(()alert(There was an error encoding requests!));}).catch(()alert(There was an error getting username!));})();5. 游戏大厅解锁所有Blooks(async(){// 基础框架代码...functionreactHandler(){returnObject.values(document.querySelector(#app div div))[1].children[1]._owner;};// 检查是否在游戏大厅if(!window.location.pathname.split(/).includes(lobby))returnalert(You must be in a game lobby! (e.g. https://www.blooket.com/play/lobby));// 清空锁定和已选择的Blooks实现全部解锁reactHandler().stateNode.setState({lockedBlooks:[],takenBlooks:[]});alert(Blooks unlocked!);})();这些核心代码展示了项目的主要技术实现包括React状态操作、API调用、加密通信和DOM操作等关键技术点。每个脚本都针对特定的游戏模式进行了优化确保功能的准确性和稳定性。更多精彩内容 请关注我的个人公众号 公众号办公AI智能小助手对网络安全、黑客技术感兴趣的朋友可以关注我的安全公众号网络安全技术点滴分享