ddddddO / packemon

Packet monster (っ‘-’)╮=͟͟͞͞◒ ヽ( '-'ヽ) TUI tool for sending packets of arbitrary input and monitoring packets on any network interfaces (default: eth0).
BSD 2-Clause "Simplified" License
89 stars 0 forks source link

wifi いけないか #18

Closed ddddddO closed 5 months ago

ddddddO commented 5 months ago
ddddddO commented 5 months ago

ラズパイで実行する

今の実装で実行できなかった

pi@raspberrypi:~/github.com/ddddddO/packemon $ sudo go run cmd/packemon/main.go
# github.com/ddddddO/packemon/internal/debugging
internal/debugging/networkinterface.go:393:6: cannot use &HARDWAREADDR_BROADCAST (type *[6]uint8) as type *packemon.HardwareAddr in argument to runtime.memequal
internal/debugging/networkinterface.go:418:6: cannot use &HARDWAREADDR_BROADCAST (type *[6]uint8) as type *packemon.HardwareAddr in argument to runtime.memequal
pi@raspberrypi:~/github.com/ddddddO/packemon $
ddddddO commented 5 months ago

あまりわかってないけどそのままでいけた (イーサネット)になってるからだと思う

https://x.com/ddddddOpppppp/status/1792012064787140874

pi@raspberrypi:~/github.com/ddddddO/packemon $ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether dc:a6:32:91:51:57  txqueuelen 1000  (イーサネット)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (ローカルループバック)
        RX packets 18  bytes 1136 (1.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 18  bytes 1136 (1.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.10.110  netmask 255.255.255.0  broadcast 192.168.10.255
        inet6 2400:4051:1920:f800:5870:ef57:3977:7dfa  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::4ddb:bfd:c0b4:6ca0  prefixlen 64  scopeid 0x20<link>
        ether dc:a6:32:91:51:58  txqueuelen 1000  (イーサネット)
        RX packets 201728  bytes 235837588 (224.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 68344  bytes 8913007 (8.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

pi@raspberrypi:~/github.com/ddddddO/packemon $ sudo go run cmd/packemon/main.go --interface wlan0
Monitor interface: &{3 1500 wlan0 dc:a6:32:91:51:58 up|broadcast|multicast|running}
pi@raspberrypi:~/github.com/ddddddO/packemon $
ddddddO commented 5 months ago

ok