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
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nguyenl95/9b50110e9159d551ca6b14a0b9285ca2 to your computer and use it in GitHub Desktop.
Save nguyenl95/9b50110e9159d551ca6b14a0b9285ca2 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