Skip to content

Instantly share code, notes, and snippets.

@tmr232
Last active March 28, 2016 16:22
Show Gist options
  • Select an option

  • Save tmr232/e84a1b693afced7944cd to your computer and use it in GitHub Desktop.

Select an option

Save tmr232/e84a1b693afced7944cd to your computer and use it in GitHub Desktop.
Read a GUID from IDB
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