Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev
android·Androidbydurinn

[Help] Packet sniffing with old Android phone?

cross-posted from: https://programming.dev/post/48972893

Please share any knowledge or experience that you have on packet inspection using smartphones. I would like to sniff at my switch, which is switching between my (two LANs)^[I put "two LANs" within parentheses to denote that the two LANs are not being switched between.] and my ISP. For this, I have mirrored all ports that are in use to a port that is currently not in use. Can I simply buy one of those USB-C to Ethernet dongles and use tcpdump in Termux? Will Android recognize the dongle as a sniffable network interface? The phone is rooted.

View original on programming.dev
14

3 replies

slrpnk.net

A rooted android phone can run a whole bunch of classical Linux apps for networking including packet sniffing since it has a proper kernel with support for it

7
durinnreply
programming.dev

Right! Do you think the phone will recognize the USB to Ethernet dongle as a network interface?

1

Many years ago I was using USB WiFi Modem through micro USB port on my tablet. Since that worked, my guess is USB to Ethernet should be recognized as well.

4

You reached the end

[Help] Packet sniffing with old Android phone? | Spyke