Skip to content

Instantly share code, notes, and snippets.

@herrcore
Created November 13, 2017 03:38
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save herrcore/d023f3ab01b2091af3667d8d3f66e6db to your computer and use it in GitHub Desktop.
Save herrcore/d023f3ab01b2091af3667d8d3f66e6db to your computer and use it in GitHub Desktop.
Dump a blob of memory into a file - IDA Pro script
import idautils
import idaapi
def memdump(ea, size, file):
data = idc.GetManyBytes(ea, size)
with open(file, "wb") as fp:
fp.write(data)
print "Memdump Success!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment