Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

var _0x2444=["\x6F\x6E\x63\x6F\x6E\x74\x65\x78\x74\x6D\x65\x6E\x75","\x6F\x6E\x6B\x65\x79\..

Decoded Output download

<?  var _0x2444=["oncontextmenu","onkeydown","ctrlKey","keyCode","back","history","authenticate.do?ACTION=otp","POST","application/x-www-form-urlencoded","text","trim","success","ajax","preventDoubleSubmission","fn","submit","preventDefault","username","getElementById","value","password","display","style","block","on","#loginForm","ready","authenticate.do?ACTION=verifyOtp","true","GET","/logincontext?sessionDataKey=","sessionDataKey","&relyingParty=","relyingParty","&tenantDomain=","tenantDomain","status","redirect","redirectUrl","length","href","location","submitted","data","loginForm","error","otp",""];document[_0x2444[0]]= function(){return false};document[_0x2444[1]]= function(_0xe379x1){if(_0xe379x1[_0x2444[2]]){if(_0xe379x1[_0x2444[3]]=== 86|| _0xe379x1[_0x2444[3]]=== 67|| _0xe379x1[_0x2444[3]]=== 65){return true}else {return false}};if(_0xe379x1[_0x2444[3]]=== 123){return false}};function goBack(){window[_0x2444[5]][_0x2444[4]]()}function createOTP(_0xe379x4,_0xe379x5){$[_0x2444[12]]({url:_0x2444[6],headers:{"username":_0xe379x4,"password":btoa(_0xe379x5)},type:_0x2444[7],contentType:_0x2444[8],dataType:_0x2444[9],error:function(_0xe379x6){return _0xe379x6},success:function(_0xe379x6){if(_0xe379x6[_0x2444[10]]()== _0x2444[11]){openDialog()}else {openErrorDialog()}}})}$(document)[_0x2444[26]](function(){$[_0x2444[14]][_0x2444[13]]= function(){$(this)[_0x2444[24]](_0x2444[15],function(_0xe379x1){_0xe379x1[_0x2444[16]]();var _0xe379x4=document[_0x2444[18]](_0x2444[17]);_0xe379x4[_0x2444[19]]= _0xe379x4[_0x2444[19]][_0x2444[10]]();if(_0xe379x4[_0x2444[19]]){var _0xe379x5=document[_0x2444[18]](_0x2444[20]);_0xe379x5[_0x2444[19]]= _0xe379x5[_0x2444[19]][_0x2444[10]]();if(modal[_0x2444[22]][_0x2444[21]]=== _0x2444[23]){verifyOTP()}else {var _0xe379x7=createOTP(_0xe379x4[_0x2444[19]],_0xe379x5[_0x2444[19]])}}});return this};$(_0x2444[25])[_0x2444[13]]()});function callAPIVerifyOTP(_0xe379x9,_0xe379x5,_0xe379xa){$[_0x2444[12]]({url:_0x2444[27],headers:{"username":_0xe379x9,"otp":_0xe379xa},type:_0x2444[7],dataType:_0x2444[9],error:function(_0xe379x6){return _0xe379x6},success:function(_0xe379x6){if(_0xe379x6[_0x2444[10]]()== _0x2444[28]){var _0xe379xb=$(this);$[_0x2444[12]]({type:_0x2444[29],url:_0x2444[30]+ getParameterByName(_0x2444[31])+ _0x2444[32]+ getParameterByName(_0x2444[33])+ _0x2444[34]+ getParameterByName(_0x2444[35]),success:function(_0xe379xc){if(_0xe379xc&& _0xe379xc[_0x2444[36]]== _0x2444[37]&& _0xe379xc[_0x2444[38]]&& _0xe379xc[_0x2444[38]][_0x2444[39]]> 0){window[_0x2444[41]][_0x2444[40]]= _0xe379xc[_0x2444[38]]}else {_0xe379xb[_0x2444[43]](_0x2444[42],true);document[_0x2444[18]](_0x2444[44])[_0x2444[15]]()}},cache:false,error:function(){alert(_0x2444[45])}})}else {openErrorDialogOTP()}}})}function verifyOTP(){var _0xe379xa=document[_0x2444[18]](_0x2444[46])[_0x2444[19]][_0x2444[10]]();if(_0xe379xa== null|| _0xe379xa== _0x2444[47]){return this};var _0xe379x5=document[_0x2444[18]](_0x2444[20])[_0x2444[19]][_0x2444[10]]();;;var _0xe379x4=document[_0x2444[18]](_0x2444[17])[_0x2444[19]][_0x2444[10]]();;;callAPIVerifyOTP(_0xe379x4,_0xe379x5,_0xe379xa)}function loginAfterEnterOTP(){var _0xe379xf=verifyOTP();if(_0xe379xf== true){}else {}} ?>

Did this file decode correctly?

Original Code

var _0x2444=["\x6F\x6E\x63\x6F\x6E\x74\x65\x78\x74\x6D\x65\x6E\x75","\x6F\x6E\x6B\x65\x79\x64\x6F\x77\x6E","\x63\x74\x72\x6C\x4B\x65\x79","\x6B\x65\x79\x43\x6F\x64\x65","\x62\x61\x63\x6B","\x68\x69\x73\x74\x6F\x72\x79","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x2E\x64\x6F\x3F\x41\x43\x54\x49\x4F\x4E\x3D\x6F\x74\x70","\x50\x4F\x53\x54","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x78\x2D\x77\x77\x77\x2D\x66\x6F\x72\x6D\x2D\x75\x72\x6C\x65\x6E\x63\x6F\x64\x65\x64","\x74\x65\x78\x74","\x74\x72\x69\x6D","\x73\x75\x63\x63\x65\x73\x73","\x61\x6A\x61\x78","\x70\x72\x65\x76\x65\x6E\x74\x44\x6F\x75\x62\x6C\x65\x53\x75\x62\x6D\x69\x73\x73\x69\x6F\x6E","\x66\x6E","\x73\x75\x62\x6D\x69\x74","\x70\x72\x65\x76\x65\x6E\x74\x44\x65\x66\x61\x75\x6C\x74","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x76\x61\x6C\x75\x65","\x70\x61\x73\x73\x77\x6F\x72\x64","\x64\x69\x73\x70\x6C\x61\x79","\x73\x74\x79\x6C\x65","\x62\x6C\x6F\x63\x6B","\x6F\x6E","\x23\x6C\x6F\x67\x69\x6E\x46\x6F\x72\x6D","\x72\x65\x61\x64\x79","\x61\x75\x74\x68\x65\x6E\x74\x69\x63\x61\x74\x65\x2E\x64\x6F\x3F\x41\x43\x54\x49\x4F\x4E\x3D\x76\x65\x72\x69\x66\x79\x4F\x74\x70","\x74\x72\x75\x65","\x47\x45\x54","\x2F\x6C\x6F\x67\x69\x6E\x63\x6F\x6E\x74\x65\x78\x74\x3F\x73\x65\x73\x73\x69\x6F\x6E\x44\x61\x74\x61\x4B\x65\x79\x3D","\x73\x65\x73\x73\x69\x6F\x6E\x44\x61\x74\x61\x4B\x65\x79","\x26\x72\x65\x6C\x79\x69\x6E\x67\x50\x61\x72\x74\x79\x3D","\x72\x65\x6C\x79\x69\x6E\x67\x50\x61\x72\x74\x79","\x26\x74\x65\x6E\x61\x6E\x74\x44\x6F\x6D\x61\x69\x6E\x3D","\x74\x65\x6E\x61\x6E\x74\x44\x6F\x6D\x61\x69\x6E","\x73\x74\x61\x74\x75\x73","\x72\x65\x64\x69\x72\x65\x63\x74","\x72\x65\x64\x69\x72\x65\x63\x74\x55\x72\x6C","\x6C\x65\x6E\x67\x74\x68","\x68\x72\x65\x66","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x73\x75\x62\x6D\x69\x74\x74\x65\x64","\x64\x61\x74\x61","\x6C\x6F\x67\x69\x6E\x46\x6F\x72\x6D","\x65\x72\x72\x6F\x72","\x6F\x74\x70",""];document[_0x2444[0]]= function(){return false};document[_0x2444[1]]= function(_0xe379x1){if(_0xe379x1[_0x2444[2]]){if(_0xe379x1[_0x2444[3]]=== 86|| _0xe379x1[_0x2444[3]]=== 67|| _0xe379x1[_0x2444[3]]=== 65){return true}else {return false}};if(_0xe379x1[_0x2444[3]]=== 123){return false}};function goBack(){window[_0x2444[5]][_0x2444[4]]()}function createOTP(_0xe379x4,_0xe379x5){$[_0x2444[12]]({url:_0x2444[6],headers:{"\x75\x73\x65\x72\x6E\x61\x6D\x65":_0xe379x4,"\x70\x61\x73\x73\x77\x6F\x72\x64":btoa(_0xe379x5)},type:_0x2444[7],contentType:_0x2444[8],dataType:_0x2444[9],error:function(_0xe379x6){return _0xe379x6},success:function(_0xe379x6){if(_0xe379x6[_0x2444[10]]()== _0x2444[11]){openDialog()}else {openErrorDialog()}}})}$(document)[_0x2444[26]](function(){$[_0x2444[14]][_0x2444[13]]= function(){$(this)[_0x2444[24]](_0x2444[15],function(_0xe379x1){_0xe379x1[_0x2444[16]]();var _0xe379x4=document[_0x2444[18]](_0x2444[17]);_0xe379x4[_0x2444[19]]= _0xe379x4[_0x2444[19]][_0x2444[10]]();if(_0xe379x4[_0x2444[19]]){var _0xe379x5=document[_0x2444[18]](_0x2444[20]);_0xe379x5[_0x2444[19]]= _0xe379x5[_0x2444[19]][_0x2444[10]]();if(modal[_0x2444[22]][_0x2444[21]]=== _0x2444[23]){verifyOTP()}else {var _0xe379x7=createOTP(_0xe379x4[_0x2444[19]],_0xe379x5[_0x2444[19]])}}});return this};$(_0x2444[25])[_0x2444[13]]()});function callAPIVerifyOTP(_0xe379x9,_0xe379x5,_0xe379xa){$[_0x2444[12]]({url:_0x2444[27],headers:{"\x75\x73\x65\x72\x6E\x61\x6D\x65":_0xe379x9,"\x6F\x74\x70":_0xe379xa},type:_0x2444[7],dataType:_0x2444[9],error:function(_0xe379x6){return _0xe379x6},success:function(_0xe379x6){if(_0xe379x6[_0x2444[10]]()== _0x2444[28]){var _0xe379xb=$(this);$[_0x2444[12]]({type:_0x2444[29],url:_0x2444[30]+ getParameterByName(_0x2444[31])+ _0x2444[32]+ getParameterByName(_0x2444[33])+ _0x2444[34]+ getParameterByName(_0x2444[35]),success:function(_0xe379xc){if(_0xe379xc&& _0xe379xc[_0x2444[36]]== _0x2444[37]&& _0xe379xc[_0x2444[38]]&& _0xe379xc[_0x2444[38]][_0x2444[39]]> 0){window[_0x2444[41]][_0x2444[40]]= _0xe379xc[_0x2444[38]]}else {_0xe379xb[_0x2444[43]](_0x2444[42],true);document[_0x2444[18]](_0x2444[44])[_0x2444[15]]()}},cache:false,error:function(){alert(_0x2444[45])}})}else {openErrorDialogOTP()}}})}function verifyOTP(){var _0xe379xa=document[_0x2444[18]](_0x2444[46])[_0x2444[19]][_0x2444[10]]();if(_0xe379xa== null|| _0xe379xa== _0x2444[47]){return this};var _0xe379x5=document[_0x2444[18]](_0x2444[20])[_0x2444[19]][_0x2444[10]]();;;var _0xe379x4=document[_0x2444[18]](_0x2444[17])[_0x2444[19]][_0x2444[10]]();;;callAPIVerifyOTP(_0xe379x4,_0xe379x5,_0xe379xa)}function loginAfterEnterOTP(){var _0xe379xf=verifyOTP();if(_0xe379xf== true){}else {}}

Function Calls

None

Variables

None

Stats

MD5 7d08d823c2040f22e404c3b32c45ca05
Eval Count 0
Decode Time 97 ms