惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家
Recent Announcements
Recent Announcements
B
Blog
D
Docker
V
V2EX
GbyAI
GbyAI
L
LangChain Blog
博客园 - Franky
U
Unit 42
T
The Blog of Author Tim Ferriss
A
About on SuperTechFans
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Vercel News
Vercel News
博客园_首页
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
Y
Y Combinator Blog
量子位
Blog — PlanetScale
Blog — PlanetScale
罗磊的独立博客

Chongxiの咖啡屋

Google相册迁移到iCloud分享 - Chongxiの咖啡屋 讲讲「万物皆虚,万事皆允」 - Chongxiの咖啡屋 舞萌DX 落雪查分器使用指南 - Chongxiの咖啡屋 现代人的刻舟求剑 - Chongxiの咖啡屋 舞萌DX错误码0010深度解析及处理方法 - Chongxiの咖啡屋 做了一个明日方舟-奇象巡展的像素画拼豆工具 - Chongxiの咖啡屋 舞萌DX国服封禁机制详解 - Chongxiの咖啡屋 舞萌开机网络自检底层技术说明,断网如何排查讲解 - Chongxiの咖啡屋 舞萌机台开机初始化进程详解 - Chongxiの咖啡屋 为什么喜欢音乐 反而不该去学音乐? - Chongxiの咖啡屋 从装逼到嘉豪:中国互联网的精神胜利进化史 - Chongxiの咖啡屋 游蒋介石故居:奉化溪口 - Chongxiの咖啡屋 钢铁雄心4 steam正版导入全DLC补丁 - Chongxiの咖啡屋 漫漫长夜全地图及介绍 - Chongxiの咖啡屋 记一次无需实名换绑米哈游通行证手机号 - Chongxiの咖啡屋 邮储银行万事达借记卡全面指南 - Chongxiの咖啡屋 x402:一个来自27年前的状态码能救活被ai榨干的「人类网站」吗 - Chongxiの咖啡屋 舞萌国人口大普查:全服玩家数据分析 - Chongxiの咖啡屋 家中网络「捉奸」记 - Chongxiの咖啡屋 中国移动PT927G光猫折腾指南:破解超级密码改桥接 - Chongxiの咖啡屋 最好用的Android邮件客户端推荐 - Chongxiの咖啡屋 如何验证对方是不是Chongxi我本人 - Chongxiの咖啡屋 三星S20系列刷入移植OneUI8流程 - Chongxiの咖啡屋 使用obisidian和git插件来完美管理静态博客 - Chongxiの咖啡屋 玩客云拆机教程 - Chongxiの咖啡屋 母语级英语的本质,不是英语 - Chongxiの咖啡屋 我用过最好用的Android桌面(启动器) - Chongxiの咖啡屋 1. 区块链基本知识 - Chongxiの咖啡屋 b站创作激励提现几乎无门槛了 - Chongxiの咖啡屋 速报:APKPure 版 Telegram 被植入恶意后门 - Chongxiの咖啡屋
小米路由器3a刷入openWRT - Chongxiの咖啡屋
Chongxi · 2025-08-22 · via Chongxiの咖啡屋

INTRO#

目前 2025/08/22,这款路由器价格在十元到三十元之间,淘来刷软路由非常合适。

PREPARATION#

需要下载的固件 :123684

需要的工具:termius,winSCP

刷入官改固件#

  1. 打开 MIWIFI 后台,在系统维护页面手动上传升级固件miwifi_r3a_all_da132_2.18.40.bin
  2. 等待升级完成。

确认 Windows 版本#

  • Windows 10 至少 2004,内部版本至少 19041。
  • Windows 11

开启与 WSL 相关的 Windows Features#

开启 Windows Subsystem Linux 和 Virtual Machine Platform 并重启 Windows。

  1. 以管理员运行 PowerShell。
  2. 输入

PRTCL // BASH

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

您会得到如下输出

PRTCL // BASH

部署映像服务和管理工具

版本: 10.0.26100.1150

映像版本: 10.0.26100.4652

启用一个或多个功能

