ida-headless
ida-headless copied to clipboard
AttributeError: cannot access 'GetFunctionName'
import rpyc
c = rpyc.connect("localhost", 18812)
idaapi = c.root.idaapi
idc = c.root.idc
idautils = c.root.idautils
addr = 0x14000f544
func = idaapi.get_func(addr)
if func is not None:
function_name = idc.GetFunctionName(func.startEA)
print("The instruction belongs to function: " + function_name)
else:
print("The instruction does not belong to a function.")
many field can not access
ida pro 7.7
if func is not None:
print(func.start_ea)
else:
print("The instruction does not belong to a function.")
AttributeError: cannot access 'start_ea'