Comments (2)
We've tried that path to no avail. Surprisingly, we've found that there are many bootloader variations from the different device models from even the same manufacturer are not the same. Maybe the first ~600ish bytes are similar, but other than that there's too much disparity to do anything useful. And in order for a ret2bootloader style chain to work, we'd need a lot more than a handful of instructions to match because no matter the chain it'll have to do a lot more work than the current chain does: resetting the AP listener for more payloads, maybe carving out a section of memory to write instructions, etc.
There are also other issues with a payload of that style, since the first return must have an address where the 2nd MSB (little endian) has a value other than 0x00, but the bootloader is loaded in RAM at 0 <= max bootloader address < 0x10000
.
EDIT: the above doesn't really apply, old notes.
That being said, it's only more useful that more pairs of eyes are looking at it so please go ahead and check it out. It'd sort out the whole issue of having to do this per device model/make.
https://github.com/khalednassar/bk7231tools can dump and dissect a full flash image including the bootloader. Only decryption isn't supported due to lack of time to RE and we decided not to provide the encrypt
binary as part of the repo (for specific reasons).
Decryption is pretty much the same thing you do, the only difference is that the start address given to the encrypt
binary is 0 instead of 10000.
from tuya-cloudcutter.
I have to agree though that this is super weird and more likely are probably only a some different bootloaders out there and we may have seen all of them already. It may make a lot of sense to try and pool these together from the different devices and see if there may be a very small number of different chains which can be tried on a device blindly in a reasonably short period of time.
from tuya-cloudcutter.
Related Issues (20)
- I used wrong profile, can i flash with another Firmware HOT 1
- Arlec EL450HA Batten Light HOT 1
- Smart Switch Voltage & Energy Monitor | Earth Leakage | 63A HOT 1
- QS-WIFI-S10-C04 Curtain module available on CBLC9 HOT 8
- Curtain module QS-WIFI-C01 HOT 2
- XS-A18 Smart Plug dump HOT 1
- Feit OM60/RGBW/CA/AG/3 v1.5.10 HOT 1
- Mirabella Genio - Downlight - I004544 Downlight Dump HOT 1
- Device Dump - NOVOSTELLA Permanent Outdoor Lights, Smart RainbowColor RGB IC Light, 100ft (50x2) with 80 LED HOT 10
- Profile update needed For two different feit electric 2019 smart bulbs. HOT 12
- Device Dump - Arlec PC191HA Series 2 with BK7231N HOT 1
- Flashing doesn't continue after "failed to open pidfile /src/dnsmasq.pid: Permission denied" error HOT 2
- Device Dump - Arlec Grid Connect LED Globe 830lm E27 (GLD322HA) HOT 1
- [!] The profile you selected did not result in a successful exploit EARU EAWCBT-P HOT 1
- TAXNELE-TVPS1-63T HOT 1
- RTNETLINK answers: Operation not permitted HOT 1
- Device Dump HOT 2
- Using Tuya cloud cutter for 1.3.16 firmware version? HOT 2
- Need update for Z2-N-V1.1 module running v1.0.4 HOT 1
- New Device PD Surge Protector (Power Strip) 16A Model SM-306U-PA85 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tuya-cloudcutter.