TL;DR:
console 输入后回车
fetch(Array.from(document.getElementsByTagName('script')).find(ele=>ele.src.indexOf("app")>0).src)
.then(resp=>{return resp.text()})
.then(content=>{
var regx = /=\"(.*)\";/g;
var key = regx.exec(content.substr(content.indexOf("88974ed8-6aff-48ab-a7d1-4af5ffea88bb"),50));
Cookies.set("88974ed8-6aff-48ab-a7d1-4af5ffea88bb",key[1]);
Cookies.set("username","YunaiV");
location.reload();
})
起因:
阿尼亚在网络世界里探险时,发现了一个叫做 yu|dao-cloud 的项目。好奇心驱使下,阿尼亚东搞西搞地下载了源码,想要一探究竟。但是,查看文档居然要关注公众号,真是有点麻烦呢。不过,阿尼亚是个乖孩子,还是乖乖的关注了。
阿尼亚准备上手尝试一下这个项目,却发现还要给星星!赞助知识 x 球!。关注公众号阿尼亚已经照做,但是星星阿尼亚也只有 1 颗!阿尼亚只是小孩子,也没有那么多钱!
所以,聪明的阿尼亚决定运用自己学到的技能,打开浏览器的 F12 开发者工具,看看能不能找到一些线索。
通过阅读校验逻辑得出:
Cookies.set("88974ed8-6aff-48ab-a7d1-4af5ffea88bb","cat")
Cookies.set("username","YunaiV")
username
为校验是否给了星星,阿尼亚猜项目作者应该也给了星星吧
88974ed8-6aff-48ab-a7d1-4af5ffea88bb
一串神秘代码,阿尼亚也不知道做什么的,但总是在源码中看到它的值,可能是有一点作用吧
update:
阿尼亚出去玩的时候,路上捡到了一张纸条,阿尼亚也看不懂,好像纸条背面写了什么字 “自动替换饼干内容” ?
fetch(Array.from(document.getElementsByTagName('script')).find(ele=>ele.src.indexOf("app")>0).src)
.then(resp=>{return resp.text()})
.then(content=>{
var regx = /=\"(.*)\";/g;
var key = regx.exec(content.substr(content.indexOf("88974ed8-6aff-48ab-a7d1-4af5ffea88bb"),50));
Cookies.set("88974ed8-6aff-48ab-a7d1-4af5ffea88bb",key[1]);
Cookies.set("username","YunaiV");
location.reload();
})
update 2024.04.10:
看到佬友们觉得还是太麻烦,有佬友提供的插件也是一样的效果,阿尼亚很少和玩,贴个有同样效果也不需要打开控制台的方式:
javascript:fetch(Array.from(document.getElementsByTagName('script')).find(ele=>ele.src.indexOf("app")>0).src)
.then(resp=>{return resp.text()})
.then(content=>{
var regx = /=\"(.*)\";/g;
var key = regx.exec(content.substr(content.indexOf("88974ed8-6aff-48ab-a7d1-4af5ffea88bb"),50));
Cookies.set("88974ed8-6aff-48ab-a7d1-4af5ffea88bb",key[1]);
Cookies.set("username","YunaiV");
location.reload();
})