1 Star 0 Fork 0

sinomiko/StarUML-CrackedAndTranslate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
hook.js 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
X1a0He 提交于 2024-04-04 20:45 . Update: 增加弱侵入式完美破解
const http = require("http"), url = require("url"), crypto = require("crypto"), originalPost = $.post;
const SK = "DF9B72CC966FBE3A46F99858C5AEE", hostname = "127.0.0.1", port = 3220;
$.post = (url, data, callback, dataType) => originalPost(url === "https://staruml.io/api/license/validate" ? "http://127.0.0.1:3220/api/license/validate" : url, data, callback, dataType);
const generateLicenseInfo = () => {
const licenseInfo = { name: "Cracked by X1a0He", product: "STARUML.V6", licenseType: "PRO", quantity: "999", timestamp: `4102329600000`, crackedAuthor: "X1a0He", licenseKey: "" };
licenseInfo.licenseKey = crypto.createHash("sha1").update(`${SK}${licenseInfo.name}${SK}${licenseInfo.product}-${licenseInfo.licenseType}${SK}${licenseInfo.quantity}${SK}${licenseInfo.timestamp}${SK}`).digest("hex").toUpperCase();
return licenseInfo;
};
const server = http.createServer((req, res) => {
const { pathname } = url.parse(req.url, true);
if (pathname === "/api/license/validate") {
res.setHeader("Content-Type", "application/json; charset=utf-8");
res.statusCode = 200;
res.end(JSON.stringify(generateLicenseInfo()));
console.log(`validate hook By X1a0He StarUML Crack Server`);
}
});
server.listen(port, hostname, () => console.log(`X1a0He StarUML Crack Server is running`));
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sinomiko/StarUML-CrackedAndTranslate.git
git@gitee.com:sinomiko/StarUML-CrackedAndTranslate.git
sinomiko
StarUML-CrackedAndTranslate
StarUML-CrackedAndTranslate
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385