Skip to main content

Scapy helpers to communicate with Bluetooth controllers

Project description

Scapy UsbBluetooth

Build PyPI scapy-usbbluetooth License: GPL v3

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

Installation

Just use pip :)

pip install scapy-usbbluetooth

Usage

import usbbluetooth
from scapy_usbbluetooth import UsbBluetoothSocket


# 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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scapy_usbbluetooth-0.0.2.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

scapy_usbbluetooth-0.0.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file scapy_usbbluetooth-0.0.2.tar.gz.

File metadata

  • Download URL: scapy_usbbluetooth-0.0.2.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for scapy_usbbluetooth-0.0.2.tar.gz
Algorithm Hash digest
SHA256 225df73be344996a26ba9d34ec24e3642cce2d6f5729c12401484fb0518ef4cb
MD5 5dd11398c0d22f5469457835b685e726
BLAKE2b-256 3b8bb120f7a1aec1b40d6800c6db44c7778acb28b31361ac75ae63e4c9846d2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for scapy_usbbluetooth-0.0.2.tar.gz:

Publisher: build.yml on antoniovazquezblanco/scapy-usbbluetooth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scapy_usbbluetooth-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for scapy_usbbluetooth-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2cb2a6aa3e8bbaf197a2a46235b72a793bd910eda9b65e1165d35e0aa7fb3cc7
MD5 13ceca4b3a7924767e1cb552292ca3ad
BLAKE2b-256 aeaec0b507feaad174cab586dcf86056235ad7ea0ae623c374c6415bdc9248d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for scapy_usbbluetooth-0.0.2-py3-none-any.whl:

Publisher: build.yml on antoniovazquezblanco/scapy-usbbluetooth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page