-
-
Save jogarock/3cf0aa1b5775da5c8135c59f6120eac3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IndexError Traceback (most recent call last) | |
<ipython-input-2-31825b8a3f44> in <module>() | |
----> 1 b = angr.Project('./myprogram') | |
/usr/local/lib/python2.7/site-packages/angr/project.pyc in __init__(self, thing, default_analysis_mode, ignore_functions, use_sim_procedures, exclude_sim_procedures_func, exclude_sim_procedures_list, arch, simos, load_options, translation_cache, support_selfmodifying_code) | |
105 l.info("Loading binary %s", thing) | |
106 self.filename = thing | |
--> 107 self.loader = cle.Loader(self.filename, **load_options) | |
108 | |
109 # Step 2: determine its CPU architecture, ideally falling back to CLE's guess | |
/usr/local/lib/python2.7/site-packages/cle/loader.py in __init__(self, main_binary, auto_load_libs, force_load_libs, skip_libs, main_opts, lib_opts, custom_ld_path, ignore_import_version_numbers, rebase_granularity, except_missing_libs, gdb_map, gdb_fix, aslr) | |
99 self._lib_opts = self._merge_opts(gdb_lib_opts, self._lib_opts) | |
100 | |
--> 101 self._load_dependencies() | |
102 self._load_tls() | |
103 self._perform_reloc(self.main_bin) | |
/usr/local/lib/python2.7/site-packages/cle/loader.py in _load_dependencies(self) | |
176 libname = os.path.basename(path) | |
177 if self.identify_object(path) == 'elf': | |
--> 178 soname = self._extract_soname(path) | |
179 else: | |
180 soname = libname | |
/usr/local/lib/python2.7/site-packages/cle/loader.py in _extract_soname(path) | |
746 dyn = e.get_section_by_name('.dynamic') | |
747 soname = [ x.soname for x in list(dyn.iter_tags()) if x.entry.d_tag == 'DT_SONAME'] | |
--> 748 return soname[0] | |
749 except elftools.common.exceptions.ELFError: | |
750 return None | |
IndexError: list index out of range |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment