2024-06-18 19:13:02 +08:00
|
|
|
|
# Patch MikroTik RouterOS [[中文](README_CN.md)]
|
2024-06-15 07:18:14 +08:00
|
|
|
|
|
2024-06-18 22:27:44 +08:00
|
|
|
|
### [[Discord](https://discord.gg/keV6MWQFtX)] [[Telegram](https://t.me/+99Mw06p3K7NlMmNl)]
|
2024-06-18 17:46:28 +08:00
|
|
|
|
|
2024-06-15 07:18:14 +08:00
|
|
|
|
### Download [Latest Patched](https://github.com/elseif/MikroTikPatch/releases/latest) iso file,install it and enjoy.
|
2024-06-21 04:37:03 +08:00
|
|
|
|
### CHR image is both support BIOS and UEFI boot mode.
|
2024-06-15 07:18:14 +08:00
|
|
|
|
|
|
|
|
|

|
|
|
|
|

|
|
|
|
|
|
2024-06-19 01:59:22 +08:00
|
|
|
|
### Uses keygen to generate license key.
|
2024-06-15 07:18:14 +08:00
|
|
|
|

|
2024-06-18 16:21:07 +08:00
|
|
|
|
|
2024-06-19 15:55:30 +08:00
|
|
|
|
## How generate license key (***keygen.exe run on windows***)
|
2024-06-19 01:59:22 +08: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-19 01:50:22 +08:00
|
|
|
|
run unzip keygen.zip
|
2024-06-20 13:28:34 +08:00
|
|
|
|
run keygen.exe
|
|
|
|
|
input your software id
|
2024-06-18 16:45:56 +08:00
|
|
|
|
## How to use shell
|
|
|
|
|
install option-{version}.npk package
|
2024-06-19 01:50:22 +08:00
|
|
|
|
run telnet to routeros with username devel and password is same as admin
|
2024-06-18 16:45:56 +08:00
|
|
|
|
## How to use python3
|
|
|
|
|
install python3-{version}.npk package
|
2024-06-19 01:50:22 +08:00
|
|
|
|
run telnet to routeros with username devel and password is same as admin
|
|
|
|
|
run python -V
|
2024-06-24 04:28:15 +08:00
|
|
|
|
## How Covert x86 and Chr (Chr mode could auto resize disk)
|
2024-06-24 03:28:35 +08: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-24 04:28:15 +08:00
|
|
|
|
if you want to resize disk,convert to chr first,then resize disk and convert to x86
|
2024-06-18 16:21:07 +08: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 17:27:23 +08:00
|
|
|
|
## all patches are applied automatically with [Github Action](https://github.com/elseif/MikroTikPatch/blob/main/.github/workflows/mikrotik_patch.yml).
|
2024-06-15 07:18:14 +08:00
|
|
|
|
|
2024-06-18 17:46:28 +08:00
|
|
|
|
|
2024-06-15 07:18:14 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|