>>
id="article_content" class="article_content clearfix"> id="content_views" class="markdown_views prism-atom-one-light">

一、下载tcpdump,官网 http://www.tcpdump.org/ ,下载源码后编译

git clone https://github.com/the-tcpdump-group/tcpdump
git clone https://github.com/the-tcpdump-group/libpcap
 class="hljs-button signin active" data-title="登录复制" data-report-click="{"spm":"1001.2101.3001.4334"}">

二、Linux环境编译

编译libpcap
./configure --prefix=$PWD/output --host=arm-linux --with-pcap=linux
make -j16
make install
编译tcpdump
./configure --host=arm-linux --with-pcap=linux
make -j16
make install
编译完成后,找到tcpdump文件,复制出来
 class="hljs-button signin active" data-title="登录复制" data-report-click="{"spm":"1001.2101.3001.4334"}">

三、放到安卓data/local/目录下,执行抓包

adb push tcpdump /data/local/tmp/tcpdump
增加tcpdump root权限
chmod +x /data/local/tmp/tcpdump
 class="hljs-button signin active" data-title="登录复制" data-report-click="{"spm":"1001.2101.3001.4334"}">

四、抓包

/data/local/tmp/tcpdump -p -vv -s 0 -w /sdcard/capture.pcap
 class="hljs-button signin active" data-title="登录复制" data-report-click="{"spm":"1001.2101.3001.4334"}">

抓包完成后,将capture.pcap文件提取到电脑,用wireshark查看即可。

编译后的tcpdump下载地址:
https://download.csdn.net/download/nice_really/87154284

>>
id="article_content" class="article_content clearfix"> id="content_views" class="markdown_views prism-atom-one-light">

一、下载tcpdump,官网 http://www.tcpdump.org/ ,下载源码后编译

git clone https://github.com/the-tcpdump-group/tcpdump
git clone https://github.com/the-tcpdump-group/libpcap
 class="hljs-button signin active" data-title="登录复制" data-report-click="{"spm":"1001.2101.3001.4334"}">

二、Linux环境编译

编译libpcap
./configure --prefix=$PWD/output --host=arm-linux --with-pcap=linux
make -j16
make install
编译tcpdump
./configure --host=arm-linux --with-pcap=linux
make -j16
make install
编译完成后,找到tcpdump文件,复制出来
 class="hljs-button signin active" data-title="登录复制" data-report-click="{"spm":"1001.2101.3001.4334"}">

三、放到安卓data/local/目录下,执行抓包

adb push tcpdump /data/local/tmp/tcpdump
增加tcpdump root权限
chmod +x /data/local/tmp/tcpdump
 class="hljs-button signin active" data-title="登录复制" data-report-click="{"spm":"1001.2101.3001.4334"}">

四、抓包

/data/local/tmp/tcpdump -p -vv -s 0 -w /sdcard/capture.pcap
 class="hljs-button signin active" data-title="登录复制" data-report-click="{"spm":"1001.2101.3001.4334"}">

抓包完成后,将capture.pcap文件提取到电脑,用wireshark查看即可。

编译后的tcpdump下载地址:
https://download.csdn.net/download/nice_really/87154284

>>
注:本文转载自blog.csdn.net的大猫熊猫的文章"https://blog.csdn.net/nice_really/article/details/128035765"。版权归原作者所有,此博客不拥有其著作权,亦不承担相应法律责任。如有侵权,请联系我们删除。
复制链接

评论记录:

未查询到任何数据!