Skip to content

iOS can't find sym is_import #581

Description

@piaoapiao

Description

File "/Users/xxx/Desktop/deobf/code/2/angr-examples/angr-hook2.py", line 45, in
proj.hook_symbol("_scanf", ReplaceScanf())
File "/Users/xxx/.pyenv/versions/3.11.8/lib/python3.11/site-packages/angr/project.py", line 603, in hook_symbol
sym = self.loader.find_symbol(symbol_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/.pyenv/versions/3.11.8/lib/python3.11/site-packages/cle/loader.py", line 610, in find_symbol
if sym.is_import:
^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'is_import'

Steps to reproduce the bug

No response

Environment

Mac OSX 15.4 (24E248)

test iOS mach-o file

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions