r/HowToHack • u/Capable_Currency_349 • Aug 28 '25
Packet sniffing other devices on the same network using an Android phone
I was thinking to setup a rooted Android phone as a DNS server and then the primary dns changed to the phone IP on the router so that the packets sent or received by the other devices on the same network can then be analyzed using some tools. I just don't know how to approach it or if there is a better way to do so. Can anyone guide me?
4
Upvotes
4
u/O-o--O---o----O Aug 28 '25
What packets exactly are trying to analyze, because setting up a dns server and (presumably?) handing it out via router dhcp will not allow you to analyze anything other than dns queries (and not even all).
What are you really trying to achieve? What's the goal?
4
u/Hollow-Process Aug 28 '25
What you’re describing is called a Man in the Middle Attack and there are better tools to achieve this. There is Wireshark, Fiddler…an entire list of options with a variety of capabilities depending on your goals. Bettercap is a popular, well-documented, open source option. It’s great for beginners, too…Evilsocket, the good fellow behind the development of Bettercap, wrote an LLM Agent with his Nerve toolkit that can do a lot of the heavy lifting for you. He touches on it briefly in this blog post of his, which makes for a great read. In fact, his entire blog is awesome!
3
u/Mental-Weird-1677 Aug 28 '25
You may want to read about Wi-Fi spoofing.
1
u/XFM2z8BH Aug 28 '25
not dns...to use a device to mitm other devices traffic, that's arp spoofing/poisoning
1
u/ShadyIS Aug 28 '25
You're around 10 years too late. Almost everything is encrypted these days. Best you could have is probably dns lookups.