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

AVR Support #72

Open
klockeph opened this issue Jul 2, 2018 · 2 comments
Open

AVR Support #72

klockeph opened this issue Jul 2, 2018 · 2 comments

Comments

@klockeph
Copy link

klockeph commented Jul 2, 2018

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.

@sashs
Copy link
Owner

sashs commented Jul 3, 2018

Hi.
I will look at it.

@klockeph
Copy link
Author

klockeph commented Jul 3, 2018

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

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

No branches or pull requests

2 participants