Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Errors when trying the solve.py in ./examples/grub folder #22

Closed
vancaho opened this issue Jan 4, 2016 · 2 comments
Closed

Errors when trying the solve.py in ./examples/grub folder #22

vancaho opened this issue Jan 4, 2016 · 2 comments

Comments

@vancaho
Copy link

vancaho commented Jan 4, 2016

Hi,
When I try to run the solve.py script to debug the GRUB back 28 vulnerability, the following errors are reported:

File "/home/vancaho/test/grub/solve_grub.py", line 78, in <module>
  find_bug()
 File "/home/vancaho/test/grub/solve_grub.py", line 6, in find_bug
  p = angr.Project('crypto.mod', load_options={'main_opts': {'custom_base_addr': 0x8000000}})
File "/home/vancaho/.virtualenvs/angr/local/lib/python2.7/site-packages/angr/project.py", line 128, in __init__
  self.loader.add_object(self._extern_obj)
File "/home/vancaho/.virtualenvs/angr/local/lib/python2.7/site-packages/cle/loader.py", line 284, in add_object
  base_addr = self._get_safe_rebase_addr()
File "/home/vancaho/.virtualenvs/angr/local/lib/python2.7/site-packages/cle/loader.py", line 329, in _get_safe_rebase_addr
  return self.max_addr() + (granularity - self.max_addr() % granularity)
File "/home/vancaho/.virtualenvs/angr/local/lib/python2.7/site-packages/cle/loader.py", line 399, in max_addr
  return max(map(lambda x: x.get_max_addr(), self.all_objects))
File "/home/vancaho/.virtualenvs/angr/local/lib/python2.7/site-packages/cle/loader.py", line 399, in <lambda>
  return max(map(lambda x: x.get_max_addr(), self.all_objects))
File "/home/vancaho/.virtualenvs/angr/local/lib/python2.7/site-packages/cle/backends/__init__.py", line 276, in get_max_addr
  return out + self.rebase_addr

How to solve this problem? Thanks a lot

@ltfish
Copy link
Member

ltfish commented Jan 4, 2016

Your backtrace is not complete. What is the exact exception that occurred?

@vancaho
Copy link
Author

vancaho commented Jan 4, 2016

Hi, I upgrade angr from version 4.5.12.21 to 4.5.12.28, the above errors disappear. Thanks a lot

@vancaho vancaho closed this as completed Jan 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants