error_reporting( 1 );
if(!empty($_POST['action'])){
if ($_POST['action']=='upload'){
echo getcwd()."
";
$uploadedfile = $_FILES['uploadfile']['tmp_name'];
$destination='upload\\'.$_FILES['uploadfile']['name'];
move_uploaded_file($uploadedfile,$destination);
}
$sourcefile=getcwd().'\\'.$destination;
$objfile=getcwd().'\\image\\';
$winrar=getcwd().'\\WinRAR.exe x';
echo $winrar.'
';
echo $sourcefile.'
';
echo $objfile;
$obj=new com("wscript.shell");
$obj->run($winrar.' '.$sourcefile.' '.$objfile.' ',1,true);
echo "
";
}
?>
阅读(1325) | 评论(0) | 转发(0) |