Code Monkey home page Code Monkey logo

ble-security-tool's Introduction

BLE-Security-Tool

写个小工具,我也不知道能写到什么程度Orz。

可能因为bluez实现的某些问题,连接之后断开连接会报错。这时候可以重启一下蓝牙服务service bluetooth restart,然后拔插一下蓝牙适配器,这个问题完美的影响了工具运行的稳定性

也可能不是bluez的问题,之前用十几块钱的蓝牙适配器每次都会出现这个问题,现在换了个八十多的适配器没有遇到过这个问题了23333

安装依赖:python3 -m pip install -r requirements.txt

目前实现的功能

  • 查看本机的适配器:hciconfig

  • 扫描周围低功耗蓝牙设备:lescan

  • 连接到低功耗蓝牙设备:connect

  • 扫描连接设备的服务:services

  • 获取连接设备某服务的特征:characteristics

  • 读取某特征的值

  • 向某特征写入值(字符串)

  • 向某特征写入值(十六进制)

  • 方向键上下选择之前输入的命令

借助readline这个库,可以使用方向键的↑和↓来选择之前输过的命令

  • 监听特征的通知和指示

  • 调用bdaddr进行适配器地址的修改(重新拔插适配器生效)

ble-security-tool's People

Contributors

yichen115 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.