Git Product home page Git Product logo

mikrotikpatch's Introduction

MikroTik RouterOS Patch [English]

国内镜像下载 密码: elseif

[ 123pan ] [ 7.15.3] [ 7.15.2] [ 7.16beta4 ] [ 7.15.3-arm64 ] [ 7.15.2-arm64 ] [ 7.16beta4-arm64 ] [ 6.49.15 ] [ 6.49.13 ]

x86模式授权许可

x86模式在线授权(v6.x)

Chr模式在线授权

Chr模式授权许可

如何使用Shell

安装 option-{version}.npk 包
telnet到RouterOS,用户名devel,密码与admin的密码相同

如何授权许可

进入shell
运行 keygen
参考上图。
Chr镜像支持在线授权许可

如何使用Python

安装 python3-{version}.npk 包
telnet到RouterOS,用户名devel,密码与admin的密码相同
运行 python -V

npk.py

对npk文件进行解包,修改,创建,签名和验证

patch.py

替换公钥并签名

所有的修补操作都自动运行在Github Action

mikrotikpatch's People

Contributors

elseif avatar

Stargazers

 avatar  avatar  avatar Hsu avatar  avatar Sozontov Vladislav avatar  avatar  avatar Vasily Katsay avatar  avatar  avatar  avatar Skywalker avatar CAS avatar baka-gourd avatar  avatar Dongming Yao avatar SC C.A.T avatar  avatar  avatar  avatar 尘埃 avatar  avatar  avatar 格子 avatar PenguinDrum avatar Kirito avatar  avatar Londbell avatar someone132s avatar  avatar  avatar Mars-Sea avatar 缓冲 avatar Elaina avatar  avatar SwordKing avatar huang ruixi avatar  avatar  avatar GreenDam avatar Sunshine avatar  avatar 5aaee9 avatar DataL avatar 翱翔天际 avatar  avatar bi119aTe5hXk avatar  avatar  avatar  avatar Chim Điên avatar  avatar gukey avatar Behnam Bagheri avatar Manantsoa RAKOTONDRAZAKA avatar June Cao avatar  avatar Jay avatar  avatar 5xq avatar  avatar  avatar  avatar Sammasamadhi avatar Code Daddy avatar Nikos Mitakidis avatar LU.ZHH avatar 折腾一下 avatar  avatar  avatar  avatar zhiyuan mei avatar  avatar Sasan Izadbakhsh avatar  avatar  avatar  avatar  avatar  avatar  avatar Stanner avatar  avatar Ruza avatar  avatar LONEI avatar  avatar  avatar  avatar  avatar  avatar  avatar Anyoe avatar  avatar Z avatar  avatar  avatar Hanxi2719 avatar ChanningHe avatar  avatar

Watchers

Lucian avatar  avatar  avatar  avatar Vasily Katsay avatar  avatar Dauren Abdibekov avatar  avatar  avatar

mikrotikpatch's Issues

Can we the hack ROS program to skip DUID detection?

  • Problem 1: Many regions in China have started using vBRAS, but the DUID is not in the format defined by RFC, so it is directly rejected by ROS.
    log report: Bad server DUID

  • Problem 2: A custom DUID is provided through DHCP CLIENT OPTIONS, but ROS also considers it unusable.
    log report: Bad client duid

Mmips error

Hello
I have installed patched version of npk by patched netinstall but the router doesn’t boot up and had a restart loop
If i install original file via original netinstall it worked fine
Any idea ?

keygen source code ?

#14 (comment)

seriously ? In this case just put don't half of the exploit in opensource, just closes it, let's go, add everything except keygen.zip in .gitignore

keygen source code ?

As we can generate our proper key, and proper image with our key, in order we also need the keygen, but this one is not opensourced

type of key

In your pipeline, there is some env using private/public key

      LATEST_VERSION_URL: 'https://upgrade.mikrotik.com/routeros/NEWESTa7.stable'
      LATEST_VERSION: "7.15"
      CUSTOM_LICENSE_PRIVATE_KEY: ${{ secrets.CUSTOM_LICENSE_PRIVATE_KEY }}
      CUSTOM_LICENSE_PUBLIC_KEY: ${{ secrets.CUSTOM_LICENSE_PUBLIC_KEY }}
      CUSTOM_NPK_SIGN_PRIVATE_KEY: ${{ secrets.CUSTOM_NPK_SIGN_PRIVATE_KEY }}
      CUSTOM_NPK_SIGN_PUBLIC_KEY: ${{ secrets.CUSTOM_NPK_SIGN_PUBLIC_KEY }}
      MIKRO_LICENSE_PUBLIC_KEY: ${{ secrets.MIKRO_LICENSE_PUBLIC_KEY }}
      MIKRO_NPK_SIGN_PUBLIC_LKEY: ${{ secrets.MIKRO_NPK_SIGN_PUBLIC_LKEY }}

what kind of key is it ?
As I saw you used toyecc I guess it could be

  • ECDSA
  • ECIES
  • ECDH
  • Elgamal
  • Ed25519
  • Curve25519

the question is which one ?

ty for your work :)

unable to run workflow

Hi,
I cloned this repo to try it by my self,
I generated some key with this script (got it in the discord)

from toyecc import AffineCurvePoint, getcurvebyname, FieldElement,ECPrivateKey,ECPublicKey,Tools

def generate_eddsa_keypair():
    curve = getcurvebyname("Ed25519")   
    private_key = ECPrivateKey.eddsa_generate(curve)
    return private_key.eddsa_encode(), private_key.pubkey.eddsa_encode()

def generate_kcdsa_keypair():
    curve = getcurvebyname("Curve25519")   
    private_key = ECPrivateKey.generate(curve)
    return Tools.inttobytes_le(private_key.scalar, 32), Tools.inttobytes_le(int(private_key.pubkey.point.x), 32)

if __name__ == '__main__':
    eddsa_private_key, eddsa_public_key = generate_eddsa_keypair()
    kcdsa_private_key, kcdsa_public_key = generate_kcdsa_keypair()
    print(f'CUSTOM_NPK_SIGN_PRIVATE_KEY: {eddsa_private_key.hex().upper()}')
    print(f'CUSTOM_NPK_SIGN_PUBLIC_KEY: {eddsa_public_key.hex().upper()}')
    print(f'CUSTOM_LICENCE_PRIVATE_KEY: {kcdsa_private_key.hex().upper()}')
    print(f'CUSTOM_LICENCE_PUBLIC_KEY: {kcdsa_public_key.hex().upper()}')

it return a pair of keys

python3 generateKey.py
CUSTOM_NPK_SIGN_PRIVATE_KEY: 8054108EB3861B4BD2C7545A048CAF5F661DB8632EE2C4B74A826FC0DC6E42E2
CUSTOM_NPK_SIGN_PUBLIC_KEY: 41C35CE97135195A84D41CBD5AD20BE347D519BF48EA4A78BC44E045611AC72C
CUSTOM_LICENCE_PRIVATE_KEY: 509C747AB645CEFA0CC3DFF49C28615711DD3E750D2FC51763CB8AEDC2788005
CUSTOM_LICENCE_PUBLIC_KEY: 05BB2C697958AA4E409E93005659ED17A2CA20EB1123292DDA70A59EF8393802

but I can't get workflow to work
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.