Skip to content

Instantly share code, notes, and snippets.

@nguyenl95
Forked from herrcore/ida_memdump.py
Created January 2, 2020 05:22
Show Gist options
  • Save nguyenl95/6931fabc0e0a6183c3f3fbe74aeef575 to your computer and use it in GitHub Desktop.
Save nguyenl95/6931fabc0e0a6183c3f3fbe74aeef575 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