搞校內連絡人比想象多花了許多時間,不知道是不是因為xmlhttp 抓包不是標準的HTTP形式,還是忽略漏掉了,還是加密了。
myfrendlistx.do 裡的js幾乎都分析遍了,大概知道是發到friendselector.do, 但沒找到那個XN.JSON.build, 抓包也沒看到到這個檔案的請求。
最後直接開啟網頁代碼,發現連絡人資訊竟然就在Js裡面,哎,我可真命苦。
var friends=[{"id":269551433,"vip":false,"selected":true,"mo":false,"name":"/u767d/u5e06","head":"http:////hdn511.xnimg.cn//photos//hdn511//20090320//22//00//tiny_G8oP_154975o204237.jpg","groups":[]},{"id":233890798,"vip":false,"selected":false,"mo":false,"name":"/u5305/u6069/u548c","head":"http:////hdn411.xnimg.cn//photos//hdn411//20090719//2355//tiny_yztq_20554l204234.jpg","groups":[]},{"id":252127507,"vip":false,"selected":true,"mo":false,"name":"/u5305/u9752/u5c71","head":"http:////hd53.xiaonei.com//photos//hd53//20080901//14//11//tiny_CDvC_6270m200150.jpg","groups":[]}]
剩下就是javaRegex了,還有那個"/u6b63/u5728/u52a0/u8f7d/u597d/u53cb..." 怎麼搞成中文的問題。
myfrendlistx.do 裡面的頭像比較小,profile.do裡面能取到大的。相簿訪問考慮要不要搞