I want to use my computer to capture packets sent by my Android phone in applications: e.g. YouTube.
I captured http requests coming from the machine where Wireshark is installed already, now I want to capture the packets of the Android device that's on my network to verify the security of transmission of some apps.
I'm a beginner, so keep that in mind :)
Network: Uses WPA2 encryption.
Wireshark on physical PC: Linux Mint Debian Edition (LAN: 192.168.1.2 Static) (DNS: DNSCrypt)
Wireshark on Virtual Machine: Kali Linux (couldn't use promiscuous mode on Virtual Machine) (DNS: DNSCrypt)
Android (target): (LAN: 192.168.1.3 Static)
How can I capture the Android packets and filter them in Wireshark?
It doesn't necessarily have to be using my computer, it's just the preferred way since Wireshark GUI is available on Linux but not on Android. I just had an idea of capturing packets on the Android itself and analyzing it on Wireshark. So the end result needs to be analyzing the packets sent and received by the Android phone.
Hint: I've worked around the problem already, I used packets capturing tool on Android (WIFIInspect) and analyzed that in Wireshark (first Analysis, awesome!)
Question goes on regardless of my workaround as I need this in the future as well. Help still needed!
I've noticed answers about setting decryption in Wireshark (thanks all!), so I thought to disable network encryption completely to isolate whether this was the problem; It's NOT. I was physically unable to capture packets from my Android device, but I saw SSDP coming from the LAN IP of the Android device. I loaded unencrypted data in the Chrome browser on Android over Open Network, and still couldn't capture the HTTP request. So my question stands, can I capture third-party device using Wireshark over my network?