Created
August 24, 2016 03:36
-
-
Save piedoom/6a95eebb8129c9b641330a9841f13552 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** @type {Array} */ | |
var _0x4e04 = ["size", "children", "body *", "random", "floor", "undefined", "rotateX", "rotateY", "rotateZ", "skewX", "skewY", "translateX", "translateY", "scaleX", "scaleY", "perspective", "length", "%", "deg", "(", ")", "css", "slow", "remove", "fadeOut", "pointer-events", "none", "#glitch", '<div id="transmission">...<br/><span class="content"></span><span class="cursor">\u258c</span></div>', "html", "body", "color", "#FFFFFF", "transition", "all .3s linear", "*", "rgba(0, 0, 0, .6)", "10px auto 0", | |
"left", "61ch", "break-word", "100%", "50px", "monospace", "1.2rem", "#a939ff", "#transmission", "ICAgICAgICAgICAgICAgICAgICAgICAgICA6UEKPQms6CiAgICAgICAgICAgICAgICAgICAgICAsakKIQEJAQkBCQEJCTC4KICAgICAgICAgICAgICAgICAgIDdHlkKTQpVCTU1NTU1CQEJAQkBOcgogICAgICAgICAgICAgICA6a0KSQpCIl01NT01PTU9NT01NTU2MQphCQEIxLAogICAgICAgICAgIDo1kUKNQphCiEJCTU1PTU9NT01PTU9NT01NipJuQm5CQEJCdS4KICAgICAgICA3MG6GlUKIQpJClEJYQkJPTU9NT01PTU9NT01NQk1QQphCiEJAQkBCQE5yCiAgICAgIEeYlpdCSiBpQohCh4ggIE9CTU9NT01PTU9NT01PTZYyICBCj0JAQi4gRUJAQkBTCiAgICAgIJKWQk2HR0pCVS4gIGlTdUKIT01PTU9NT01PTU9NTZdPVTE6ICAua0JMTYhNhkKXCiAgICAgIEKMTU1CmUIgICAgICAgN4hCQk1NT01PTU9NT01PQkKWOiAgICAgICBCh0JNTYhCCiAgICAgII2YiEKKQiAgICAgICAgIDeSlkBNTU9NT01PTU1AQkA6ICAgICAgICAgQEBCQEJACiAgICAgII+ST0xCLiAgICAgICAgICBCTkKPTU1PTU9NTY9CRUIgICAgICAgICAgckJqTYRCCiAgICAgIJBAICBAICAgICAgICAgICBNICBPQk9NT01NQHEgIE0gICAgICAgICAgLkAgIEBACiAgICAgIISVT3ZCICAgICAgICAgICBCOnWMTU1PTU9NTUJKaUIgICAgICAgICAgLkJ2TUBCCiAgICAgIIRCkUKYSiAgICAgICAgIDCRQpdNTU9NT01PTUKVQkB1ICAgICAgICAgcUBAQEJACiAgICAgIEKETUJCjHYgICAgICAgR4+LQk1NTU1NTU1NTU1NQkKINSAgICAgICBGhEJNTUBCCiAgICAgIIdCQk1/QlBOaSAgIExNRUKFT01NTU2PQoNNTU9NTYpCWk03ICAgckVxQodNQkKECiAgICAgIEKYloRCTSAgQm1ChEIgIHFCTU9NQpBChUKEQk1PTUJMICBCQEJAQiAgQEJAQkBNCiAgICAgICBKlm2GhFBCj0KEQplCN0eIT01CQi4gICAsQE1NTUBxTEJAQkBAQEJxQkBCQnYKICAgICAgICAgIGlHQpUsaTCETZZCbk1NT4tFICA6ICBNQE9NTUBAQEJAUGlpQEBOOgogICAgICAgICAgICAgLiAgIEKXTZBCj01NTUBCQEJAQkBNTU1AQEBNQEIKICAgICAgICAgICAgICAgICBAQkBCLmlATUJCQEJAQkBAQk1AOjpCQEJACiAgICAgICAgICAgICAgICAgQkBAQCAuQkBCLjpAQkAgOkJAQiAgQEJATwogICAgICAgICAgICAgICAgICAgOjAgckBCQCAgQkBAIC5AQkA6IFA6CiAgICAgICAgICAgICAgICAgICAgICAgdk1CIDpAQkAgOkJPNwogICAgICAgICAgICAgICAgICAgICAgICAgICAsQkBCCg==", | |
"append", "#transmission .content", '<div id="glitch"></div>', "transparent url('https://bnetcmsus-a.akamaihd.net/cms/page_media/4g/4GYULUE805VZ1471973978379.gif') repeat scroll 0% 0% / 100% auto", "fixed", "0px", "0.5", "bnet-navbar-nav", "bnet-navbar-toolbar", ".", "display", '<img src="https://bnetcmsus-a.akamaihd.net/cms/page_media/go/GOHY605ZZEAA1471990978690.jpg" />', "50%", ".5", "push", "fast"]; | |
var blinkerval; | |
var imagerval; | |
/** | |
* @return {undefined} | |
*/ | |
function rotateRand() { | |
var _0x55dfx4 = $(_0x4e04[2])[_0x4e04[1]]()[_0x4e04[0]](); | |
if (_0x55dfx4 > 100) { | |
var unlock = Math[_0x4e04[4]](Math[_0x4e04[3]]() * _0x55dfx4) + 40; | |
if (typeof $(_0x4e04[2])[_0x4e04[1]]()[unlock] !== _0x4e04[5]) { | |
AnimateRotate($(_0x4e04[2])[_0x4e04[1]]()[unlock]); | |
} | |
setTimeout(function() { | |
rotateRand(); | |
}, 10); | |
} | |
} | |
/** @type {Array} */ | |
var transforms = [_0x4e04[6], _0x4e04[7], _0x4e04[8], _0x4e04[9], _0x4e04[10], _0x4e04[11], _0x4e04[12], _0x4e04[13], _0x4e04[14], _0x4e04[11], _0x4e04[12], _0x4e04[15]]; | |
/** | |
* @param {?} elem | |
* @return {undefined} | |
*/ | |
function AnimateRotate(elem) { | |
/** @type {number} */ | |
var g = Math[_0x4e04[4]](Math[_0x4e04[3]]() * 201) - 100; | |
var comp = Math[_0x4e04[4]](Math[_0x4e04[3]]() * transforms[_0x4e04[16]]); | |
var $elem = $(elem); | |
var b = _0x4e04[17]; | |
if (comp <= 4) { | |
b = _0x4e04[18]; | |
} | |
$elem[_0x4e04[21]]({ | |
transform : transforms[comp] + _0x4e04[19] + g + b + _0x4e04[20] | |
}); | |
} | |
/** | |
* @return {undefined} | |
*/ | |
function deleteRand() { | |
var _0x55dfx4 = $(_0x4e04[2])[_0x4e04[1]]()[_0x4e04[0]](); | |
if (_0x55dfx4 > 100) { | |
var scope = Math[_0x4e04[4]](Math[_0x4e04[3]]() * _0x55dfx4) + 40; | |
if (typeof $(_0x4e04[2])[_0x4e04[1]]()[scope] !== _0x4e04[5]) { | |
beginDeleteElem(scope); | |
} | |
setTimeout(function() { | |
deleteRand(); | |
}, 50); | |
} else { | |
deface(); | |
} | |
} | |
/** | |
* @param {?} activeIdx | |
* @return {undefined} | |
*/ | |
function beginDeleteElem(activeIdx) { | |
$($(_0x4e04[2])[_0x4e04[1]]()[activeIdx])[_0x4e04[24]](_0x4e04[22], function() { | |
$(this)[_0x4e04[23]](); | |
}); | |
} | |
/** | |
* @return {undefined} | |
*/ | |
function deface() { | |
clearInterval(imagerval); | |
removeImages(); | |
$(_0x4e04[27])[_0x4e04[21]](_0x4e04[25], _0x4e04[26]); | |
$(_0x4e04[30])[_0x4e04[29]](_0x4e04[28]); | |
$(_0x4e04[29])[_0x4e04[21]](_0x4e04[31], _0x4e04[32]); | |
$(_0x4e04[35])[_0x4e04[21]](_0x4e04[33], _0x4e04[34]); | |
$(_0x4e04[46])[_0x4e04[21]]({ | |
"background" : _0x4e04[36], | |
"margin" : _0x4e04[37], | |
"text-align" : _0x4e04[38], | |
"max-width" : _0x4e04[39], | |
"word-wrap" : _0x4e04[40], | |
"font-size" : _0x4e04[41], | |
"margin-top" : _0x4e04[42], | |
"font-family" : _0x4e04[43], | |
"padding" : _0x4e04[44], | |
"color" : _0x4e04[45] | |
}); | |
var deepDataAndEvents = _0x4e04[47]; | |
setTimeout(function() { | |
transmit(deepDataAndEvents, 0); | |
}, 3E3); | |
} | |
/** | |
* @param {Array} deepDataAndEvents | |
* @param {number} emptyGet | |
* @return {undefined} | |
*/ | |
function transmit(deepDataAndEvents, emptyGet) { | |
if (emptyGet < deepDataAndEvents[_0x4e04[16]]) { | |
/** @type {number} */ | |
var INJECTED_STYLE_REMOVAL_BUFFER_MS = (emptyGet + 1) % 60 == 0 ? 600 : 0; | |
var animationLength = Math[_0x4e04[4]](Math[_0x4e04[3]]() * 10); | |
$(_0x4e04[49])[_0x4e04[48]](deepDataAndEvents[emptyGet++]); | |
setTimeout(function() { | |
transmit(deepDataAndEvents, emptyGet); | |
}, animationLength + INJECTED_STYLE_REMOVAL_BUFFER_MS); | |
} else { | |
} | |
} | |
/** | |
* @return {undefined} | |
*/ | |
function createGlitch() { | |
injectImage(); | |
$(_0x4e04[29])[_0x4e04[48]](_0x4e04[50]); | |
$(_0x4e04[27])[_0x4e04[21]]({ | |
"background" : _0x4e04[51], | |
"height" : _0x4e04[41], | |
"width" : _0x4e04[41], | |
"position" : _0x4e04[52], | |
"top" : _0x4e04[53], | |
"left" : _0x4e04[53], | |
"opacity" : _0x4e04[54] | |
}); | |
} | |
/** @type {number} */ | |
var removalItemIndex = 0; | |
/** @type {Array} */ | |
var removalItems = [_0x4e04[55], _0x4e04[56]]; | |
/** | |
* @return {undefined} | |
*/ | |
function customRemovals() { | |
var emptyJ = $(_0x4e04[57] + removalItems[removalItemIndex]); | |
emptyJ[_0x4e04[24]](_0x4e04[22], function() { | |
$(this)[_0x4e04[23]](); | |
}); | |
removalItemIndex++; | |
if (removalItemIndex < removalItems[_0x4e04[16]]) { | |
setTimeout(function() { | |
customRemovals(); | |
}, 400); | |
} | |
} | |
/** | |
* @return {undefined} | |
*/ | |
function hideGlitch() { | |
$(_0x4e04[27])[_0x4e04[21]](_0x4e04[58], _0x4e04[26]); | |
} | |
/** | |
* @return {undefined} | |
*/ | |
function initXSS() { | |
/** @type {number} */ | |
var timeEx = 5E3; | |
setTimeout(function() { | |
rotateRand(); | |
}, timeEx); | |
setTimeout(function() { | |
createGlitch(); | |
}, timeEx + 2E3); | |
setTimeout(function() { | |
deleteRand(); | |
customRemovals(); | |
}, timeEx + 3E3); | |
} | |
/** @type {Array} */ | |
var injectedImages = []; | |
/** | |
* @return {undefined} | |
*/ | |
function injectImage() { | |
var check = $(_0x4e04[59]); | |
var el_t = Math[_0x4e04[4]](Math[_0x4e04[3]]() * 100 + 1); | |
var originalLeft_ = Math[_0x4e04[4]](Math[_0x4e04[3]]() * 100 + 1); | |
check[_0x4e04[21]]({ | |
"width" : _0x4e04[60], | |
"opacity" : _0x4e04[61], | |
"position" : _0x4e04[52], | |
"top" : el_t + _0x4e04[17], | |
"left" : originalLeft_ + _0x4e04[17] | |
}); | |
injectedImages[_0x4e04[62]](check); | |
$(_0x4e04[30])[_0x4e04[48]](check); | |
/** @type {number} */ | |
var _0x55dfx23 = 0; | |
/** @type {number} */ | |
imagerval = setInterval(function() { | |
if (_0x55dfx23 > 10) { | |
clearInterval(imagerval); | |
check[_0x4e04[23]](); | |
injectImage(); | |
} | |
_0x55dfx23++; | |
AnimateRotate(check); | |
}, 200); | |
} | |
/** @type {number} */ | |
var removeImageIndex = 0; | |
/** | |
* @return {undefined} | |
*/ | |
function removeImages() { | |
var emptyJ = $(injectedImages[removeImageIndex]); | |
emptyJ[_0x4e04[24]](_0x4e04[63], function() { | |
$(this)[_0x4e04[23]](); | |
}); | |
removeImageIndex++; | |
if (removeImageIndex < injectedImages[_0x4e04[16]]) { | |
setTimeout(function() { | |
removeImages(); | |
}, 20); | |
} | |
} | |
initXSS(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment