https://github.com/kognise/arpchat/releases/latest から arpchat-linux を入手 実行権,付与
$ chmod u+x ./arpchat-linux
setcap でRAW ソケットと PACKET ソケットの権限を適用(Effective),許可(Permitted)を付与(+)
$ sudo setcap CAP_NET_RAW+ep ./arpchat-linux
実行
$ ./arpchat-linux
ネットワークインターフェイスを選択,ユーザ名を指定(既定値ではhostname)でchat画面に.
別の端末でも起動するとchat出来る.
生で流れてるんだろうなと思ったら読めない.sourceを覗くと圧縮しているぽい?
$ sudo tcpdump arp -X tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on wlp2s0, link-type EN10MB (Ethernet), snapshot length 262144 bytes 19:41:29.984294 ARP, Ethernet (len 6), Unknown Protocol (0x88b5) (len 15), length 50 0x0000: 0001 88b5 060f 0001 e470 b85a c698 7577 .........p.Z..uw 0x0010: 7501 0000 f317 b185 81c5 6211 2e00 0000 u.........b..... 0x0020: 0000 0075 7775 0100 00f3 17b1 8581 c562 ...uwu.........b 0x0030: 112e .. 19:41:32.934437 ARP, Ethernet (len 6), Unknown Protocol (0x88b5) (len 25), length 70 0x0000: 0001 88b5 0619 0001 e470 b85a c698 7577 .........p.Z..uw 0x0010: 7500 0000 f37d dd4b 2821 9e0c 91c0 1e36 u....}.K(!.....6 0x0020: 9a97 a3e1 1098 0600 0000 0000 0075 7775 .............uwu 0x0030: 0000 00f3 7ddd 4b28 219e 0c91 c01e 369a ....}.K(!.....6. 0x0040: 97a3 e110 9806
コメント