<?php
$tmp1=tempnam("/tmp", "prvieval");
$tmp2=tempnam("/tmp", "drugieval");
$tmp3=tempnam("/tmp","trecieval");
$cntnt="ZWNobyAnYSc7";
$bb64="base64_decode";
file_put_contents($tmp1,
'<?php
file_put_contents("' . $tmp2 . '",
\'<?php file_put_contents("' . $tmp3 . '","<?php \' . $bb64 . '(\"'.$cntnt.'\") . \';");\'
);
'
);
echo file_get_contents($tmp1); echo "-----";
include($tmp1);
#include($tmp2);
#include($tmp3);
- Output for 7.0.0 - 7.0.2
- Parse error: syntax error, unexpected '"', expecting identifier (T_STRING) in /in/oqW5B on line 12
Process exited with code 255. - Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17
- Parse error: syntax error, unexpected '(' in /in/oqW5B on line 12
Process exited with code 255.
preferences:
167.54 ms | 1387 KiB | 28 Q