97 Commits

Author SHA1 Message Date
Cossid
6ce9d7fd00 process_app - ignore tuya_mdev_test strings for class names, as they are not valid
pull_schema - use product key when firmware key is not present.
2025-12-13 14:00:29 -06:00
Cossid
2fbdfa9f13 Fix device name on multi-ota profile building. 2025-12-09 16:10:02 -06:00
Cossid
e217f7bd10 Add RTL8710BN support (#861)
* Add CloudCutter support for unpatched RTL8710BN devices, including all supplied dumps.

* Update profile-building to support RTL8710BN profile generation.

* Update documentation.
2025-12-08 20:59:40 -06:00
Cossid
eab30cb0d8 profile-building - process_app - SDK build at line can have a library name before, use a slightly more generic match. 2025-11-28 10:52:02 -06:00
Cossid
f6801d8e49 haxomatic - add RTL8720CF pattern match. 2025-11-26 15:24:24 -06:00
Cossid
524f48ab2f process_app - enhance version number matching for rtl8720cf.
Add user_param_key separation in rtl8720cf extract.
2025-11-25 19:30:06 -06:00
Cossid
b28723ae61 Add RTL8720CF support (#857)
* Initial RTL8720CF support

* Fix RTL8720CF_OTA file validation.

* be a bit more robust on chip string matching

* Really rough refactor of haxomatic for RTL8720CF, not complete.

* Update RTL8720CF 2.3.0 haxomatic hex match strings

* Remove length validation from authkey/uuid so it can work with both Tuya and CloudCutter generated keys.

* Fix bk7231 string detection
Add second RTL8720CF 2.3.0 profile

* Refactor haxomatic to be more modular and maintainable.

* haxomatic - minor cleanup

* profile-building - Pull PSK when pulling schema.

* Haxomatic - Search all binaries for patch patterns.
Update known RTL8720CF match pattern identifiers.

* Change network to custom 10.204.0.1/24 network (204 = 0xCC)
Send multiple DNS servers, which may help devices that hang after DHCP
Spend less time sending wifi connect requests so AP can start listening sooner.

* Update exploit for new offsets.

* Haxomatic - Add 1.0.x SDK

* Update haxomatic for newer found patterns.

* Minor tweaks

* Updates to profile-building

* Add storage parsing to extract_rtl8720cf

* Switch to bk7231tools to extract rtl8720cf storage to remove an unneeded dependency.

* remove debug code

* Add special case for sdk identification for single build missing standard string.

* Find swv before device_class, as we may want to search directly after it.

* Update comments, seek entire bin for storage.

* Add missing new address in profile.
Add ability to process inactive OTA app.

* Update documentation.

* fix typo.

* Fix a type in beken extract.

* Add haxomatic pattern for oddball BK7231N 2.3.1 SDK.

* Haxomatic - Add RTL8720CF 2.3.1 SDK pattern.

* Fix copy/paste typo

* profile-building - proceess_app - add more device class match strings.

* one more

* profile-building - better log SDK data

* Add a special thanks section.

* fix typo

* Clean up documentation.

* documentation - use numbered lists.

* process_app - add another device class identifier.
2025-11-25 17:18:58 -06:00
Cossid
54340050cf Add mcu_software_version fallback when version is not in storage. 2025-06-09 09:39:36 -05:00
Cossid
5c979eeb5e profile-building process_app - Don't allow spaces in device class. 2025-04-29 13:45:42 -05:00
Cossid
ad36091ff5 Fix check_upgrade file output. 2025-02-16 08:18:30 -06:00
Cossid
31c55f5cba profile-building - tuya_api_connection - Remove unused PSK code, update from socket to http request library 2025-01-12 12:18:39 -06:00
Cossid
32e7a8c3b3 profile-building - Tuya API connection - declare response_body_json before json.loads for better error handling. 2025-01-08 08:48:47 -06:00
Cossid
1f8cc171fe profile-building - Use factory_pin a bit more appropriately. 2025-01-08 08:11:47 -06:00
Cossid
e0639e6dfb profile-building: Support MCU version and upgrade checks. 2024-12-29 20:25:03 -06:00
Cossid
8b8604b780 Minor adjustment to token directions 2024-12-11 13:18:45 -06:00
Cossid
c7b166978d profile-building extract - add try/catch to dissect. 2024-12-01 15:20:10 -06:00
Cossid
2fda4c394c pull_schema - use uuid instead of chip, as chip is not generated for patched devices. 2024-11-24 22:34:52 -06:00
Cossid
6ee1490d1c profile-building - Copy downloaded schema/schema_id to parent directory for profile regeneration. 2024-11-21 17:00:50 -06:00
Cossid
9753d1e14b profile-building - Allow further processing/parsing of patched devices. 2024-10-24 10:19:09 -05:00
Cossid
13192f210d Profile builder - Add TuyaMCU baud to device profile. 2024-10-18 09:34:53 -05:00
Cossid
a9ff45a6ca Update pull_schema with extra fields useful for TuyaMCU devices. 2024-10-16 20:56:29 -05:00
Cossid
f1029fe519 profile-building add override files for decrypted app bin and ap_ssid 2024-08-13 17:06:18 -05:00
Cossid
0727b81628 Update profile-building dependencies 2024-03-27 09:35:35 -05:00
Cossid
fa93479b69 Remove unneeded sslpsk3 from profile building, use pycryptodome instead of pycryptodomex. 2024-02-10 13:00:20 -06:00
Cossid
278afa9c69 Add dltj icon identifier to profile builder. 2024-02-06 14:44:42 -06:00
Cossid
14c2cc387b Profile building - process_app - Don't allow spaces in device class. 2023-11-29 19:12:10 -06:00
Cossid
b874566333 Adapt process_app for a new device class location 2023-11-21 19:43:09 -06:00
Cossid
43a7ffc21c Update to sslpsk3 for compatibility with recent python releases. This bumps required python version to 3.8 if run outside the venv 2023-11-18 13:21:26 -06:00
Cossid
1839d31caf Haxomatic - Add a pattern for patched BK7231N 2.3.1 2023-11-16 11:22:49 -06:00
Cossid
cdbab01242 Haxomatic - Add new pattern for bk7231t_nobt special build. 2023-09-11 08:12:25 -05:00
Cossid
572d2786f3 Profile building - Better support reconstructing profiles with existing storage data. 2023-08-15 09:31:42 -05:00
Cossid
84c8fec7ac Update profile-building readme to include notes about Smart Life app requirements. 2023-04-16 10:18:29 -05:00
Cossid
d2acb64258 haxomatic - Add detection/exit for SDK 3+ which appears to be patched. 2023-03-28 11:42:06 -05:00
Cossid
341e3b2e2a Haxomatic - Split 8710_2M into 2 checks, one for Baseline 30.04 and one for 30.05/30.06 2023-03-20 18:56:38 -05:00
Cossid
6a0551ffb9 Profile Building - Refactor check for if schema exists to base script, so specific script always acts if run.
Add an optional script to check if a firmware upgrade exists (requires pull_schema to have been run).
2023-03-19 18:05:10 -05:00
Cossid
f3646adc4f fix minor typo 2023-03-01 23:07:57 -06:00
Cossid
e744cf59ba Update instructions for obtaining a token using the Smart Life app. 2023-03-01 23:07:36 -06:00
Cossid
887b94be22 Reduce patch detection string now that a second case has been found. 2023-03-01 13:29:18 -06:00
Cossid
1081eeadc5 Add gw_bi.fac_pin as fallback for product_key. 2023-02-26 21:38:31 -06:00
Cossid
0f4ef6290a Clean up profile building readme. 2023-02-20 09:30:03 -06:00
Cossid
d030b39f80 Add oddball sdk string, update comments with apparent distinguisher (CAD) 2023-02-18 17:51:51 -06:00
Cossid
83fac62756 Add instructions for installing profile builder requirements.
Update to bk7231tools with cli extras.
2023-02-09 08:51:05 -06:00
Cossid
d7951bba39 shell truth expression fixes. 2023-02-04 16:14:55 -06:00
Cossid
664cb1e463 Update profile building README.md
Break file naming requirements into a more readable list.
2023-01-29 09:15:29 -06:00
Cossid
b8fc5d7b72 profile-building: haxomatic.py - Add check for known-patched binaries. 2023-01-11 12:40:31 -06:00
Cossid
de9fd2641c profile-building:
- haxomatic.py - Add support for T SDK 2.3.2, add address_ssid_padding for custom offsets as we now need two different values, setting prior patterns to the appropraite 4.
- generate_profile_classic.py - Add processing of address_ssid_padding.
2023-01-10 15:51:17 -06:00
Cossid
1120494047 profile-builder - haxomatic - Add a new BK7231N 2.3.1 SDK string. 2023-01-03 11:53:38 -06:00
Cossid
c4f2c6fd28 profile-building - haxomatic - Add another SDK identifier for an older version of 2.3.3 2023-01-01 13:22:33 -06:00
Cossid
577bbfc713 profile-building - haxomatic - Add a check to verify app is properly decrypted. 2022-12-28 20:02:50 -06:00
Cossid
a15767f3f3 build_profile - Correct filename check. 2022-12-26 15:52:47 -06:00