Created
November 17, 2018 15:52
-
-
Save PsychoTea/4e99abc00be50ff0b49c7e118d6838f9 to your computer and use it in GitHub Desktop.
Import a Joker helper file into IDA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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