Monitor Android Traffic with Wireshark (Windows)

By | 15 May 2014

Preparation

You need tcpdump for Android (I used it from the “Shark for Root” app) and Netcat for Windows (I used Ncat from Nmap for Windows).

Setup Capturing

Open 3 shells. Run these commands:

1st shell:

adb shell "su -c '/data/data/lv.n3o.shark/files/tcpdump -n -s 0 -w - port 443 | nc -l -p 11233'"Code language: JavaScript (javascript)

2nd shell:

adb forward tcp:11233 tcp:11233Code language: CSS (css)

3rd shell:

ncat 127.0.0.1 11233 | "C:\Program Files\Wireshark\Wireshark.exe" -k -i -Code language: JavaScript (javascript)

Leave a Reply

Your email address will not be published. Required fields are marked *

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.