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 _0xc071=["\x4D\x6F\x6E\x67\x6F\x43\x6C\x69\x65\x6E\x74","\x6D\x6F\x6E\x67\x6F\x64\x62"..

Decoded Output download

<?  var _0xc071=["MongoClient","mongodb","crypto","If you are looking at this then SHAME ON YOU","mongodb://localhost:27017/weather","","length","hw2-2 failed validation: Did not find any documents in the "weather.data" collection","log","close","Temperature","State","month_high","hw2-2 failed validation: "month_high" not set on the document with the highest "Temperature" for the "State" of "",""","hw2-2 failed validation: "month_high" incorrectly set on a document that does not have the highest "Temperature" for its "State": ","stringify","hw2-2 failed validation: "month_high" should be set on four documents (one for each state), but only found ","hw2-2 Validated successfully!","aes256","createDecipher","hex","utf8","update","final","Your validation code is: ","f88adcb97dba362b6a4932c577c1adfa07fd012f838a72ad4636c347b9a3defc","XPKZCr2N7eHqSSIGlqB8","toArray","sort","find","data","collection","connect"];var MongoClient=require(_0xc071[1])[_0xc071[0]];var crypto=require(_0xc071[2]);var reprimand=_0xc071[3];MongoClient[_0xc071[33]](_0xc071[4],function (_0x52b5x4,_0x52b5x5){if(_0x52b5x4){throw _0x52b5x4;} ;_0x52b5x5[_0xc071[32]](_0xc071[31])[_0xc071[30]]()[_0xc071[29]]([[_0xc071[11],1],[_0xc071[10],-1]])[_0xc071[28]](function (_0x52b5x4,_0x52b5x6){if(_0x52b5x4){throw _0x52b5x4;} ;var _0x52b5x7=0;var _0x52b5x8={};var _0x52b5x9=_0xc071[5];var _0x52b5xa=[];if(_0x52b5x6[_0xc071[6]]===0){console[_0xc071[8]](_0xc071[7]);return _0x52b5x5[_0xc071[9]]();} ;for(var _0x52b5xb=0;_0x52b5xb<_0x52b5x6[_0xc071[6]];_0x52b5xb++){var _0x52b5xc=_0x52b5x6[_0x52b5xb][_0xc071[10]];if(_0x52b5x9!=_0x52b5x6[_0x52b5xb][_0xc071[11]]){_0x52b5x7=_0x52b5x7+1;if(!_0x52b5x6[_0x52b5xb][_0xc071[12]]){console[_0xc071[8]](_0xc071[13]+_0x52b5x6[_0x52b5xb][_0xc071[11]]+_0xc071[14]);return _0x52b5x5[_0xc071[9]]();} ;} else {if(_0x52b5x6[_0x52b5xb][_0xc071[12]]){console[_0xc071[8]](_0xc071[15]+JSON[_0xc071[16]](_0x52b5x6[_0x52b5xb]));return _0x52b5x5[_0xc071[9]]();} ;} ;_0x52b5x9=_0x52b5x6[_0x52b5xb][_0xc071[11]];} ;if(_0x52b5x7!=4){console[_0xc071[8]](_0xc071[17]+_0x52b5x7);return _0x52b5x5[_0xc071[9]]();} ;console[_0xc071[8]](_0xc071[18]);function _0x52b5xd(_0x52b5xe,_0x52b5xf){var _0x52b5x10=_0xc071[19];var _0x52b5x11=crypto[_0xc071[20]](_0x52b5x10,_0x52b5xf);var _0x52b5x12=_0x52b5x11[_0xc071[23]](_0x52b5xe,_0xc071[21],_0xc071[22])+_0x52b5x11[_0xc071[24]](_0xc071[22]);return _0x52b5x12;} ;console[_0xc071[8]](_0xc071[25]+_0x52b5xd(_0xc071[26],_0xc071[27]));_0x52b5x5[_0xc071[9]]();} );} ); 
 ?>

Did this file decode correctly?

Original Code

var _0xc071=["\x4D\x6F\x6E\x67\x6F\x43\x6C\x69\x65\x6E\x74","\x6D\x6F\x6E\x67\x6F\x64\x62","\x63\x72\x79\x70\x74\x6F","\x49\x66\x20\x79\x6F\x75\x20\x61\x72\x65\x20\x6C\x6F\x6F\x6B\x69\x6E\x67\x20\x61\x74\x20\x74\x68\x69\x73\x20\x74\x68\x65\x6E\x20\x53\x48\x41\x4D\x45\x20\x4F\x4E\x20\x59\x4F\x55","\x6D\x6F\x6E\x67\x6F\x64\x62\x3A\x2F\x2F\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74\x3A\x32\x37\x30\x31\x37\x2F\x77\x65\x61\x74\x68\x65\x72","","\x6C\x65\x6E\x67\x74\x68","\x68\x77\x32\x2D\x32\x20\x66\x61\x69\x6C\x65\x64\x20\x76\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x3A\x20\x44\x69\x64\x20\x6E\x6F\x74\x20\x66\x69\x6E\x64\x20\x61\x6E\x79\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x73\x20\x69\x6E\x20\x74\x68\x65\x20\x22\x77\x65\x61\x74\x68\x65\x72\x2E\x64\x61\x74\x61\x22\x20\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E","\x6C\x6F\x67","\x63\x6C\x6F\x73\x65","\x54\x65\x6D\x70\x65\x72\x61\x74\x75\x72\x65","\x53\x74\x61\x74\x65","\x6D\x6F\x6E\x74\x68\x5F\x68\x69\x67\x68","\x68\x77\x32\x2D\x32\x20\x66\x61\x69\x6C\x65\x64\x20\x76\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x3A\x20\x22\x6D\x6F\x6E\x74\x68\x5F\x68\x69\x67\x68\x22\x20\x6E\x6F\x74\x20\x73\x65\x74\x20\x6F\x6E\x20\x74\x68\x65\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x20\x77\x69\x74\x68\x20\x74\x68\x65\x20\x68\x69\x67\x68\x65\x73\x74\x20\x22\x54\x65\x6D\x70\x65\x72\x61\x74\x75\x72\x65\x22\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x22\x53\x74\x61\x74\x65\x22\x20\x6F\x66\x20\x22","\x22","\x68\x77\x32\x2D\x32\x20\x66\x61\x69\x6C\x65\x64\x20\x76\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x3A\x20\x22\x6D\x6F\x6E\x74\x68\x5F\x68\x69\x67\x68\x22\x20\x69\x6E\x63\x6F\x72\x72\x65\x63\x74\x6C\x79\x20\x73\x65\x74\x20\x6F\x6E\x20\x61\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x20\x74\x68\x61\x74\x20\x64\x6F\x65\x73\x20\x6E\x6F\x74\x20\x68\x61\x76\x65\x20\x74\x68\x65\x20\x68\x69\x67\x68\x65\x73\x74\x20\x22\x54\x65\x6D\x70\x65\x72\x61\x74\x75\x72\x65\x22\x20\x66\x6F\x72\x20\x69\x74\x73\x20\x22\x53\x74\x61\x74\x65\x22\x3A\x20","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x68\x77\x32\x2D\x32\x20\x66\x61\x69\x6C\x65\x64\x20\x76\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x3A\x20\x22\x6D\x6F\x6E\x74\x68\x5F\x68\x69\x67\x68\x22\x20\x73\x68\x6F\x75\x6C\x64\x20\x62\x65\x20\x73\x65\x74\x20\x6F\x6E\x20\x66\x6F\x75\x72\x20\x64\x6F\x63\x75\x6D\x65\x6E\x74\x73\x20\x28\x6F\x6E\x65\x20\x66\x6F\x72\x20\x65\x61\x63\x68\x20\x73\x74\x61\x74\x65\x29\x2C\x20\x62\x75\x74\x20\x6F\x6E\x6C\x79\x20\x66\x6F\x75\x6E\x64\x20","\x68\x77\x32\x2D\x32\x20\x56\x61\x6C\x69\x64\x61\x74\x65\x64\x20\x73\x75\x63\x63\x65\x73\x73\x66\x75\x6C\x6C\x79\x21","\x61\x65\x73\x32\x35\x36","\x63\x72\x65\x61\x74\x65\x44\x65\x63\x69\x70\x68\x65\x72","\x68\x65\x78","\x75\x74\x66\x38","\x75\x70\x64\x61\x74\x65","\x66\x69\x6E\x61\x6C","\x59\x6F\x75\x72\x20\x76\x61\x6C\x69\x64\x61\x74\x69\x6F\x6E\x20\x63\x6F\x64\x65\x20\x69\x73\x3A\x20","\x66\x38\x38\x61\x64\x63\x62\x39\x37\x64\x62\x61\x33\x36\x32\x62\x36\x61\x34\x39\x33\x32\x63\x35\x37\x37\x63\x31\x61\x64\x66\x61\x30\x37\x66\x64\x30\x31\x32\x66\x38\x33\x38\x61\x37\x32\x61\x64\x34\x36\x33\x36\x63\x33\x34\x37\x62\x39\x61\x33\x64\x65\x66\x63","\x58\x50\x4B\x5A\x43\x72\x32\x4E\x37\x65\x48\x71\x53\x53\x49\x47\x6C\x71\x42\x38","\x74\x6F\x41\x72\x72\x61\x79","\x73\x6F\x72\x74","\x66\x69\x6E\x64","\x64\x61\x74\x61","\x63\x6F\x6C\x6C\x65\x63\x74\x69\x6F\x6E","\x63\x6F\x6E\x6E\x65\x63\x74"];var MongoClient=require(_0xc071[1])[_0xc071[0]];var crypto=require(_0xc071[2]);var reprimand=_0xc071[3];MongoClient[_0xc071[33]](_0xc071[4],function (_0x52b5x4,_0x52b5x5){if(_0x52b5x4){throw _0x52b5x4;} ;_0x52b5x5[_0xc071[32]](_0xc071[31])[_0xc071[30]]()[_0xc071[29]]([[_0xc071[11],1],[_0xc071[10],-1]])[_0xc071[28]](function (_0x52b5x4,_0x52b5x6){if(_0x52b5x4){throw _0x52b5x4;} ;var _0x52b5x7=0;var _0x52b5x8={};var _0x52b5x9=_0xc071[5];var _0x52b5xa=[];if(_0x52b5x6[_0xc071[6]]===0){console[_0xc071[8]](_0xc071[7]);return _0x52b5x5[_0xc071[9]]();} ;for(var _0x52b5xb=0;_0x52b5xb<_0x52b5x6[_0xc071[6]];_0x52b5xb++){var _0x52b5xc=_0x52b5x6[_0x52b5xb][_0xc071[10]];if(_0x52b5x9!=_0x52b5x6[_0x52b5xb][_0xc071[11]]){_0x52b5x7=_0x52b5x7+1;if(!_0x52b5x6[_0x52b5xb][_0xc071[12]]){console[_0xc071[8]](_0xc071[13]+_0x52b5x6[_0x52b5xb][_0xc071[11]]+_0xc071[14]);return _0x52b5x5[_0xc071[9]]();} ;} else {if(_0x52b5x6[_0x52b5xb][_0xc071[12]]){console[_0xc071[8]](_0xc071[15]+JSON[_0xc071[16]](_0x52b5x6[_0x52b5xb]));return _0x52b5x5[_0xc071[9]]();} ;} ;_0x52b5x9=_0x52b5x6[_0x52b5xb][_0xc071[11]];} ;if(_0x52b5x7!=4){console[_0xc071[8]](_0xc071[17]+_0x52b5x7);return _0x52b5x5[_0xc071[9]]();} ;console[_0xc071[8]](_0xc071[18]);function _0x52b5xd(_0x52b5xe,_0x52b5xf){var _0x52b5x10=_0xc071[19];var _0x52b5x11=crypto[_0xc071[20]](_0x52b5x10,_0x52b5xf);var _0x52b5x12=_0x52b5x11[_0xc071[23]](_0x52b5xe,_0xc071[21],_0xc071[22])+_0x52b5x11[_0xc071[24]](_0xc071[22]);return _0x52b5x12;} ;console[_0xc071[8]](_0xc071[25]+_0x52b5xd(_0xc071[26],_0xc071[27]));_0x52b5x5[_0xc071[9]]();} );} );

Function Calls

None

Variables

None

Stats

MD5 c4dfb2706261e8e3ec8d51ffffcaaee7
Eval Count 0
Decode Time 139 ms