# "-P": disable promiscuous mode (doesn' t workanyway)
# "-S 0": capture the entire packet
# "-W": write packets to a file (rather than printing tostdout)
... Do whatever you want to capture, then ^ C to stop it...
Adb pull/sdcard/capture. pcap.
Sudo apt-get install wireshark # or ethereal, if you're 'restill on dapper
Wireshark capture. pcap # or ethereal
Look at your packets and be wise
An interactive shell or slave terminal generated in the tcpdump background. By default, tcpdump captures all traffic without filtering. Add a similar expression for tcpdump port 80 if you like. Real-Time packet monitoring
If you perform the following operations, you prefer to view the packages instead of capturing them into a file (you can search for the DNS. -0 capture the entire package, not just the title ):
Adb shell tcpdump-n-s 0
Adb shell tcpdump-n-s 0
Typical tcpdump options apply. For example, if you wantto see HTTP traffic:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.