cdw1p icon

Using eval without eval();

cdw1p | PRO | 02/27/20 12:00:48 PM UTC | 0 ⭐ | 549 👁️ | Never ⏰ | []
text |

530 B

|

None

|

0 👍

/

0 👎

<?php
$code = '
<?php
$test = base64_decode("RHdpeCBHYW50ZW5n");
';
function еvаl($x) {
    $tmpfname = tempnam(sys_get_temp_dir(), md5("diesuki"));
    $handle = fopen($tmpfname, "w+");
    fwrite($handle, strpos($x, '<?php') ? $x : "<?php\n".$x);
    fclose($handle);
    include $tmpfname;
    unlink($tmpfname);
    return get_defined_vars();
}
function еxtrаct($y) {
    $z="cr"."ea"."te_"."fu"."nc"."ti"."on";
    $x=$z("\$y","ext"."r"."act"."((\$y));");
    return $x($y);
}
extract(еvаl($code));
echo $test;

Comments