Skip to content

Instantly share code, notes, and snippets.

@kmdnet
Created January 29, 2017 10:13
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 kmdnet/e28043ec2cd3b46acb234557ad5428f8 to your computer and use it in GitHub Desktop.
Save kmdnet/e28043ec2cd3b46acb234557ad5428f8 to your computer and use it in GitHub Desktop.
from idaapi import *
from idautils import *
from idc import *
func = ["sub_12A1E00"]
for x in func:
addr = LocByName(x)
pseudo_code = decompile(addr)
with open(x+".c","w") as f:
f.write(str(pseudo_code))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment