我爱黑客网首页 设为首页
加入收藏
联系我们
 首 页  技术文章 下载中心 站长学院 交流论坛
 软件:
 文章:        教程:
 推荐: 我爱黑客网论坛
 
 
 
 
   
黑软: Q Q 软件 木马间谍 探嗅监听 溢出攻击 加密解密 漏洞扫描 脚本注入 远程控制 综合利用 聊天工具  
 
技术文章: 爱黑新闻 | 黑客攻防 | 安全防御 | 程序设计 | 系统操作 | 网络技术 | 本站动态 | 业界动态 | 安全公告 | 病毒公告
 
 
您当前的位置:我爱黑客网 -> 黑客攻防 -> 工具详解 -> 文章内容  
栏目导航
· Q Q 攻防 · 黑客入门
· 攻防实战 · 安全初步
· 工具详解 · 黑客教程
· 漏洞研究 · 黑客编程
· 技术杂谈
热门文章
· 灰鸽子新手完全教程(..
· 关于一句话木马
· 帮老马的ASP站长助手正..
· google 搜索引擎实用技..
· 软件、程序脱壳的各种..
· 开启网络终端连接最简..
· Hacker defender 中文..
· 黑客必备命令-FTP命令..
· 最新版的pcshare的免疫..
· 用好MSN Spaces之新手..
· 视频:ADSL宽带共享上..
· 便捷的数据收集工具—..
相关文章

· 菜鸟浅谈Linux内核编..
· 菜鸟安全加倍:精通防..
· 菜鸟也来对付最流行..
· [图文] 菜鸟眼中的第..
· 菜鸟问与答(函数)
· 大四菜鸟的名牌大学..
· [组图] windows 2003..
· [组图] Win 2003菜鸟..
· 代理服务器知识菜鸟..
· 网络创业参考:菜鸟..
查看更多与菜鸟分析网络数据-----网络执法官分析相关内容

菜鸟分析网络数据-----网络执法官分析
作者:幽火  来源:www.5ihack.com  发布时间:2007-5-6 13:49:10  发布人:ghostfire

减小字体 增大字体


最近在论坛上看到很多贴子在讨论网络执法官的问题.   
菜鸟我正好知道这回事情.人道"人之患好为人师"   
手里忍不住,就写点东西吧.   
我也很忙.又没有MM,又没有MONEY....晕倒有点跑题.   

OK,闲话少说,切如正题.   
要了解网络执法官的原理.   
就要先了解局域网的通信的原理.   

前面我们看到了.在以太网上传输的都是具有以太网头的数据包.   
也就是局域网上连个机器相互通讯就要知道对方的MAC地址.   

看看具体的过成   
比如一台netbug的机器要和一台o3的机器通讯.   

首先.netbug要知道o3的IP地址.(这就要用到dns协议,暂时我们略过)   
netbug知道了o3的IP后,就可以组装IP协议层以上的包了.   
但前面已经说了.要在以太网上传输数据,就必须有一个的MAC,   

要找MAC,netbug首先在自己的arp缓存里找是否有这个条目.   
大家可以在cmd环境下.   
C:\>arp -a   

Interface: 192.168.0.225 --- 0x2   
Internet Address Physical Address Type   
192.168.0.4 00-80-ad-77-e2-9a dynamic   
192.168.0.9 00-e0-4c-39-15-f2 dynamic   
192.168.0.10 00-e0-4c-39-19-a5 dynamic   
192.168.0.12 00-10-b5-4d-4b-b7 dynamic   

看到没有?   
如果IP所对应的MAC在这里没有.那netbug就会用到我们以前所讲的arp协议.   

发送一个广播.如果在局域网上发现中间的IP和自己的IP符合,就发回ARP回应.   
ff ff ff ff ff ff 00 e0 4c 82 8f ba 08 06 00 01   
08 00 06 04 00 01 00 e0 4c 82 8f ba c0 a8 00 27   
00 00 00 00 00 00 c0 a8 00 01 20 20 20 20 20 20   
20 20 20 20 20 20 20 20 20 20 20 20   

00 01:ethern   
08 00:IP   
06:hardware address length   
04:Protocol address length   
00 01:Opertion type   
00 e0 4c 82 8f ba :sender hardware address   
c0 a8 00 27: sender IP address 192.168.0.39   
00 00 00 00 00 00:receiver hardware address 00 00 00 00 00 00 broadcast   
c0 a8 00 01:receiver ip address 192.168.0.1   
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20:the data fixed.   


如果没有回应,那netbug就会把网关的MAC做为对方的MAC   
然后封装ethern网包.发送出去.   

OK,原理就说到这里,大家看出什么漏洞了吗?   
对,如果我门在arp缓存里修改网关的mac那.netbug就上去网了.   

那如何远程去修改对方的arp缓存呢?   
有办法.   
就是arp的一个属性.免费arp.   
1.一个主机可以通过她来确定另一个主机是否设置了相同的IP地址.   
2.如果发送免费ARP的主机正好改变了硬件地址.那这个分组就可以更新其它主机缓存中的硬件地址.   

C:\>arp /?   

Displays and modifies the IP-to-Physical address translation tables used by   
address resolution protocol (ARP).   

ARP -s inet_addr eth_addr [if_addr] <===添加arp条目   
ARP -d inet_addr [if_addr] <====删除arp条目   
ARP -a [inet_addr] [-N if_addr] <====显示arp条目   

-a Displays current ARP entries by interrogating the current   
protocol data. If inet_addr is specified, the IP and Physical   
addresses for only the specified computer are displayed. If   
more than one network interface uses ARP, entries for each ARP   
table are displayed.   
-g Same as -a.   
inet_addr Specifies an internet address.   
-N if_addr Displays the ARP entries for the network interface specified   
by if_addr.   
-d Deletes the host specified by inet_addr. inet_addr may be   
wildcarded with * to delete all hosts.   
-s Adds the host and associates the Internet address inet_addr   
with the Physical address eth_addr. The Physical address is   
given as 6 hexadecimal bytes separated by hyphens. The entry   
is permanent.   
eth_addr Specifies a physical address.   
if_addr If present, this specifies the Internet address of the   
interface whose address translation table should be modified.   
If not present, the first applicable interface will be used.   
Example:   
> arp -s 157.55.85.212 00-aa-00-62-c6-09 .... Adds a static entry.   
> arp -a .... Displays the arp table.   

C:\>   
网络执法官就是用的这个特性.   
使对方缓存中的网关地址错误.   
没有网关,当然上不去网了.   
如果发现相同IP具有不同的MAC,当然报错了.   
公司网络上不好使用网络执法官.   
等过几天,   
我抓几个包详细分析一下.  
让我们模拟一次arp攻击:   

C:\>arp -a   

Interface: 192.168.0.225 --- 0x2   
Internet Address Physical Address Type   
192.168.0.1 00-50-ba-2b-ad-7b dynamic   
192.168.0.4 00-80-ad-77-e2-9a dynamic   
192.168.0.9 00-e0-4c-39-15-f2 dynamic   
192.168.0.10 00-e0-4c-39-19-a5 dynamic   
192.168.0.12 00-10-b5-4d-4b-b7 dynamic   
192.168.0.53 00-e0-4c-39-1d-80 dynamic   
C:\>arp -d 192.168.0.4   

C:\>arp -s 192.168.0.4 00-e0-4c-39-15-f2   

C:\>arp -a   

Interface: 192.168.0.225 --- 0x2   
Internet Address Physical Address Type   
192.168.0.1 00-50-ba-2b-ad-7b dynamic   
192.168.0.4 00-e0-4c-39-15-f2 static   
192.168.0.9 00-e0-4c-39-15-f2 dynamic   
192.168.0.10 00-e0-4c-39-19-a5 dynamic   
192.168.0.12 00-10-b5-4d-4b-b7 dynamic   
192.168.0.51 00-c0-9f-16-da-8d dynamic   
192.168.0.53 00-e0-4c-39-1d-80 dynamic   

C:\>tracert 210.26.50.242   

Tracing route to 210.26.50.242 over a maximum of 30 ho   

1 * * * Request timed out.   
2 * * * Request timed out.   
3 * ^C   


C:\>arp -d 192.168.0.4   

C:\>arp -a   

Interface: 192.168.0.225 --- 0x2   
Internet Address Physical Address Type   
192.168.0.1 00-50-ba-2b-ad-7b dynamic   
192.168.0.4 00-80-ad-77-e2-9a dynamic   
192.168.0.9 00-e0-4c-39-15-f2 dynamic   
192.168.0.10 00-e0-4c-39-19-a5 dynamic   
192.168.0.12 00-10-b5-4d-4b-b7 dynamic   
192.168.0.51 00-c0-9f-16-da-8d dynamic   
192.168.0.53 00-e0-4c-39-1d-80 dynamic   

C:\>tracert 210.26.50.242   

Tracing route to XRL [210.26.50.242]   
over a maximum of 30 hops:   

1 <1 ms <1 ms <1 ms PROXY [192.168.0.4]   
2 1 ms <1 ms <1 ms 218.4.142.137   
3 1 ms <1&n

[1] [2]  下一页

查看更多与菜鸟分析网络数据-----网络执法官分析相关内容

[ ] [返回上一页] [打 印] [收 藏]
上一篇文章:
下一篇文章:
      WinRAR自制开机密码程序       Winnt/2k/xp/2003密码修改光盘{需修改附件下载地址}
∷相关文章评论∷   (评论内容只代表网友观点,与本站立场无关!) [发表评论]
 
 
 
 
晋ICP备05008232   维护网络安全、传播安全技术才是我们的目标! 
 
关于本站 - 网站帮助 - - 下载声明 - 友情连接 -网站地图