这个倒不难,查看网页源代码的方法太多了,不知道的可以网上找找吧。查看到了,源代码,发现没找页面中的内容未在源代码中显示。接着拿出httpwatch抓包分析,在其中的另外一个链接里找到页面源代码,不过源代码是加密过的。如下:
[root@web20 php]# base64 --helpUsage: base64 [OPTION] [FILE]Base64 encode or decode FILE, or standard input, to standard output.-w, --wrap=COLS Wrap encoded lines after COLS character (default 76).Use 0 to disable line wrapping.-d, --decode Decode data.-i, --ignore-garbage When decoding, ignore non-alphabet characters.--help Display this help and exit.--version Output version information and exit.如果[文件]缺省,或者[文件]为 - ,则读取标准输入。The data are encoded as described for the base64 alphabet in RFC 3548.Decoding require compliant input by default, use --ignore-garbage to attempt to recover from non-alphabet characters (such as newlines) in the encoded stream.
%20%20%5B%E8%AF%86%E8%AE%B0%5D%E4%BC%9A%E8%AE%A1%E7%9A%84%E6%B6%B5%E4%B9%89%E6%98%AF%E4%BB%80%E4%B9%88%EF%20%20
http://www.baidu.com/s?word=%B2%E2%CA%D4&tn=sitehao123
php for ($i=18291; $i<=18788 ;$i++ ){ $content = file_get_contents("http://www.XXX.com/test.php?wiki_id=".$i);//echo $content; $spwt1=explode("问题:",$content); $spwt2=explode('));<',$spwt1[1]); $spdn=explode("答案:",$spwt2[1]);//echo $spwt2[0];//echo $spdn[1]; preg_match('/base64decode("(.*?)"/',$spwt2[0],$matchesw); $wen=urldecode(base64_decode($matchesw[1])); echo $wen; echo "n"; echo "n"; preg_match('/base64decode("(.*?)"/',$spdn[1],$matchesd); $da=urldecode(base64_decode($matchesd[1])); echo $da;}?>