﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-Rukas - Oh, My Blog!-随笔分类-黑客技术</title><link>http://www.cnitblog.com/rukas/category/1655.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 03 Oct 2011 12:45:46 GMT</lastBuildDate><pubDate>Mon, 03 Oct 2011 12:45:46 GMT</pubDate><ttl>60</ttl><item><title>破解Session cookie的方法</title><link>http://www.cnitblog.com/rukas/archive/2005/12/20/5614.html</link><dc:creator>Rukas - Oh, My Blog!</dc:creator><author>Rukas - Oh, My Blog!</author><pubDate>Tue, 20 Dec 2005 07:00:00 GMT</pubDate><guid>http://www.cnitblog.com/rukas/archive/2005/12/20/5614.html</guid><wfw:comment>http://www.cnitblog.com/rukas/comments/5614.html</wfw:comment><comments>http://www.cnitblog.com/rukas/archive/2005/12/20/5614.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/rukas/comments/commentRss/5614.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/rukas/services/trackbacks/5614.html</trackback:ping><description><![CDATA[<A href="http://hackbase.com/hacker/tutorial/2005050711234.html">http://hackbase.com/hacker/tutorial/2005050711234.html</A><BR><BR><FONT face=新宋体 size=2>這方法，我自己想的，已經用了1,2年了，希望對有需要的網友有用.<BR><BR>所謂的 session cookie, 就是站台在你登錄成功後，<BR>送上一個 cookie，表示你已經通過驗證，但與一般cookie<BR>不同的是，他並不會存在你的硬碟上，也就是說：<BR>在你離開瀏覽器之後，就會消失，也就是意味：下次你重開<BR>瀏覽器，再進此站，此 cookie 已經不見了。<BR><BR>那麼，要怎麼讓這個 cookie 永遠有效呢？說永遠太久了<BR>我們就來個 50 年不變吧...<BR><BR>set win=external.menuArguments<BR>s = win.document.cookie<BR>for each i in split(s,"; ")<BR>&nbsp;&nbsp;document.cookie = i &amp; "; expires=Thu, 1 Jan 2099 0:0:0 UTC"<BR>next<BR>原理很簡單：就是把session cookie讀出來，然後把他的expire日期，<BR>往後設到十幾年後，就這麼簡單..<BR><BR>用這個的好處？<BR>1. 有些站台，用session cookie，讓你只能用IE下載，而不能用flashget抓<BR>&nbsp;&nbsp;（因為flashget抓不到 session cookie），用這程式，就可以破這些站台<BR>&nbsp;&nbsp;&nbsp;直接用flashget, nettransport抓.<BR>2. 像是 holio等站台，login之後，跑一次，之後就可以免登錄，不需驗證，<BR>&nbsp;&nbsp;&nbsp;直接進入網頁，（時效，看asp session而定，一般是1天左右)<BR>3. 破解一些簡單的網站，如 softking(有未註冊者，只能查詢三次，否則要關掉<BR>&nbsp;&nbsp;&nbsp;瀏覽器重來的不合理限制)在softking，跑一次之後，這時cookie記錄永遠是 <BR>&nbsp;&nbsp;&nbsp;check,softview=1.. 也就是說，不管你查詢多少次，送出的cookie值永遠是1<BR>&nbsp;&nbsp;&nbsp;造成瀏覽限制的取消.<BR>4. 登錄論壇，嫌論壇給的保存Cookie時限不夠長嗎？自己加到50年吧..<BR>5. 破解 需人工輸入螢幕所見之gif數字 的前門 (只人工輸入一次,保存cookie,暴力破解)<BR><BR>好，那要怎麼跑這個程式呢？<BR>##################<BR>[一般用法: 適用: IE, Sleipnir, MyIE2, 所有的瀏覽器]<BR>&nbsp;&nbsp;加在IE滑鼠右鍵（就是你要跑FlashGET抓檔時，按滑鼠右鍵，然後選擇下載，那種就是IE滑鼠右鍵)<BR>把以下這個程式，存在 c:\winnt\web\pcookie.htm<BR>---------------------------------------<BR>&lt;script language="VBScript"&gt;<BR>set win=external.menuArguments<BR>set doc=win.document<BR>s = doc.cookie<BR>for each i in split(s,"; ")<BR>&nbsp;&nbsp;doc.cookie = i &amp; "; expires=Thu, 1 Jan 2099 0:0:0 UTC"<BR>next<BR>&lt;/script&gt;<BR>---------------------------------------<BR>再把以下這個REG檔，存在 c:\winnt\web\pcookie.reg<BR>---------------------------------------<BR>Windows Registry Editor Version 5.00<BR><BR>[HKEY</FONT><A href="http://hackbase.com/hacker/tutorial/2005050711234.html#" target=_blank><FONT face=新宋体 size=2>_</FONT></A><FONT face=新宋体 size=2>CURRENT</FONT><A href="http://hackbase.com/hacker/tutorial/2005050711234.html#" target=_blank><FONT face=新宋体 size=2>_</FONT></A><FONT face=新宋体 size=2>USER\Software\Microsoft\Internet Explorer\MenuExt\(&amp;P)cookie]<BR>@="c:/winnt/web/pcookie.htm"<BR>"Contexts"=dword:000000ff<BR>---------------------------------------<BR>執行 reg檔，之後重開IE，就可以在IE滑鼠右鍵裡面，使用了<BR><BR>##################<BR><BR>[Sleipnir專用]<BR>&nbsp;&nbsp;最上方的網址欄，右邊有一個綠色箭頭，那個就是AddrMenu，按下去，選「編輯延伸選單」<BR>&nbsp;&nbsp;在AddrMenu.INI, 最底行，加入這一行（以下3行需連成1行)<BR>---------------------------------------<BR>&nbsp;&nbsp;(&amp;P)cookie|javascript:var ar = document.cookie.split("; "); <BR>&nbsp;&nbsp;for (i=0; i&lt;ar.length; i++) { document.cookie = ar[i] + <BR>&nbsp;&nbsp;"; expires=Thu, 1 Jan 2099 0:0:0 UTC"; }; eval()<BR>---------------------------------------<BR>&nbsp;&nbsp;修改存檔之後，選「重新載入延伸選單」，就可以使用了..</FONT><img src ="http://www.cnitblog.com/rukas/aggbug/5614.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/rukas/" target="_blank">Rukas - Oh, My Blog!</a> 2005-12-20 15:00 <a href="http://www.cnitblog.com/rukas/archive/2005/12/20/5614.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>