sashs / Ropper

Display information about files in different file formats and find gadgets to build rop chains for different architectures (x86/x86_64, ARM/ARM64, MIPS, PowerPC, SPARC64). For disassembly ropper uses the awesome Capstone Framework.
https://scoding.de/ropper
BSD 3-Clause "New" or "Revised" License
1.88k stars 206 forks source link

loading libc error #167

Open ghalwash opened 1 year ago

ghalwash commented 1 year ago

(ropper)> file libc-2.27.so [INFO] Load gadgets for section: LOAD [ERROR] Please report this error on https://github.com/sashs/ropper [ERROR] Traceback (most recent call last): File "/home/haitham/.local/lib/python2.7/site-packages/ropper/console.py", line 62, in cmd func(self, text) File "/home/haitham/.local/lib/python2.7/site-packages/ropper/console.py", line 649, in do_file self.loadFile(text) File "/home/haitham/.local/lib/python2.7/site-packages/ropper/console.py", line 211, in loadFile self.loadGadgets() File "/home/haitham/.local/lib/python2.7/site-packages/ropper/console.py", line 302, in loadGadgets self.searchGadgetsFor(self.currentFileName) File "/home/haitham/.local/lib/python2.7/site-packages/ropper/console.py", line 306, in searchGadgetsFor self.rs.loadGadgetsFor(binary) File "/home/haitham/.local/lib/python2.7/site-packages/ropper/service.py", line 652, in loadGadgetsFor load_gadgets(fc) File "/home/haitham/.local/lib/python2.7/site-packages/ropper/service.py", line 637, in load_gadgets f.allGadgets = self.ropper.searchGadgets(f.loader, instructionCount=self.options.inst_count, gtype=gtype,multiprocessing=self.options.multiprocessing) File "/home/haitham/.local/lib/python2.7/site-packages/ropper/rop.py", line 289, in searchGadgets if mp.get_start_method() != 'fork': AttributeError: 'module' object has no attribute 'get_start_method'

sashs commented 1 year ago

Hi. The reason is that you use python 2.7. Python 2.7 is not supported anymore.