GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - usbbluetooth/scapy-usbbluetooth: Scapy sockets to communicate with Bluetooth controllers

BranchesTags
Open more actions menu

Latest commit

 

History

169 Commits
169 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
examples
examples
 
 
src/scapy_usbbluetooth
src/scapy_usbbluetooth
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

Scapy UsbBluetooth

Build CodeQL PyPI Python versions Snyk package health OpenSSF Scorecard License: GPL v3

This package contains code to allow Scapy sockets to communicate with Bluetooth controllers using UsbBluetooth for Python.

For general documentation about the project, please visit usbbluetooth.github.io.

For a barebones Python version of this library, check out UsbBluetooth for Python.

For other programming languages you may visit UsbBluetooth for C or UsbBluetooth for C#.

Installation

Just use pip :)

pip install scapy-usbbluetooth

Usage

See the examples folder for sample code.

A short illustrative sample usage can be as follows:

import usbbluetooth
from scapy_usbbluetooth import UsbBluetoothSocket
from scapy.layers.bluetooth import HCI_Hdr, HCI_Command_Hdr, HCI_Cmd_Reset


# Get a list of all the available devices
devices = usbbluetooth.list_devices()
for dev in devices:
    print(dev)

# Open a socket using a device
socket = UsbBluetoothSocket(devices[0])

# Create a reset packet
pkt = HCI_Hdr() / HCI_Command_Hdr() / HCI_Cmd_Reset()

# Send a packet to the controller and await a response
response = socket.sr1(pkt)
response.show()

Plaform quirks

This package has some requirements to work because of different platform particularities. To make sure the package works, please, see https://usbbluetooth.github.io/quirks/.

About

Scapy sockets to communicate with Bluetooth controllers

Topics

bluetoothbluetooth-lebluetooth-low-energypacket-capturepacket-craftingpacket-radiopcappythonscapysecuritysecurity-tools

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

25 stars

Watchers

1 watching

Forks

5 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.