作者leslieha (哈)
看板Network
标题[问题] Network Simlutor 2 - Agent的问题
时间Thu Nov 2 09:25:40 2006
Network Simulator 2
新增一个 TCP 的 Agent
是用
set tcp [$ns Agent/TCP]
想请问
Agent/xxxx
xxxx可以接的东西
有那些?
要去那边查它可以接那些啊?
我是想要模拟ARP spoof
set host1 [$ns node]
set host2 [$ns node]
set host3 [$ns node]
set sw [$ns node]
$ns duplex-link $host1 $sw 100Mb 10ms DropTail
$ns duplex-link $host2 $sw 100Mb 10ms DropTail
$ns duplex-link $host3 $sw 100Mb 10ms DropTail
set switch [$ns Agent/switch] #是想作到这样
$ns attach-agent $sw $switch
set arpspoof [$ns Agent/xxx] #某agent
$ns attach-agent $ host1 $arpspoof
#一个会一直发ARP的一个agent
#或者说会发可以自己修改内容的封包
#符合 Ethernet protcol 跟 ARP protcol
#骗switch去改forwarding table
现在是卡在
1. sw node不知该用什麽 agent/xxx, 会自动forward, 建forwarding table
2. host node不知该用什麽 agent才可以自己塞封包内容(Ethernet, ARP, IP)
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.129.36.80