android tcpdump

  1. adb root   
  2. adb remount   
  3. adb push /wherever/you/put/tcpdump /data/local/tmp/tcpdump

  4. adb shell chmod 6755 /data/local/tmp/tcpdump 
    1. adb shell tcpdump -i any -p -s 0 -w /sdcard/capture.pcap   
    2. "-i any": listen on any network interface   
    3. "-p": disable promiscuous mode (doesn't work anyway)   
    4. "-s 0": capture the entire packet   
    5. "-w": write packets to a file (rather than printing to stdout)   
    6.   
    7.    ... do whatever you want to capture, then ^C to stop it ...   
    8.   
    9. adb pull /sdcard/capture.pcap .   
    10. sudo apt-get install wireshark  # or ethereal, if you're still on dapper   
    11. wireshark capture.pcap          # or ethereal   
    12.   
    13.    ... 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文件等等。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值