Skip to content

Instantly share code, notes, and snippets.

@yhnmj6666
Forked from herrcore/ida_memdump.py
Created May 13, 2020 03:03
Show Gist options
  • Save yhnmj6666/26001debeade2d4b38f75b41d045f5b5 to your computer and use it in GitHub Desktop.
Save yhnmj6666/26001debeade2d4b38f75b41d045f5b5 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