- file_get_contents: documentation ( source)
- tempnam: documentation ( source)
- file_put_contents: documentation ( source)
<?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 "---1--";
echo file_get_contents($tmp1); echo "--12---";
include($tmp1);
echo file_get_contents($tmp2); echo "--23---";
include($tmp2);
echo file_get_contents($tmp3); echo "--3---";
include($tmp3);