Skip to content

Instantly share code, notes, and snippets.

View OPerepadia's full-sized avatar

Oleksandr Perepadia OPerepadia

View GitHub Profile
@OPerepadia
OPerepadia / xiaomi-enable-mesh-telnet.py
Last active September 6, 2023 06:39 — forked from jmceleney/xiaomi-enable-mesh-telnet.py
Python3 file that enables netmode4 on a Xiaomi RB01 AX3200 router
import ssl
import socket
# This script simply replays one side of an intercepted conversation between two Xiaomi
# RB01 (International) AX3200 routers negotiating meshing.
# In effect the script poses as a mesh slave, which causes the mesh master to enable netmode4.
# Enabling netmode is needed as one step in unlocking the router and flashing OpenWrt.
# The router should already have been taken through basic set-up before running this script.
# Netmode4 can be confirmed with curl by requesting the following URL, where ${token} is the "stok"
# variable from your admin session: