简体   繁体   English

通过 Wireshark 实时捕获 Android 蓝牙流量

[英]Live capture of Android bluetooth traffic via Wireshark

As the title suggests, I would like to analyze the bluetooth traffic of my android device on wireshark, I was able to do that just a few hours ago by just connecting the Android device via usb and opening up wireshark, the android bluetooth interface would just shouw up and worked perfectly, after some time (I rebooted the phone and did a couple other things), the bluetooth interface was gone.正如标题所暗示的,我想在wireshark上分析我的android设备的蓝牙流量,几个小时前我能够通过USB连接Android设备并打开wireshark来做到这一点,android蓝牙接口只是显示并完美运行,一段时间后(我重新启动手机并做了一些其他事情),蓝牙界面消失了。 I'm now able to only access the phone Logcat.我现在只能访问电话 Logcat。 I think I disabled something, or have to do some steps in order to activate this feature, that I had activated before without knowing, but I can't seem to replicate that, and the only things I find online are about saving HCI log in a file and then analyzing them on wireshark, which is not ehat I'm looking for right now我想我禁用了某些东西,或者必须执行一些步骤才能激活此功能,我之前在不知道的情况下已激活,但我似乎无法复制它,我在网上找到的唯一内容是关于保存 HCI 登录一个文件,然后在wireshark上分析它们,这不是我现在正在寻找的

I too was looking for a way to do this and I think the best way I've found so far is to use wireshark's androiddump tool: https://www.wireshark.org/docs/man-pages/androiddump.html 我也一直在寻找一种方法来做,我认为到目前为止找到的最好的方法是使用Wireshark的androiddump工具: https : //www.wireshark.org/docs/man-pages/androiddump.html

It's built in with wireshark and if your phone is plugged in with adb installed and configured correctly so that you can do an adb shell from your computer, then when you open wireshark your android's bluetooth interface should show up as possible source of capture as soon as you open wireshark. 它是用Wireshark内置的,如果您的手机插入了正确安装并配置了adb的电话,以便可以从计算机上执行adb shell ,那么当您打开Wireshark时,Android的蓝牙接口应尽快显示为可能的捕获源。你打开wireshark。

You were probably using Wireshark extcap androiddump option which has three requirements:您可能正在使用 Wireshark extcap androiddump 选项,它具有三个要求:

  • rooted device植根设备
  • developer option Bluetooth HCI snoop enabled开发人员选项蓝牙 HCI 监听已启用
  • adb server running adb 服务器正在运行

From your description, you simply opened wireshark and did not start Android server从你的描述来看,你只是打开了wireshark,并没有启动Android服务器

Please do the following:请执行以下操作:

  • enable developer option Bluetooth HCI snoop - you can do so by tapping your device serial number in your settings menu启用开发人员选项蓝牙 HCI 监听 - 您可以通过在设置菜单中点击您的设备序列号来实现

  • From your terminal execute the following command: $adb start-server when you are finished you can use $adb kill-server从您的终端执行以下命令: $adb start-server完成后您可以使用$adb kill-server

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM