This directory contains tooling useful for developers
This tool parses PCAP file and tries to decrypt the traffic using the given tokens. Requires typer, dpkt, and rich. Token option can be used multiple times. All tokens are tested for decryption until decryption succeeds or there are no tokens left to try.
python pcap_parser.py <pcap file> --token <token> [--token <token>]
This tool generates some boilerplate code for adding support for MIoT devices
- If you know the model, use
python miottemplate.py download <model>
to download the description file.
- This will download the model<->urn mapping file from http://miot-spec.org/miot-spec-v2/instances?status=all and store it locally
- If you know the urn, you can use
--urn
to avoid downloading the mapping file (should not be necessary)
python miottemplate.py print <description file>.json
prints out the siid/piid/aiid information from the spec file