Skip to content

Instantly share code, notes, and snippets.

@oznotes
Last active October 12, 2021 16:37
Show Gist options
  • Save oznotes/e92abc02b443737495824797442eaec1 to your computer and use it in GitHub Desktop.
Save oznotes/e92abc02b443737495824797442eaec1 to your computer and use it in GitHub Desktop.
IDA MakeCode Automation
# IDAPython documentation is at https://www.hex-rays.com/products/ida/support/idapython_docs/
import idautils
import idc
for ea in idautils.Segments():
segend = idc.get_segm_attr(ea, idc.SEGATTR_END)
start = ea
while start < segend:
idc.create_insn(start)
start = ida_search.find_unknown(start+1, idc.SEARCH_DOWN)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment