Skip to content

Instantly share code, notes, and snippets.

@PsychoTea
Created November 17, 2018 15:52
Show Gist options
  • Save PsychoTea/4e99abc00be50ff0b49c7e118d6838f9 to your computer and use it in GitHub Desktop.
Save PsychoTea/4e99abc00be50ff0b49c7e118d6838f9 to your computer and use it in GitHub Desktop.
Import a Joker helper file into IDA
import idaapi
import idautils
import idc
content = ""
with open("/path/to/joker/file", "r") as f:
content = f.readlines()
for line in content:
faddr,fname = line.replace("\n", "").split(":")
eaaddr = int(faddr, 16)
idc.MakeCode(eaaddr)
idc.MakeFunction(eaaddr)
idc.MakeNameEx(int(faddr, 16), fname, idc.SN_NOWARN)
print(fname + " @ " + faddr)
print("done")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment