Dirty hack dumpifs. Modified to be compiled on most platform without QNX SQP.
For those who are interested in hacking MIB2 firmware. The compress tool support ucl and lzo compressed images only. Use on your own risk.
- Get firmware *.ifs.
- Get an decompressed image copy by -u command
- Modify the decompressed image using hex editor to bypass login (for example, the login script)
- Compress the modified image by uuu or zzz (depends on original modified type)
- Use dd to repack it, verify using dumpifs again (some padding bytes may need to be manually added). You can also use the helper script to do that
- Get into IPL, rz to retrive the modified ifs and get into the emergency shell. You might want to kill MIBEmergency (directly modify the binary by hex editor or slay command after boot) to stop the emergency boot after seconds which will lock you out again. or you can replace the original shadow file in system with yours.
The original code is from https://github.com/vocho/openqnx