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