新建
上传
首页
助手
最?/div>
资料?/div>
工具

IT

在线教育领跑者——麦子学?/p>

http://www.maziedu.com 

准备?/p>

 

1. 

手机要有

root

权限

 

2. 

下载

tcpdump    

步骤?/p>

 

1. adb push tcpdump /data/local/tcpdump 

2. adb shell chmod 6755 /data/local/tcpdump 

3. adb shell,   su

获得

root

权限

 

4. cd /data/local 

5. /tcpdump -i any -p -s 0 -w /data/capture.pcap 

命令参数?/p>

 

        # "-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 ... 

  

6,  adb pull /data/capture.pcap d:/ 

7,  

在电脑上?/p>

wireshark

打开

capture.pcap

即可分析

log 

  

Execute the following if you would like to watch packets go by rather than 

capturing them to a file (-n skips DNS lookups. -s 0 captures the entire packet 

rather than just the header):   

  

adb shell tcpdump -n -s 0    

  

Ͼλ
新建
上传
首页
助手
最?/div>
资料?/div>
工具

IT

在线教育领跑者——麦子学?/p>

http://www.maziedu.com 

准备?/p>

 

1. 

手机要有

root

权限

 

2. 

下载

tcpdump    

步骤?/p>

 

1. adb push tcpdump /data/local/tcpdump 

2. adb shell chmod 6755 /data/local/tcpdump 

3. adb shell,   su

获得

root

权限

 

4. cd /data/local 

5. /tcpdump -i any -p -s 0 -w /data/capture.pcap 

命令参数?/p>

 

        # "-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 ... 

  

6,  adb pull /data/capture.pcap d:/ 

7,  

在电脑上?/p>

wireshark

打开

capture.pcap

即可分析

log 

  

Execute the following if you would like to watch packets go by rather than 

capturing them to a file (-n skips DNS lookups. -s 0 captures the entire packet 

rather than just the header):   

  

adb shell tcpdump -n -s 0    

  

">
新建
上传
首页
助手
最?/div>
资料?/div>
工具

IT

在线教育领跑者——麦子学?/p>

http://www.maziedu.com 

准备?/p>

 

1. 

手机要有

root

权限

 

2. 

下载

tcpdump    

步骤?/p>

 

1. adb push tcpdump /data/local/tcpdump 

2. adb shell chmod 6755 /data/local/tcpdump 

3. adb shell,   su

获得

root

权限

 

4. cd /data/local 

5. /tcpdump -i any -p -s 0 -w /data/capture.pcap 

命令参数?/p>

 

        # "-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 ... 

  

6,  adb pull /data/capture.pcap d:/ 

7,  

在电脑上?/p>

wireshark

打开

capture.pcap

即可分析

log 

  

Execute the following if you would like to watch packets go by rather than 

capturing them to a file (-n skips DNS lookups. -s 0 captures the entire packet 

rather than just the header):   

  

adb shell tcpdump -n -s 0    

  

Ͼλ">
Ͼλ
Ŀ

安卓手机利用adb和tcpdump手机抓包 - 百度文库
新建
上传
首页
助手
最?/div>
资料?/div>
工具

IT

在线教育领跑者——麦子学?/p>

http://www.maziedu.com 

准备?/p>

 

1. 

手机要有

root

权限

 

2. 

下载

tcpdump    

步骤?/p>

 

1. adb push tcpdump /data/local/tcpdump 

2. adb shell chmod 6755 /data/local/tcpdump 

3. adb shell,   su

获得

root

权限

 

4. cd /data/local 

5. /tcpdump -i any -p -s 0 -w /data/capture.pcap 

命令参数?/p>

 

        # "-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 ... 

  

6,  adb pull /data/capture.pcap d:/ 

7,  

在电脑上?/p>

wireshark

打开

capture.pcap

即可分析

log 

  

Execute the following if you would like to watch packets go by rather than 

capturing them to a file (-n skips DNS lookups. -s 0 captures the entire packet 

rather than just the header):   

  

adb shell tcpdump -n -s 0    

  



ļ׺.doc޸Ϊ.docĶ

  • нһĿƶȻ
  • ͳĻЭ߻飺ֻ
  • ˽̰꼶ѧϲᡶʶʱ䡷ѧ
  • ҵѧеԭκ𰸵9 - ͼ
  • СҵװСƷ۸
  • վ˲-
  • صĿ-̫ܿۺϿĿо
  • 2016-2022йʳռӹгӪ̬о - ͼ
  • 2016ǶŴѧְҵĹ滮ĩ
  • ִ-﷨ϰ⼰

վ

԰ Ͼλ
ϵͷ779662525#qq.com(#滻Ϊ@)