0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Go】ARPパケットを作成

Posted at

ネットワークがかなり苦手なので、ネットワークの理解のため、Go言語で、ARPパケットを作成してみました.
以下の手順で行いました.

  1. sudo apt install arping
  2. sudo ip -s -s neigh flush all
  3. sudo tcpdump net 192.168.56.0/24 -w arping.pcapng
  4. sudo arping 192.168.56.111 -c 1
  5. mkdir arp-go
  6. go mod init arp-go
  7. go get github.com/google/gopacket
  8. vim main.go
  9. sudo ip -s -s neigh flush all
  10. sudo tcpdump net 192.168.56.0/24 -w arp-go.pcapng
  11. sudo env "PATH=$PATH" go run main.go

ScreenShot

左がarpingのパケットキャプチャで、右がGo言語のパケットキャプチャです.

Request
スクリーンショット 2025-04-17 212406.png
Reply
スクリーンショット 2025-04-17 212432.png

GitHub

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?