Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
/ routeros Public archive

Files

Latest commit

766c782 · Oct 17, 2019

History

History

option_npk

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 17, 2019
Oct 17, 2019
Oct 17, 2019

Option NPK

Option NPK appends an extra field to a valid NPK file. The extra field will cause creation of a directory called "/pckg/option". If the package is installed on RouterOS versions 6.41-6.42.0, the option file will enable the backdoor.

## Whoah buddy. This is complicated. Is there any sample usage?

Sure!

```sh
albinolobster@ns1:~/router/option_npk/build$ ./option_npk -f ~/packages/6.41.4/dude-6.41.4.npk 
albinolobster@ns1:~/router/option_npk/build$ strings lol.npk | grep pckg/option
../pckg/option
albinolobster@ns1:~/router/option_npk/build$ 

What are the build dependencies?

This requires:

  • Boost 1.66 or higher
  • cmake

How do I build this jawn?

Just normal cmake. Try this:

mkdir build
cd build
cmake ..
make

Resolve dependencies as needed.