Several routers (and ADSL modems) had a rom-0 vulnerability wherein an attacker could get a handle of the rom file for that router without having to login. Either way, the vulnerability has been patched for the most part. But this utility can still be helpful in decoding and fetching the router's password from that rom-0 file.
In the beginning, this repo has support for Zyxel (and similar) roms. We have plans to add support for more roms as we go along, if and when necessary.
This code was originally written as an executable utility by EtMatrix whence this repo has been forked.
Decode rom-0 file from zyxel,dlink etc
Original source C# download from Hakim's website