- adb root
- adb remount
- adb push /wherever/you/put/tcpdump /data/local/tmp/tcpdump
- adb shell chmod 6755 /data/local/tmp/tcpdump
-
- adb shell tcpdump -i any -p -s 0 -w /sdcard/capture.pcap
- # "-i any": listen on any network interface
- # "-p": disable promiscuous mode (doesn't work anyway)
- # "-s 0": capture the entire packet
- # "-w": write packets to a file (rather than printing to stdout)
-
- ... 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 still on dapper
- wireshark capture.pcap # or ethereal
-
- ... look at your packets and be wise ...
找到服务器返回信息方法:
找到get等发起方,右键, follow tcp stream ----》 下一个服务器返回值即是。
- adb shell tcpdump -i any -p -s 0 -w /sdcard/capture.pcap
- # "-i any": listen on any network interface
- # "-p": disable promiscuous mode (doesn't work anyway)
- # "-s 0": capture the entire packet
- # "-w": write packets to a file (rather than printing to stdout)
-
- ... 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 still on dapper
- wireshark capture.pcap # or ethereal
-
- ... look at your packets and be wise ...
找到服务器返回信息方法:
找到get等发起方,右键, follow tcp stream ----》 下一个服务器返回值即是。pcap 网页内容查看
先找到 服务器返回的200 ok. 然后右击 Line-based text data: text/html ---> export selected packages bytes
可以到网页,图片 ,js文件等等。