GithubHelp home page GithubHelp logo

Comments (20)

tjclement avatar tjclement commented on September 24, 2024 1

Note that if you just want to find out if the device is vulnerable so you can stock up on a bunch of them, you can check that wirelessly: https://github.com/khalednassar/tuya-cloudcutter#testing-if-a-device-is-exploitable

from tuya-cloudcutter.

mattvirus avatar mattvirus commented on September 24, 2024 1

also for some chips i've had success by getting everything connected, running the dump tool, and then disconnecting/reconnecting VCC from the programmer pin. Forces the chip to reset without resetting the programmer itself, and the dumping software (that is already running) is able to interface with the beken chip as it resets.

from tuya-cloudcutter.

digiblur avatar digiblur commented on September 24, 2024

Those are Beken chips so yes they would be for this project. You would need to solder to the chip and dump the firmware.

from tuya-cloudcutter.

AndyRPH avatar AndyRPH commented on September 24, 2024

Ah rats, hoping there was an OTA firmware dump via this exploit.

from tuya-cloudcutter.

digiblur avatar digiblur commented on September 24, 2024

Ah rats, hoping there was an OTA firmware dump via this exploit.

at this point you'll have to wait for someone else to dump that switch then.

from tuya-cloudcutter.

AndyRPH avatar AndyRPH commented on September 24, 2024

Good to know! Is it not possible to get a firmware dump using the exploit, or just not a priority to write a dump tool that uses the exploit?

from tuya-cloudcutter.

tony-fav avatar tony-fav commented on September 24, 2024

The exploit depends upon the firmware dump, not the other way around as you suggest.

from tuya-cloudcutter.

AndyRPH avatar AndyRPH commented on September 24, 2024

Alright you've motivated me, I may give a dumping the firmware a shot this weekend.

from tuya-cloudcutter.

AndyRPH avatar AndyRPH commented on September 24, 2024

I've got it apart and soldered leads to the WB2S pins needed. How do I build the firmware dump tool for terminal use on osx? I've got an ft232 USB adapter I've used for tasmota on other things.

from tuya-cloudcutter.

notkmhn avatar notkmhn commented on September 24, 2024

@AndyRPH sorry for the late response. For the firmware dump tool, you can use https://github.com/khalednassar/bk7231tools - just make sure you have Python 3.7 + installed and pipenv installed ( https://pipenv.pypa.io/en/latest/ ) then follow the README.

from tuya-cloudcutter.

AndyRPH avatar AndyRPH commented on September 24, 2024

No luck just get a timeout error. "TimeoutError: Timed out attempting to link with chip" which I'm hoping means I've got the tool running correctly, and this device just can't be read while the WB2S chip is still soldered into the rest of the device?

from tuya-cloudcutter.

notkmhn avatar notkmhn commented on September 24, 2024

For most devices it's possible, there's might be some interference from other components but usually it works. What you can do is run the tool, and connect the CEN pin to GND briefly (tap them together), which should get it running. Otherwise, just power off the module on and off a few times while the tool is running, but don't power off your FT232.

It's a bit finicky, but give it a few power cycles and it should work.

from tuya-cloudcutter.

btsimonh avatar btsimonh commented on September 24, 2024

yep, they can be a right royal pain. Triple check everything and try again. also can be worth trying a different adaptor. (I have one which is much less reliable than my others).

from tuya-cloudcutter.

kwiksilver avatar kwiksilver commented on September 24, 2024

I've had success dumping with FT232RL and CP2012 based dongles. The 340C based ones were not working for me at all. It may come down to timing but the FT232RL worked every time for me.

from tuya-cloudcutter.

AndyRPH avatar AndyRPH commented on September 24, 2024

Pulling CEN to GND for a moment didn't seem to have an effect. Hmm, finicky indeed: power cycling it once connected while the program is running gives a different error:
termios.error: (6, 'Device not configured')

Is that a sign it was communicating correctly?

from tuya-cloudcutter.

tjclement avatar tjclement commented on September 24, 2024

@AndyRPH be sure to only power cycle the Tuya device, and leave the USB uart converter connected. The error you're getting sounds like the converter is being disconnected along with the Tuya device

from tuya-cloudcutter.

AndyRPH avatar AndyRPH commented on September 24, 2024

Yeah, I'm keeping the FT232 plugged in and just disconnecting and reconnecting the VCC pin.

from tuya-cloudcutter.

tony-fav avatar tony-fav commented on September 24, 2024

Make sure you have connected TX1 on chip to RX on USB adapter and RX1 on chip to TX on USB adapter.

from tuya-cloudcutter.

btsimonh avatar btsimonh commented on September 24, 2024

If you have a second adaptor, and access to the second serial port (tx only) , it's worth looking at the boot log.

from tuya-cloudcutter.

Cossid avatar Cossid commented on September 24, 2024

Closing stale ticket, instructions have changed drastically since this ticket was opened.

from tuya-cloudcutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.