Skip to content

Instantly share code, notes, and snippets.

@trietptm
Forked from NeatMonster/anonymize_idb.py
Created January 6, 2021 11:47
Show Gist options
  • Save trietptm/3c14c4667e3381e162404e6d76859284 to your computer and use it in GitHub Desktop.
Save trietptm/3c14c4667e3381e162404e6d76859284 to your computer and use it in GitHub Desktop.
import ida_netnode
"""
You can also switch the shell into IDC mode and enter del_user_info().
You can also edit your `~/ida-x/cfg/ida.cfg` and set `STORE_USER_INFO` to `NO`.
"""
# This will replace the original user blob with the evaluation version blob.
ORIGINAL_USER = \
"""
000000000000010001000000000000000000000000000000000000000000000000004576616c7561
74696f6e2076657273696f6e00000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
""".replace('\n', '').decode('hex')
ida_netnode.netnode('$ user1', 0, False).kill()
ida_netnode.netnode('$ original user', 0, False).supset(0, ORIGINAL_USER)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment