Skip to content

Instantly share code, notes, and snippets.

@ilbaroni
Forked from NeatMonster/anonymize_idb.py
Created October 23, 2021 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilbaroni/cd73e103daed42f97e35ee67e1581696 to your computer and use it in GitHub Desktop.
Save ilbaroni/cd73e103daed42f97e35ee67e1581696 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