Skip to content

Instantly share code, notes, and snippets.

@zvldz
zvldz / fw_mgl03_update.md
Last active September 24, 2022 23:47
Updating mgl03 gateway firmware from telnet
@zvldz
zvldz / 01_tuya_ota_url.md
Last active November 13, 2022 07:50
Retrieving the OTA URL for Tuya Zigbee devices

Retrieving the OTA URL for Tuya Zigbee devices

This example is for Ubuntu 20.4.3 x86_64. But should also work on other supported OS.

Used:

  • MITM proxy - Charles proxy (but it is probably possible to use another)
  • android emulator - Genymotion

Step 1: Installing the Charles proxy

@zvldz
zvldz / soft_hack.md
Last active April 18, 2024 00:46
soft_hack.md

Soft hack to open telnet

You need gateway 3(mgl03) connected to MiHome. And also ip and gateway token.

1 way (recommended)

Via XiaomiGateway3 component.

You must input in the 'Open Telnet command' field(as it is without changing anything):

{"method":"set_ip_info","params":{"ssid":"\"\"","pswd":"123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd"}}