Windows下對本網通訊進行抓包

來源:互聯網
上載者:User

Windows下傳統的抓包工具如Wireshark/Ethereal不能對本地程式之間的網路通訊抓包,一些商業抓包工具使用Winsock LSP (Layered Service Provider)技術實現了本地程式之間的網路通訊抓包。如果即想要對本地通訊進行抓包又要使用Wireshark/Ethereal就要費一番周折了。

http://wiki.wireshark.org/CaptureSetup/Loopback
詳細介紹了如何操作。實際操作其實很簡單,共分5步:

1 按照這個http://support.microsoft.com/kb/839013
網址中介紹安裝loopback網卡驅動。

2 3 給新網卡設定IP地址,比如設定為192.168.0.100,子網路遮罩設定為255.255.255.0

3 在命令列中查看新網卡的MAC地址 ipconfig /all

Ethernet adapter 本地串連 2:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Microsoft Loopback Adapter
        Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.0.100
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :

4 添加ARP綁定,比如 arp –s 192.168.0.100 02-00-4C-4F-4F-50

5 添加路由,比如 route add 192.168.0.100 mask 255.255.255.255 192.168.0.100

然後在ping 192.168.0.100的同時抓包,抓包的時候選擇新安裝的loopback網卡。就這麼簡單!

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.