Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: cannot access 'GetFunctionName' #1

Open
weituotian opened this issue Mar 14, 2024 · 1 comment
Open

AttributeError: cannot access 'GetFunctionName' #1

weituotian opened this issue Mar 14, 2024 · 1 comment

Comments

@weituotian
Copy link

weituotian commented Mar 14, 2024

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

@weituotian
Copy link
Author

if func is not None:
    print(func.start_ea)
else:
    print("The instruction does not belong to a function.")

AttributeError: cannot access 'start_ea'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant