jacob-baines / routeros

RouterOS Security Research Tooling and Proof of Concepts
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Unable to build a working npk with modify_npk #1

Open anindya14 opened 3 years ago

anindya14 commented 3 years ago

I tried some scenarios all of which failed when I tried to flash into the router... Firmwares chosen were 6.39.3 and 6.40.8

  1. I extracted a working routeros npk and modified the rootfs filesystem , packed it with mksquashfs and then built npk using the modify_npk.
  2. In this I didn't make any changes in the rootfs filesystem., Everything else was same.
  3. In this I didn't even extract the root-squashfs ... Just built the npk file from the rootfs.squashfs

And for building the npk , I have followed exactly what is stated in the repo.

jacob-baines commented 3 years ago

Hey! Thanks for submitting an issue. I need more details though.

I can't help if I can't recreate the issue.

anindya14 commented 3 years ago

modify_npk -n wrasse -s /home/new/Downloads/_routeros-mipsbe-6.39.3.npk.extracted/1000.squashfs -f /home/new/Downloads/routeros-mipsbe-6.39.3.npk

wherein this case the 1000.squashfs is the unchanged squashfs file from binwalk extract

To upgrade I transfer the wrasse.npk to the "Files" of mikrotik router and do a restart 

I am performing the upgrade on a router whose current version is 6.39 Following is the error that I get there in the log after the upgrade fails

image