mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-18 07:44:38 +08:00
Update hyjk.js
This commit is contained in:
9
hyjk.js
9
hyjk.js
@@ -152,6 +152,8 @@ class Task {
|
|||||||
}
|
}
|
||||||
|
|
||||||
encrypt(body) {
|
encrypt(body) {
|
||||||
|
let sign = getSign(body)
|
||||||
|
let timestamp = new Date().getTime()
|
||||||
global['window'] = {}
|
global['window'] = {}
|
||||||
global['navigator'] = {}
|
global['navigator'] = {}
|
||||||
const JSEncrypt = require("encryptlong")
|
const JSEncrypt = require("encryptlong")
|
||||||
@@ -233,7 +235,10 @@ class Task {
|
|||||||
encryptor.setPrivateKey(PRIVATE_KEY)
|
encryptor.setPrivateKey(PRIVATE_KEY)
|
||||||
return encryptor.decryptLong(data)
|
return encryptor.decryptLong(data)
|
||||||
}
|
}
|
||||||
return getSign(body)
|
return entryData({
|
||||||
|
sign: sign,
|
||||||
|
timestamp: timestamp
|
||||||
|
})
|
||||||
//通过抓包得到加密JS网址https://www.heyejk.com/game/js/app.87d7f243.js 代码很多 慢慢补环境即可
|
//通过抓包得到加密JS网址https://www.heyejk.com/game/js/app.87d7f243.js 代码很多 慢慢补环境即可
|
||||||
//不理解为什么弄两个加密 烦死了
|
//不理解为什么弄两个加密 烦死了
|
||||||
//smallfawn 2024 / 3 / 23 22.11
|
//smallfawn 2024 / 3 / 23 22.11
|
||||||
@@ -310,6 +315,8 @@ class Task {
|
|||||||
$.log(`✅账号[${this.index}] 领取水滴成功 当前水滴[${result.result.kettleWater}]💧🎉`)
|
$.log(`✅账号[${this.index}] 领取水滴成功 当前水滴[${result.result.kettleWater}]💧🎉`)
|
||||||
} else {
|
} else {
|
||||||
$.log(`❌账号[${this.index}] 领取水滴失败`);
|
$.log(`❌账号[${this.index}] 领取水滴失败`);
|
||||||
|
console.log(result);
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user