Scapy helpers to communicate with Bluetooth controllers
Project description
Scapy UsbBluetooth
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
225df73be344996a26ba9d34ec24e3642cce2d6f5729c12401484fb0518ef4cb
|
|
MD5 |
5dd11398c0d22f5469457835b685e726
|
|
BLAKE2b-256 |
3b8bb120f7a1aec1b40d6800c6db44c7778acb28b31361ac75ae63e4c9846d2b
|
Provenance
The following attestation bundles were made for scapy_usbbluetooth-0.0.2.tar.gz
:
Publisher:
build.yml
on antoniovazquezblanco/scapy-usbbluetooth
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
scapy_usbbluetooth-0.0.2.tar.gz
-
Subject digest:
225df73be344996a26ba9d34ec24e3642cce2d6f5729c12401484fb0518ef4cb
- Sigstore transparency entry: 184783090
- Sigstore integration time:
-
Permalink:
antoniovazquezblanco/scapy-usbbluetooth@34461b6c51e8a5a5d268e3b5b004a5bd838f54b9
-
Branch / Tag:
refs/tags/v0.0.2
- Owner: https://github.com/antoniovazquezblanco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
build.yml@34461b6c51e8a5a5d268e3b5b004a5bd838f54b9
-
Trigger Event:
push
-
Statement type:
File details
Details for the file scapy_usbbluetooth-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: scapy_usbbluetooth-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2cb2a6aa3e8bbaf197a2a46235b72a793bd910eda9b65e1165d35e0aa7fb3cc7
|
|
MD5 |
13ceca4b3a7924767e1cb552292ca3ad
|
|
BLAKE2b-256 |
aeaec0b507feaad174cab586dcf86056235ad7ea0ae623c374c6415bdc9248d2
|
Provenance
The following attestation bundles were made for scapy_usbbluetooth-0.0.2-py3-none-any.whl
:
Publisher:
build.yml
on antoniovazquezblanco/scapy-usbbluetooth
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
scapy_usbbluetooth-0.0.2-py3-none-any.whl
-
Subject digest:
2cb2a6aa3e8bbaf197a2a46235b72a793bd910eda9b65e1165d35e0aa7fb3cc7
- Sigstore transparency entry: 184783094
- Sigstore integration time:
-
Permalink:
antoniovazquezblanco/scapy-usbbluetooth@34461b6c51e8a5a5d268e3b5b004a5bd838f54b9
-
Branch / Tag:
refs/tags/v0.0.2
- Owner: https://github.com/antoniovazquezblanco
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
build.yml@34461b6c51e8a5a5d268e3b5b004a5bd838f54b9
-
Trigger Event:
push
-
Statement type: