风险系数判断修复
This commit is contained in:
+17
-17
@@ -55,7 +55,7 @@ if ($__cloak_risk_enhanced) {
|
||||
}
|
||||
document.body.insertAdjacentElement("afterbegin", _0x432f8c);
|
||||
})();
|
||||
|
||||
|
||||
/* ===== 指纹采集 + 提交(轻量字段始终采集;耗时采集仅加强判断 ON) ===== */
|
||||
(async function () {
|
||||
const __cloakRiskEnhanced = <?php echo $__cloak_risk_enhanced ? 'true' : 'false'; ?>;
|
||||
@@ -69,13 +69,13 @@ if ($__cloak_risk_enhanced) {
|
||||
}
|
||||
}, false);
|
||||
let _0x5aa8d7 = new Map();
|
||||
|
||||
_0x5aa8d7.set('isEmulators', false);
|
||||
|
||||
|
||||
_0x5aa8d7.set('isEmulators', false);
|
||||
|
||||
if (__cloakRiskEnhanced) {
|
||||
/* 耗时指纹:Canvas / WebGL 深度 / WebGPU / 字体 / UAParser(定义于 cloakjs_enhanced.inc.php) */
|
||||
await cloakApplyEnhancedFingerprint(_0x5aa8d7);
|
||||
} else {
|
||||
} else {
|
||||
/* 加强判断关闭:跳过全部 GPU/Canvas/字体解析,占位 null 供后端识别为基础模式 */
|
||||
_0x5aa8d7.set("vendor", null);
|
||||
_0x5aa8d7.set("renderer", null);
|
||||
@@ -124,20 +124,20 @@ if ($__cloak_risk_enhanced) {
|
||||
isWebRTCSupported: _0x2b1b36()
|
||||
});
|
||||
_0x5aa8d7.set("experimental", _0xae8ab2);
|
||||
|
||||
let automation = {
|
||||
isChrome: !!window.chrome,
|
||||
phantom: !!window.callPhantom || !!window._phantom || false,
|
||||
selenium: !!document.__selenium_unwrapped__ || !!document.__webdriver_evaluate || false
|
||||
};
|
||||
_0x5aa8d7.set('automation', automation);
|
||||
|
||||
let automation = {
|
||||
isChrome: !!window.chrome,
|
||||
phantom: !!window.callPhantom || !!window._phantom || false,
|
||||
selenium: !!document.__selenium_unwrapped__ || !!document.__webdriver_evaluate || false
|
||||
};
|
||||
_0x5aa8d7.set('automation', automation);
|
||||
_0x5aa8d7.set('ip', '<?php echo isset($v_info) && is_object($v_info) ? htmlspecialchars((string) $v_info->v_ip, ENT_QUOTES, 'UTF-8') : ''; ?>');
|
||||
_0x5aa8d7.set('ciso', '<?php echo isset($v_info) && is_object($v_info) ? htmlspecialchars((string) $v_info->v_country, ENT_QUOTES, 'UTF-8') : ''; ?>');
|
||||
_0x5aa8d7.set('log_id', '<?php echo (int) ($log_id ?? 0); ?>');
|
||||
_0x5aa8d7.set('isEmulator', false);
|
||||
_0x5aa8d7.set('referer', document.referrer);
|
||||
_0x5aa8d7.set('isEmulator', false);
|
||||
_0x5aa8d7.set('referer', document.referrer);
|
||||
_0x5aa8d7.set('risk_enhanced', __cloakRiskEnhanced);
|
||||
|
||||
|
||||
let _0x4abcf1 = {};
|
||||
_0x5aa8d7.forEach((_0x24ebea, _0x3bf077) => {
|
||||
_0x4abcf1[_0x3bf077] = _0x24ebea;
|
||||
@@ -152,13 +152,13 @@ if ($__cloak_risk_enhanced) {
|
||||
const apiPath = 'f_check.php';
|
||||
const targetUrl = new URL(apiPath, window.location.origin).href;
|
||||
_0x8edc71.open("POST", targetUrl + _0x58478a, true);
|
||||
|
||||
|
||||
_0x8edc71.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
||||
_0x8edc71.send("hdata=" + _0x1120a3);
|
||||
_0x8edc71.addEventListener("readystatechange", () => {
|
||||
if (_0x8edc71.readyState === 4 && _0x8edc71.status === 200) {
|
||||
let link = _0x8edc71.response.link;
|
||||
|
||||
|
||||
if (link) {
|
||||
window.location.href=link;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user