注册通行证 用户名 密码
  • 文章投稿
  • 博客
  • 论坛
  • 设为首页
  • 加入收藏
jztop.com网络技术
  • 首页
  • | iT新闻
  • | 操作系统
  • | 组网建网
  • | 网络安全
  • | 程序开发
  • | 办公一族
  • | 工具软件
  • | 网页制作
  • | 多媒体制作
  • | 网吧技术
  • | 服务器
  • | 专题教程
Vista | 软件评测 | 系统备份 | 优化 | 进程 | 聊天 | 病毒 | Linux | 黑客 | 防火墙 | 数据库 | Web开发 | Java | Word | 游戏 | 32位开发 | 移动开发
当前位置:首页 > 网络应用 > 组网架设 内容正文:菜鸟分析网络执法官

菜鸟分析网络执法官

发布时间:2006-10-16 14:24:39 来源:友佳学院 网友评论 0 条

点击进入《友佳学院》ARP攻击与防范专区(www.jztop.com)

要了解网络执法官的原理.

就要先了解局域网的通信的原理.

前面我们看到了.在以太网上传输的都是具有以太网头的数据包.

也就是局域网上连个机器相互通讯就要知道对方的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 ms <1 ms ^C

C:>

今天抓了个网络执法官的包。

00 80 ad 02 a8 31 dest address

00 80 ad 6d 38 92 sour address

08 06 arp packet



00 01 ethern net packet

08 00 IP address

06 hardware address length

04 ip address length

00 02 arp reply

00 80 ad 6d 38 92 source address MAC

c0 a8 00 04 source IP address 192.168.0.4

00 80 ad 02 a8 31 dest address MAC

c0 a8 00 e1 dest IP address 192.168.0.225

23 45 73 72 01 94 07



192.168.0.4是我的网关IP地址。

如此操作以后。

D:Documents and Settingscoolrit>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.37 00-e0-4c-82-7d-74 dynamic

D:Documents and Settingscoolrit>arp -a

Interface: 192.168.0.225 --- 0x2

Internet Address Physical Address Type

192.168.0.4 00-80-ad-6d-38-92 dynamic

192.168.0.37 00-e0-4c-82-7d-74 dynamic

但也许有人有疑问。

如何让windows自己跳出消息说。有IP冲突呢?

我们来看这样一个包:

00 80 ad 02 a8 31 00 80 ad 02 a8 32 08 06

00 01

08 00

06 04

00 02

00 80 ad 02 a8 32

c0 a8 00 e1

00 80 ad 02 a8 31

c0 a8 00 e1

看到没有。

两个IP地址都是一样的。

OK。

现在把这个包replay一下。

相关文章
  • 斯坦福大学电话调查:1/8美国人沉迷网络
  • 中国网络广告日益火爆 市场有望达20亿美元
  • 八分之一成年人网络成瘾 沉迷色情和游戏
  • 网络恶炒《流血的黄色录像》
  • 在Oracle的网络结构中解决连接问题
【评论】【收藏本文】【打印】【关闭】
上一篇文章:如何有效管理外来人员进入公司网络
下一篇文章:网络攻击机制和技术发展综述
讨论区
查看
已有 0 位对此新闻感兴趣的网友发表了看法
匿名发表
注册通行证 登陆
图文阅读推荐
[图文]无线攻防:破解WEP密钥
[图文]无线攻防:破解WEP密钥
ADSL用户注意了 防黑客攻击十大秒法
ADSL用户注意了 防黑客攻击十大秒法
推荐阅讯
  • 网管员必知:常用电脑密码破解
  • 网络管理之ARP地址解析协议应用
  • 网管心得:优化网络性能为局域网络提速
  • 网管经典语录
  • 网卡调整过程中的几个另类技巧
  • 如何建立DHCP服务器
  • 管理网络服务器易如反掌
  • ARP攻击原理及解决方法
  • [独家]视频:构建ADSL外网服务器
  • sniffer帮助理解子网掩码、网关与ARP协议的
阅读排行
  • 1.网吧频繁掉线(ARP)与解决方法
  • 2.ARP病毒解决办法
  • 3.局域网受ARP欺骗攻击后的解决方法(图)
  • 4.网络管理之IP地址篇
  • 5.局域网内如何防止ARP欺骗
  • 6.使用ARP命令来绑定IP和MAC地址
  • 7.网管必读-常用网络命令
  • 8.ARP攻击原理及解决方法
  • 9.ARP病毒问题的处理
  • 10.一个20岁网管的真情自白书
专题教程
  • 大话G游 专题:手机病毒揭密
  • ARP攻击防范与解决方案 路由故障处理手册
  • Picasa中文版_Picasa教程 专题:清除流氓软件
  • Firefox专题 seo搜索引擎优化专区
  • 重装Windows必知的事情 装机之必备软件大行动
病毒专杀栏
  • 杀毒软件反被病毒杀 连"救命"都不能喊
  • 金山ARP防火墙
  • 还原卡神话破灭“机器狗”病毒来势汹汹
  • cctv经济半小时:你的手机现在安全吗?
  • 新挂马方式开始流行 ARP挂马称雄局域网
  • 木马和病毒清除的通用解法
  • IP地址不再冲突 查找ARP攻击者元凶
  • 教你几招识别和防御Web网页木马
  • 分析:封杀BT只是暂时的止痛药
  • QQ爆危险漏洞,“QQ游戏邀请大盗”邀请你玩病
关于我们 | 诚聘英才 | 联系我们 | 版权声明 | 网站大事 | 网站地图 | 意见建议
CopyRight 2005-2007 Jztop.Com 版权所有 未经许可 请勿转载