question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to load the binary

See original GitHub issue

Hi all,

I am trying to load the binary using Angr.Project(“Binary”). However I am getting this error, this is for iOS binary:

NotImplementedError                       Traceback (most recent call last)
<ipython-input-8-9d0b634ad3ce> in <module>
----> 1 ld = cle.Loader("unbofusc_arm64.arm64")

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cle/loader.py in __init__(self, main_binary, auto_load_libs, concrete_target, force_load_libs, skip_libs, main_opts, lib_opts, ld_path, use_system_libs, ignore_import_version_numbers, case_insensitive, rebase_granularity, except_missing_libs, aslr, perform_relocations, load_debug_info, page_size, preload_libs, arch)
    131             self._main_opts.update({'arch': arch})
    132         self.preload_libs = []
--> 133         self.initial_load_objects = self._internal_load(main_binary, *preload_libs, *force_load_libs, preloading=(main_binary, *preload_libs))
    134 
    135         # cache

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cle/loader.py in _internal_load(self, preloading, *args)
    763                 main_objs = [self.main_object] if self.main_object is not obj else []
    764                 for reloc in obj.relocs:
--> 765                     reloc.resolve_symbol(main_objs + preload_objects + sibling_objs + dep_objs + [obj], extern_object=extern_obj)
    766 
    767         # if the extern object was used, add it to the list of objects we're mapping

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cle/backends/macho/binding.py in resolve_symbol(self, solist, thumb, extern_object, **kwargs)
    379     def resolve_symbol(self, solist, thumb=False, extern_object=None, **kwargs):
    380         if isinstance(self.symbol, BindingSymbol):
--> 381             raise NotImplementedError("Doesn't seem to happen?")
    382         elif isinstance(self.symbol, SymbolTableSymbol):
    383             if self.symbol.library_name in [so.binary_basename for so in solist]:

NotImplementedError: Doesn't seem to happen?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fmagincommented, Oct 28, 2021

No it wasn’t merged yet. Probably easiest to cherry-pick it or just change it manually, I haven’t tested the PR well enough that I would recommend it for general use yet.

0reactions
sanny1commented, Oct 28, 2021

Thank you, that solved it for me 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

trying to load lantern-binary · Issue #614 · ptitSeb/box86 - GitHub
I am trying to load this binary https://github.com/getlantern/lantern-binaries version 32bit on armv7 it needs a library ".so" file that I ...
Read more >
What is binary load and how it is implemented - Qlik Community
Hi Nikhil,. For binary load do this. binary <qvw filwe name>. the files should be in the same folder. used to import the...
Read more >
Couldn't load binary error - CoPP 2021 - DASH
Hello, When I try the “./ijvm binary.ijvm” command after doing make, I get an error that says “couldn't load binary binary”.
Read more >
Binary load failed (6255) and error creating record with error ...
When attempting to load this table into the database into a new table, the table number is imprinted into the record in the...
Read more >
Where do Binary Executables Load? - YouTube
A viewer asked a great question: On an Apple II, how can I find out what memory location a binary file loads in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found