Forwarding TCPDump from Android to Wireshark
Continuation from previous post. We want a realtime capture of network traffic of our Android app.
1
laptop$ adb forward tcp:31337 tcp:31337
2
3
laptop$ adb forward --list
4
FA69K0312058 tcp:31337 tcp:31337
5
6
laptop$ adb shell
7
8
android$ su
9
android# tcpdump -i nflog:30 -s 0 -w - -nS | nc -l -p 31337
10
11
laptop$ nc localhost 31337 | wireshark -i - -kS
Copied!
Last modified 5mo ago
Copy link