Iv'e never used python before and in looking at other example I can't find what I'm looking for exactly so I have come here to humbly ask for an example script if anyone could be so kind, I am trying to simply make a table of function names and their corresponding sig and then I'd like to run the script in ida and have it search for the aob and if found rename that function to the sigs name and if not found just print that it wasn't found. I have coded in lua an exact replica of what I am trying to accomplish. Thanks for your time!
local sigs = {
["func1"] = "ff ff ff ff ff ff ff",
["func2"] = "ff ff ff ff ff ff ff",
["func3"] = "ff ff ff ff ff ff ff",
["func4"] = "ff ff ff ff ff ff ff"
}
for name, sig in pairs(sigs) do
local address = searchaob(sig)
if address then
rename(address, name)
else
print(name .. " not found")
end
end