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

Fixed typo which caused NameError #94

Closed RobertLarsen closed 5 years ago

RobertLarsen commented 5 years ago
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/ropper/console.py", line 351, in __generateChain
    chain = self.__rs.createRopChain(generator, str(self.currentFile.arch) ,options)
  File "/usr/local/lib/python2.7/dist-packages/ropper/service.py", line 757, in createRopChain
    return generator.create(options)
  File "/usr/local/lib/python2.7/dist-packages/ropper/ropchain/arch/ropchainx86.py", line 820, in create
    jmp_esp = self._createJmp()
  File "/usr/local/lib/python2.7/dist-packages/ropper/ropchain/arch/ropchainx86.py", line 772, in _createJmp
    self._updateUsedBinaries(gadget[0])
NameError: global name 'gadget' is not defined
sashs commented 5 years ago

Thanks! Merged.