首先在目標A機器上運行Wireshark並開啓瀏覽器,開啓前關閉其餘佔用網絡的軟件,這裏我拿51CTO.com作測試。html
正常登錄51CTO用戶中心,此時使用git
http.cookie and http.request.method==POST
語法對Wireshark捕獲的數據包進行過濾。github
如圖所示,展開Hypertext Transfer Protocol項查看捕獲到的Cookie信息並將其複製爲純文本。瀏覽器
下面登錄B機器,使用Firefox或Chrome插件對捕獲到的Cookie信息進行利用。bash
瀏覽器 | 插件下載地址 |
Firefox | 插件下載地址 http://userscripts-mirror.org/scripts/show/119798cookie 擴展腳本下載地址 https://addons.mozilla.org/zh-CN/firefox/addon/greasemonkey/?src=search網絡 |
Chrome | 插件下載地址 https://github.com/evilcos/cookiehacker測試 |
火狐瀏覽器請安裝Original Cookie Injector插件後再安裝Greasemonkey擴展腳本。firefox