Ropper icon indicating copy to clipboard operation
Ropper copied to clipboard

AVR Support

Open klockeph opened this issue 7 years ago • 2 comments

Is AVR Support planned? Would be cool for Arduino exploitation.

I know that it's currently not supported because I just tried it and got the following error message:

Please report this error on https://github.com/sashs/ropper
Stacktrace:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/ropper/loaders/elf.py", line 53, in _loadDefaultArch
    return getArch( (machine,cls, end ),self._binary.elfHeader.header.e_entry)
  File "/usr/lib/python3.6/site-packages/ropper/loaders/elf.py", line 124, in getArch
    arch = ARCH[params[0]]
KeyError: (<filebytes.enum.IntEnumElement object at 0x7f8d419dfac8>, <filebytes.enum.IntEnumElement object at 0x7f8d419e1208>, 1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/ropper/__init__.py", line 42, in start
    Console(app_options).start()
  File "/usr/lib/python3.6/site-packages/ropper/console.py", line 175, in start
    self.__loadFile(file)
  File "/usr/lib/python3.6/site-packages/ropper/console.py", line 194, in __loadFile
    arch=self.__options.arch)
  File "/usr/lib/python3.6/site-packages/ropper/service.py", line 495, in addFile
    loader = Loader.open(name, bytes=bytes, raw=raw, arch=arch)
  File "/usr/lib/python3.6/site-packages/ropper/loaders/loader.py", line 158, in open
    return subclass(fileName, bytes)
  File "/usr/lib/python3.6/site-packages/ropper/loaders/elf.py", line 36, in __init__
    super(ELF, self).__init__(filename, bytes, arch)
  File "/usr/lib/python3.6/site-packages/ropper/loaders/loader.py", line 74, in __init__
    self._arch = self._loadDefaultArch()
  File "/usr/lib/python3.6/site-packages/ropper/loaders/elf.py", line 55, in _loadDefaultArch
    raise RopperError(e)
ropper.common.error.RopperError: (<filebytes.enum.IntEnumElement object at 0x7f8d419dfac8>, <filebytes.enum.IntEnumElement object at 0x7f8d419e1208>, 1)

I still think that this should issue an error message and not get the program to crash.

Opening this isssue because first output line told me to.

klockeph avatar Jul 02 '18 15:07 klockeph

Hi. I will look at it.

sashs avatar Jul 03 '18 10:07 sashs

Thank you very much! Let me now if you need any additional info :)

klockeph avatar Jul 03 '18 13:07 klockeph