[==========================100.0%==========================]

操作成功完成。

接下来

PRTCL // BASH

Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart

PRTCL // BASH

Path :

Online : True

RestartNeeded : False

您需要重启 Windows。

安装 WSL#

输入

PRTCL // BASH

wsl --install

接下来就像正常 Ubuntu 设定一样,设置账户和密码,密码不显示是正常的。

PRTCL // BASH

正在下载: Ubuntu

正在安装: Ubuntu

已成功安装分发。可以通过 “wsl.exe -d Ubuntu” 启动它

正在启动 Ubuntu...

Provisioning the new WSL instance Ubuntu

This might take a while...

Create a default Unix user account: xi

New password:

Retype new password:

passwd: password updated successfully

To run a command as administrator (user "root"), use "sudo <command>".

See "man sudo_root" for details.

xi@SKYCHOW:/mnt/c/Users/33960$

Ubuntu 环境即部署成功

部署解锁工具#

  1. 在资源管理器中输入 \\wsl.localhost\Ubuntu 进入 Ubuntu 文件管理,打开 home/< 这里的文件夹名称为您的用户名 >/
  2. OpenWRTInvasion-0.0.10.tar.gzsetup_openwrt_invasion.sh移动到该目录。
  3. 使用cd /home/xi命令,切换到该目录(自行更改 xi 为您的用户名)
  4. 赋予执行权限

PRTCL // BASH

sudo chmod +x setup_openwrt_invasion.sh

  1. 输入以下命令

PRTCL // BASH

cd OpenWRTInvasion-0.0.10

  1. 更改库地址

PRTCL // BASH

nano script.sh

由于原镜像失效,我们需要编辑 download 部分为如下内容

PRTCL // BASH

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"

}

然后ctrl x退出

  1. 运行

PRTCL // BASH

python3 remote_command_execution_vulnerability.py

出现如下输出

PRTCL // BASH

Router IP address [press enter for using the default 'miwifi.com']: 192.168.31.1

Enter router admin password: 12345678

输入您的 IP 和后台密码即可 接下来会出现

PRTCL // BASH

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)

我们输入 2,回车即可运行

PRTCL // BASH

****************

router_ip_address: 192.168.31.1

stok: a80675f22f75d3281445ea2c2638f97e

file 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 cyberduck

出现如上输出,那么恭喜您,这部分步骤成功。

刷入 breed#

  1. 打开 termius,通过 telnet 连接您的路由器,用户和密码均为 root
  2. 查看并备份分区

PRTCL // BASH

cat /proc/mtd

备份分区,留意 factory 跟 BootLoader 对应的 mtd 分区,需要备份的是 factory 和 BootLoader

PRTCL // BASH

dd if=/dev/mtd4 of=/tmp/eeprom.bin

dd if=/dev/mtd1 of=/tmp/Bootloader.bin

  1. 打开 WinSCP,协议选择 FTP,主机名为路由器 IP,密码和用户名为 root。
  2. 找到 tmp 目录,将Bootloader.bineeprom.bin复制到 PC 上。并把 breed 复制进 tmp
  3. 回到终端,cd 进 tmp 目录,开始刷入 breed

PRTCL // BASH

mtd write breed.bin Bootloader

刷入 openwrt#

  1. 确保电脑连接了路由器 LAN,拔掉路由器电源。按住复位键,再插入电源,等待指示灯闪烁后,松手。
  2. 输入192.168.1.1进入 breed 后台,这里先查看 mac,若 mac 地址不正常,刷入先前备份的 eeprom。
  3. 固件选择 openwrt,刷入。这里我们使用的是 bilibili@ 小渔学长编译的 openwrt 固件。

成功#

等待片刻,输入 10.32.0.1,密码 admin,进入 openwrt 后台,成功。

特别鸣谢#

@ 没了钱咋办 @Lonny_Lee @ 正在摸鱼的 Liaronce @acecilia @hackpascal @ 小渔学长

这里是 Chongxi,期待与您的下一次见面。

Thanks for watching.

—Chongxi 2025-08-22