Firmware utils (tplink-safeloader) to edit stock firmware

Hello,

I'm trying to understand if tplink-safeloader (compiled from https://git.openwrt.org/project/firmware-utils.git) can be used to edit stock firmware.

Specifically, I'm trying to edit the /et/shadow file from the stock firmware to get root access with stock firmware.

I understand (and searched):

  • binwalk enabled to read/extract but can't write/edit a firmware
  • 7zip likewise can read/extract but can't edit
  • tplink-safeloader seems to copy directly from the .bin stock firmware and doesn't seem to be able to build firmware from extracted content.

Has someone managed to get around this?
Pointers appreciated

Thanks

tplink-safeloader is not designed with that in mind, its only job is to reassemble kernel&rootfs into an accepted image. All editing and fs creation needs to be done before.

Editing of OEM firmwares however is off-topic for this forum, this is about OpenWrt and not OEM firmwares.

Understood, and it makes sense indeed!

Do you know if tplink-safeloader can build and image purely from data on the hard drive (and not from a .bin file)?

Thanks

This topic was automatically closed after 2 days. New replies are no longer allowed.