INTRO
As of 2025/08/22, this router costs between ten and thirty yuan, which makes it an excellent cheap pickup for flashing into a soft router.
PREPARATION
Firmware you need to download: 123684
Tools you need: termius, winSCP
Flashing the modified official firmware
- Open the MIWIFI admin panel and manually upload the upgrade firmware
miwifi_r3a_all_da132_2.18.40.binon the system maintenance page - Wait for the upgrade to finish.
Checking your Windows version
- Windows 10, at least 2004, build 19041 or later.
- Windows 11
Enabling the Windows Features related to WSL
Enable Windows Subsystem Linux and Virtual Machine Platform, then restart Windows.
- Run PowerShell as administrator.
- Enter
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestartYou’ll get the following output
部署映像服务和管理工具版本: 10.0.26100.1150
映像版本: 10.0.26100.4652
启用一个或多个功能[==========================100.0%==========================]操作成功完成。Next
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestartPath :Online : TrueRestartNeeded : FalseYou need to restart Windows.
Installing WSL
Enter
wsl --installWhat follows is just a normal Ubuntu setup: set up the account and password. It’s normal for the password not to be displayed.
正在下载: Ubuntu正在安装: Ubuntu已成功安装分发。可以通过 “wsl.exe -d Ubuntu” 启动它正在启动 Ubuntu...Provisioning the new WSL instance UbuntuThis might take a while...Create a default Unix user account: xiNew password:Retype new password:passwd: password updated successfullyTo run a command as administrator (user "root"), use "sudo <command>".See "man sudo_root" for details.
xi@SKYCHOW:/mnt/c/Users/33960$The Ubuntu environment is now deployed successfully.
Deploying the unlock tool
- In File Explorer, enter
\\wsl.localhost\Ubuntuto open the Ubuntu file manager, then open home// - Move
OpenWRTInvasion-0.0.10.tar.gzandsetup_openwrt_invasion.shinto that directory. - Use the
cd /home/xicommand to switch to that directory (change xi to your own username) - Grant execute permission
sudo chmod +x setup_openwrt_invasion.sh- Enter the following command
cd OpenWRTInvasion-0.0.10- Change the repository address
nano script.shSince the original mirror is dead, we need to edit the download section to the following
download_file_from_github() { # Rationale for using --insecure: https://github.com/acecilia/OpenWRTInvasion/issues/31#issuecomment-690755250 curl -L "https://gitee.com/juserzhang/OpenWRTInvasion/tree/master/script_tools$1" --insecure --output "$2"}Then press ctrl x to exit
- Run
python3 remote_command_execution_vulnerability.pyThe following output appears
Router IP address [press enter for using the default 'miwifi.com']: 192.168.31.1Enter router admin password: 12345678Just enter your IP and admin password Next you’ll see
There two options to provide the files needed for invasion: 1. Use a local TCP file server runing on random port to provide files in local directory `script_tools`. 2. Download needed files from remote github repository. (choose this option only if github is accessable inside router device.)Which option do you prefer? (default: 1)We type 2 and press Enter to run it
****************router_ip_address: 192.168.31.1stok: a80675f22f75d3281445ea2c2638f97efile provider: remote github repository****************start uploading config file...start exec command...done! Now you can connect to the router using several options: (user: root, password: root)* telnet 192.168.31.1* ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc -o UserKnownHostsFile=/dev/null [email protected]* ftp: using a program like cyberduckIf you see the output above, congratulations — this part of the process succeeded.
Flashing breed
- Open termius and connect to your router over telnet; both the username and password are root
- Check and back up the partitions
cat /proc/mtdBack up the partitions, paying attention to the mtd partitions corresponding to factory and BootLoader — the ones you need to back up are factory and BootLoader
dd if=/dev/mtd4 of=/tmp/eeprom.bindd if=/dev/mtd1 of=/tmp/Bootloader.bin- Open WinSCP, select FTP as the protocol, set the host name to the router’s IP, and use root for both the username and password.
- Find the tmp directory, copy
Bootloader.binandeeprom.binto your PC, and copy breed into tmp - Go back to the terminal, cd into the tmp directory, and start flashing breed
mtd write breed.bin BootloaderFlashing openwrt
- Make sure your computer is connected to the router’s LAN, then unplug the router’s power. Hold down the reset button, plug the power back in, and release once the indicator light blinks.
- Enter
192.168.1.1to get into the breed admin panel. Check the MAC address here first; if the MAC address is abnormal, flash the eeprom you backed up earlier. - Select openwrt as the firmware and flash it. Here we’re using the openwrt firmware compiled by bilibili@ 小渔学长.
Success
Wait a moment, enter 10.32.0.1 with the password admin, get into the openwrt admin panel — done.
Special Thanks
@ 没了钱咋办 @Lonny_Lee @ 正在摸鱼的 Liaronce @acecilia @hackpascal @ 小渔学长
This is Chongxi, looking forward to seeing you next time.
Thanks for watching.
—Chongxi 2025-08-22
