PiotrMachowski / Xiaomi-cloud-tokens-extractor

This tool/script retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices.
MIT License
3.23k stars 333 forks source link

Add BLE beaconkey (a bit more accurate approach) #17

Closed vevsvevs closed 3 years ago

vevsvevs commented 3 years ago

Like the https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/pull/16 but with some auxiliary checks (no answer/wrong/empty data skipping). Windows binary file is also here.

PiotrMachowski commented 3 years ago

I have updated the script in a different way to reuse some code

vevsvevs commented 3 years ago

Nice! But why don't you want to skip empty data (not every device has IP or TOKEN), and check whether the second API request result is not Null?

PiotrMachowski commented 3 years ago

I have added checks to skip empty data here. I will add an additional check for ble API request (EDIT: added)