2024-06-18 19:13:02 +08:00
|
|
|
|
# Patch MikroTik RouterOS [[English](README.md)]
|
2024-06-18 17:22:20 +08:00
|
|
|
|
|
2024-06-18 17:27:23 +08:00
|
|
|
|
### [MikroTik RouterOS 授权签名验证分析](https://blog.csdn.net/chivalrys/article/details/139770711)
|
|
|
|
|
|
2024-06-18 17:22:20 +08:00
|
|
|
|
### 下载 [最新](https://github.com/elseif/MikroTikPatch/releases/latest) 的iso文件安装RouterOS.
|
2024-06-21 04:37:03 +08:00
|
|
|
|
### CHR镜像文件同时支持BIOS和UEFI启动模式
|
2024-07-02 16:38:29 +08:00
|
|
|
|
### 支持在线升级
|
2024-06-18 17:22:20 +08:00
|
|
|
|
|
2024-07-15 12:46:45 +08:00
|
|
|
|

|
|
|
|
|

|
2024-06-18 17:22:20 +08:00
|
|
|
|
|
2024-06-30 21:17:01 +08:00
|
|
|
|
### x86模式授权许可
|
2024-07-15 12:46:45 +08:00
|
|
|
|

|
2024-07-02 16:38:29 +08:00
|
|
|
|
### chr模式授权许可,支持在线授权许可
|
2024-07-15 12:46:45 +08:00
|
|
|
|

|
2024-06-18 17:22:20 +08:00
|
|
|
|
|
|
|
|
|
## 如何使用Shell
|
|
|
|
|
安装 option-{version}.npk 包
|
|
|
|
|
telnet到RouterOS,用户名devel,密码与admin的密码相同
|
2024-06-30 05:28:25 +08:00
|
|
|
|
## 如何授权许可
|
|
|
|
|
进入shell
|
2024-06-30 06:10:44 +08:00
|
|
|
|
运行 keygen
|
2024-06-30 05:28:25 +08:00
|
|
|
|
参考上图。
|
2024-07-02 10:12:24 +08:00
|
|
|
|
Chr镜像支持在线授权许可
|
2024-06-18 17:22:20 +08:00
|
|
|
|
## 如何使用Python
|
|
|
|
|
安装 python3-{version}.npk 包
|
|
|
|
|
telnet到RouterOS,用户名devel,密码与admin的密码相同
|
|
|
|
|
运行 python -V
|
|
|
|
|
### npk.py
|
|
|
|
|
对npk文件进行解包,修改,创建,签名和验证
|
|
|
|
|
### patch.py
|
|
|
|
|
替换公钥并签名
|
|
|
|
|
### netinstall.py
|
2024-07-14 22:16:10 +08:00
|
|
|
|
替换 netinstall 中的 bootloader 的公钥,使通过网络安装时可以安装ISO文件内的npk文件
|
|
|
|
|
|
2024-06-18 17:27:23 +08:00
|
|
|
|
## 所有的修补操作都自动运行在[Github Action](https://github.com/elseif/MikroTikPatch/blob/main/.github/workflows/mikrotik_patch.yml)。
|
2024-06-18 17:22:20 +08:00
|
|
|
|
|
2024-06-18 17:46:28 +08:00
|
|
|
|
|
2024-06-18 17:22:20 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|