Skip to content

Instantly share code, notes, and snippets.

@NeatMonster
Created March 12, 2019 11:08
Show Gist options
  • Save NeatMonster/e4a1da2f222abd512e6ffe208892f78f to your computer and use it in GitHub Desktop.
Save NeatMonster/e4a1da2f222abd512e6ffe208892f78f 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