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-06-18 17:22:20 +08:00
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
2024-06-30 21:17:01 +08:00
|
|
|
|
### x86模式授权许可
|
|
|
|
|

|
|
|
|
|
### chr模式授权许可
|
|
|
|
|

|
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
|
|
|
|
|
替换 netinstallexe 中的bootloader的公钥,使通过网络安装时可以安装ISO文件内的npk文件
|
|
|
|
|
### upgrade.py
|
|
|
|
|
在RouterOS内增加静态域名解析,使升级时可以安装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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|