Recovering from a lost God password (1.8.0+)

Having forgotten the god pw on my tinkering site, I went into the db to hack it out...and lo and behold, the instructions in the Guide for 1.7.x no longer applied! The new db format deprecated them. With Jav's help, I figured out how to do it with the new format.

Instructions are as follows:
Decompress your outdb and open it in your favorite editor. Look for an attribute resembling this:

attrcount 10

Reduce it by one.

Then look for something like this:

 name "XYXXY"
  owner #1
  flags "no_command wizard locked internal"
  derefs 0
  value "XX13793169753747280487"

Delete everything between the end of the previous attribute and the !2 (signifying the start of #2). Save. Re-compress, restart your game, et voilà! You've just hacked #1's pw.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Or you could be really bold

Or you could be really bold and do it the "Walker" way by attaching gdb to the process, setting a breakpoint on 'password_check()' (i think it is), attempting to login as #1 and when it gets to the checking the password point i believe you just type 'return 1' and it assumes the password is valid and lets you in :)

That's actually my standard

That's actually my standard approach (on unix/linux) when I help people recover the God password or someone sends me their db to look at and I don't have the God password. It's really easy if you know a little gdb and a little Penn source.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.