Skip to content

SymExPorter doesn't work on Wine #1

@k1rpi7ch

Description

@k1rpi7ch

gibait reported this error:

[SymExPorter] Traceback (most recent call last):
  File "C:/Program Files/IDA_Pro_v8.3_Portable/plugins/SymExPorter.py", line 577, in write_symbols
    with open(input_file, 'rb') as f:
         ^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'Z:\\home\\giba\\ccit\\challenges\\pwn\\canvas\\canvas'

And suggested a fix
Change line 785 from self.input_elf = ida_nalt.get_input_file_path() to
self.input_elf = os.path.dirname(os.path.realpath(__name__))

But this fix breaks execution in IDA (Windows)

Possibly this fix with should work:

 if ("WINEPREFIX" in os.environ or "WINELOADER" in os.environ):
    self.input_elf = os.path.dirname(os.path.realpath(__name__))
else:
    self.input_elf = ida_nalt.get_input_file_path()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions