B函数扣出为:
B = function(t) {
var e = (new TextEncoder).encode(t).buffer
, n = new Uint8Array(e)
, r = btoa(String.fromCharCode.apply(null, n));
return r.substring(0, r.length - 2)
}
其中btoa为windows函数,nodejs中没有,后面我会补上,所以简单将2个函数合并即可模拟得到dm_cover_img_str参数:
B = function(t) { var e = (new TextEncoder).encode(t).buffer
, n = new Uint8Array(e)
, r = btoa(String.fromCharCode.apply(null, n)); return r.substring(0, r.length - 2);
};
var btoa=function (str) { var s = new Buffer.from(str).toString('base64'); return s;
};
var webglVendor="ANGLE (Google, Vulkan 1.3.0 (SwiftShader Device (Subzero) (0x0000C0XX)), SwiftShader driver)Google Inc. (Google)"; var dm_cover_img_str=B(webglVendor); console.log(dm_cover_img_str);
第一次发帖,也比较简单,估计伸手党比较多,直接给答案了。