tuya-cloudcutter / lightleak

Firmware version-agnostic PoC exploit for smart devices
47 stars 10 forks source link

Add support for esp32-s2 #6

Open remlei opened 1 year ago

remlei commented 1 year ago

It would be nice if you can add support to it since it was a lot cheaper than esp8266 and esp32, at least here in my place.

Its funny that esp32-s2 is cheaper now compared to back then with esp8266 which only cost 2bucks, now it cost around 8bucks and esp32-s2 only cost around 2bucks.

kuba2k2 commented 1 year ago

Cloudcutter Lightleak (and the entire Cloudcutter actually) is dedicated to Beken chips, and most likely only possible to run on Beken chips. While ESP8266 support would (likely) technically be possible (provided they use a vulnerable version of the Tuya SDK), no work has been done to support that yet.

remlei commented 1 year ago

Im talking avout the custom ap not the chip inside the tuya device.

blakadder commented 1 year ago

where are you buying esp32-s2 boards for 2$?

kuba2k2 commented 1 year ago

Im talking avout the custom ap not the chip inside the tuya device.

Right. Sorry for my misunderstanding.

It should be possible to just modify platformio.ini to include an ESP32-S2 board, and maybe adapt the code a bit (especially the part with event IDs).

Wolfieeewolf commented 1 year ago

Cloudcutter Lightleak (and the entire Cloudcutter actually) is dedicated to Beken chips, and most likely only possible to run on Beken chips. While ESP8266 support would (likely) technically be possible (provided they use a vulnerable version of the Tuya SDK), no work has been done to support that yet.

Just hijacking this comment. I have been able to connect and link to a TYWE2L chip with success it appears it uploads to the chip but unfortunatally i'm unable to read the flash file on there. Not sure how you would over come this but it appears there is possiblly some hope of uploading some kind of patch workaround to the chip.

Thought i'd share. haven't tried all the profiles on the cloudcutter app so might get lucky. wil let you know if I have success with any of my devices.