Last active
March 28, 2016 16:22
-
-
Save tmr232/e84a1b693afced7944cd to your computer and use it in GitHub Desktop.
Read a GUID from IDB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import idaapi | |
| import uuid | |
| def read_guid(ea=None): | |
| if ea is None: | |
| ea = idaapi.get_screen_ea() | |
| # Pay attention to the endian! | |
| return '{{{}}}'.format(uuid.UUID(bytes_le=idaapi.get_many_bytes(ea, 16))) | |
| Octotree is enabled on this page. Click this button or press cmd shift s (or ctrl shift s) to show it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment