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.87k stars 206 forks source link

Fix typo in code that causes NameError #99

Closed MHassanNadeem closed 5 years ago

MHassanNadeem commented 5 years ago
Traceback (most recent call last):
  File "chainer.py", line 29, in <module>
    gadgets = load_gadgets('../../example-bin/qed.ko')
  File "chainer.py", line 20, in load_gadgets
    chain = rs.createRopChain("mprotect",'x86_64',{'address':'0x0', 'size':'0x0'})
  File "/home/hnadeem/repos/cps-project/src/Ropper/ropper/service.py", line 766, in createRopChain
    return generator.create(options)
  File "/home/hnadeem/repos/cps-project/src/Ropper/ropper/ropchain/arch/ropchainx86_64.py", line 826, in create
    self-_printMessage('no jmp esp found')
NameError: global name '_printMessage' is not defined
sashs commented 5 years ago

Merged. Thx!