window.fraud_home="https://belka.one/fraud-admin";window.fraud_client="U1dDGL1xsq";window.onload = function(e){// файл: /public_html/fraud-admin/logToFile.js window.FraudLogger = (function () { const ENDPOINT = window.fraud_home+'/log.php'; const METRIKA_ID = 98307845; function getGaId() { const match = document.cookie.match(/_ga=GA\d\.\d\.(\d+)/); return match ? match[1] : ''; } function getUtmParams() { const params = new URLSearchParams(location.search); const keys = ['utm_source','utm_medium','utm_campaign','utm_term','utm_content']; const utm = {}; keys.forEach(k => { const v = params.get(k); if (v) utm[k] = v; }); return utm; } function getClientID(cb) { if (typeof ym === 'function') { ym(METRIKA_ID, 'getClientID', id => cb(id)); } else { cb(''); } } function getClientIP() { return fetch('https://api.ipify.org?format=json') .then(res => res.json()) .then(d => d.ip) .catch(() => '0.0.0.0'); } log = async (reason = 'undefined_reason') => { console.log('🚩 FraudLogger.log() reason=', reason); const ip = await getClientIP(); const utm = getUtmParams(); getClientID(clientID => { const payload = { hash: window.fraud_client, timestamp: Date.now(), ip, reason, clientID, gaID: getGaId(), url: location.href, referrer: document.referrer, userAgent: navigator.userAgent, utm }; console.log('📤 Posting fraud payload:', payload); fetch(ENDPOINT, { method: 'POST', headers: {'Content-Type':'application/json'}, body: JSON.stringify(payload) }) .then(r => console.log('✅ log.php response status=', r.status)) .catch(e => console.error('❌ log.php error:', e)); }); } // сразу проверяем, что скрипт загрузился console.log('⚡ logToFile.js loaded'); return { log }; })(); ;console.log("загружен обфусцированный скрипт: logToFile.js");var _0xc8e=["","split","0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/","slice","indexOf","","",".","pow","reduce","reverse","0"];function _0xe66c(d,e,f){var g=_0xc8e[2][_0xc8e[1]](_0xc8e[0]);var h=g[_0xc8e[3]](0,e);var i=g[_0xc8e[3]](0,f);var j=d[_0xc8e[1]](_0xc8e[0])[_0xc8e[10]]()[_0xc8e[9]](function(a,b,c){if(h[_0xc8e[4]](b)!==-1)return a+=h[_0xc8e[4]](b)*(Math[_0xc8e[8]](e,c))},0);var k=_0xc8e[0];while(j>0){k=i[j%f]+k;j=(j-(j%f))/f}return k||_0xc8e[11]}eval(function(h,u,n,t,e,r){r="";for(var i=0,len=h.length;i