tjw1218
2016-05-11 03:11
采纳率: 80%
浏览 1.9k
已采纳

tcpdump抓取移动终端的数据包

C:\Users\TJW>adb devices
List of devices attached
5066adc2 device

C:\Users\TJW>adb shell
shell@cancro:/ $ su
root@cancro:/ # adb push e:/tcpdump /data/local
error: device not found
1|root@cancro:/ # chmod 777 /data/local
root@cancro:/ #
130|root@cancro:/ #
130|root@cancro:/ # exit
shell@cancro:/ $ exit

C:\Users\TJW>adb push e:/tcpdump /data/local
failed to copy 'e:/tcpdump' to '/data/local/tcpdump': Is a directory
4715 KB/s (1801155 bytes in 0.373s)

C:\Users\TJW>adb push e:/tcpdump /data/local/tcpdump
4197 KB/s (1801155 bytes in 0.419s)

C:\Users\TJW>adb shell
shell@cancro:/ $ su
root@cancro:/ # chmod 6755 /data/local/tcpdump
root@cancro:/ # /data/local/tcpdump -p -s 0 -w /sdcard/001.pcap
k_shell/2000:10411: /data/local/tcpdump: can't execute: Is a directory
126|root@cancro:/ # /data/local/tcpdump/tcpdump -p -s 0 -w /sdcard/001.pcap
k_shell/2000:10411: /data/local/tcpdump/tcpdump: can't execute: Permission denie
d
126|root@cancro:/ # chmod 6755 /data/local/tcpdump/tcpdump
root@cancro:/ # /data/local/tcpdump/tcpdump -p -s 0 -w /sdcard/001.pcap
tcpdump: no suitable device found
请问为什么找得到设备,权限也有为什么抓不到数据包,还有一些细节可以继续讨论。

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • tjw1218 2016-05-11 03:34
    已采纳

    C:\Users\TJW>adb devices
    List of devices attached
    5066adc2 device

    C:\Users\TJW>adb version
    Android Debug Bridge version 1.0.32
    Revision 09a0d98bebce-android

    C:\Users\TJW>adb push e:/tcpdump /data/local/tcpdump
    3388 KB/s (1801155 bytes in 0.519s)

    C:\Users\TJW>adb shell
    shell@cancro:/ $ su
    root@cancro:/ # /data/local/tcpdump -p -s 0 -w /storage/001.pcap
    k_shell/2000:12907: /data/local/tcpdump: can't execute: Is a directory
    请问这个路径为什么出错

    已采纳该答案
    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题