Skip to main content

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.


Use the package manager pip to install broadlinkhacktools.

pip install broadlinkhacktools


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)

# 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.


Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.



Project details

Download files

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

Files for broadlinkhacktools, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size broadlinkhacktools-0.0.1-py3-none-any.whl (9.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size broadlinkhacktools-0.0.1.tar.gz (5.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page