Tools for hacking the Broadlink protocol.
Project description
Broadlink Hacktools
Broadlink Hacktools is a Python module for decrypting, filtering and analyzing packets captured from Broadlink devices to better integrate them with home automation platforms.
- This is not an official Broadlink application.
- For now, only universal remote devices have are supported.
Instalation
Use the package manager pip to install broadlinkhacktools.
pip install broadlinkhacktools
Usage
from broadlinkhacktools import PacketDecryptor, PacketPrinter, PersistenceHandler
from broadlinkhacktools.protocol.const import DEFAULT_IV, DEFAULT_KEY
# Load packets from binary files.
src_folder = 'some_folder'
packets = PersistenceHandler.load_packets(src_folder)
# Decrypt packets using default key.
decryptor = PacketDecryptor(DEFAULT_KEY, DEFAULT_IV)
decryptor.decrypt(packets)
# Print packets to a file.
printer = PacketPrinter()
with open('packets.txt', 'w+') as file:
for packet in packets:
printer.print(packet, file=file)
For more examples, see examples folder.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
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 broadlinkhacktools-0.0.1.tar.gz
.
File metadata
- Download URL: broadlinkhacktools-0.0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc267724634dd0072aaf0f5f8ec86d79d88c44aa2e7087e1c2763fbc6422b37f |
|
MD5 | 7a1fa70f9e6807b77104f1a3c94b7a7c |
|
BLAKE2b-256 | 693d7264ce8d0592f7ed969855b9fd692c548a95025229e037fbd7acffdafaee |
File details
Details for the file broadlinkhacktools-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: broadlinkhacktools-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e3e5c6d0b0c91e0cfec970db099d2ccaf592b564dcee49a76c730a80400783 |
|
MD5 | 30d81f6710c617f9e54e0e0f728f2f7d |
|
BLAKE2b-256 | ee4375a3307c50e6e333cfc7e91d1ac2a6277832a1c0842d7a1a2d2b5a5eee96 |