2024-06-18 14:13:02 +03:00
|
|
|
|
# Patch MikroTik RouterOS [[中文](README_CN.md)]
|
2024-06-15 02:18:14 +03:00
|
|
|
|
|
2024-06-18 17:27:44 +03:00
|
|
|
|
### [[Discord](https://discord.gg/keV6MWQFtX)] [[Telegram](https://t.me/+99Mw06p3K7NlMmNl)]
|
2024-06-18 12:46:28 +03:00
|
|
|
|
|
2024-06-15 02:18:14 +03:00
|
|
|
|
### Download [Latest Patched](https://github.com/elseif/MikroTikPatch/releases/latest) iso file,install it and enjoy.
|
2024-06-20 23:37:03 +03:00
|
|
|
|
### CHR image is both support BIOS and UEFI boot mode.
|
2024-06-15 02:18:14 +03:00
|
|
|
|
|
|
|
|
|
![](install.png)
|
|
|
|
|
![](routeros.png)
|
|
|
|
|
|
2024-06-18 20:59:22 +03:00
|
|
|
|
### Uses keygen to generate license key.
|
2024-06-15 02:18:14 +03:00
|
|
|
|
![](keygen.png)
|
2024-06-18 11:21:07 +03:00
|
|
|
|
|
2024-06-19 10:55:30 +03:00
|
|
|
|
## How generate license key (***keygen.exe run on windows***)
|
2024-06-18 20:59:22 +03:00
|
|
|
|
keygen.zip in iso or img root directory,for chr image it's in /flash/rw/disk/ directory,same as winbox file manager directory
|
2024-06-18 20:50:22 +03:00
|
|
|
|
run unzip keygen.zip
|
2024-06-20 08:28:34 +03:00
|
|
|
|
run keygen.exe
|
|
|
|
|
input your software id
|
2024-06-18 11:45:56 +03:00
|
|
|
|
## How to use shell
|
|
|
|
|
install option-{version}.npk package
|
2024-06-18 20:50:22 +03:00
|
|
|
|
run telnet to routeros with username devel and password is same as admin
|
2024-06-18 11:45:56 +03:00
|
|
|
|
## How to use python3
|
|
|
|
|
install python3-{version}.npk package
|
2024-06-18 20:50:22 +03:00
|
|
|
|
run telnet to routeros with username devel and password is same as admin
|
|
|
|
|
run python -V
|
2024-06-23 23:28:15 +03:00
|
|
|
|
## How Covert x86 and Chr (Chr mode could auto resize disk)
|
2024-06-23 22:28:35 +03:00
|
|
|
|
to Chr,run this command in shell
|
|
|
|
|
echo -e "\x01" | dd of=/dev/sda bs=1 count=1 seek=336 conv=notrunc
|
|
|
|
|
to x86,run this command in shell
|
|
|
|
|
echo -e "\x00" | dd of=/dev/sda bs=1 count=1 seek=336 conv=notrunc
|
2024-06-23 23:28:15 +03:00
|
|
|
|
if you want to resize disk,convert to chr first,then resize disk and convert to x86
|
2024-06-18 11:21:07 +03:00
|
|
|
|
### npk.py
|
|
|
|
|
Sign,Verify,Create, Extract npk file.
|
|
|
|
|
### patch.py
|
|
|
|
|
Patch public key and sign NPK files
|
|
|
|
|
### netinstall.py
|
|
|
|
|
Modify netinstallexe to enable network installation of NPK files that have been resigned in ISO
|
|
|
|
|
### upgrade.py
|
|
|
|
|
By adding static domain name resolution in RouterOS, the NPK file that has been resigned in ISO can be installed during the upgrade process.
|
2024-06-18 12:27:23 +03:00
|
|
|
|
## all patches are applied automatically with [Github Action](https://github.com/elseif/MikroTikPatch/blob/main/.github/workflows/mikrotik_patch.yml).
|
2024-06-15 02:18:14 +03:00
|
|
|
|
|
2024-06-18 12:46:28 +03:00
|
|
|
|
|
2024-06-15 02:18:14 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|