Skip to content

Commit

Permalink
Fix execve syscall code in ropchain generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelamberson committed Aug 15, 2023
1 parent 85e0379 commit 93b3974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ropper/ropchain/arch/ropchainx86_64.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ def create(self, options):
raise RopChainError('No argument support for execve commands')

self._printMessage('ROPchain Generator for syscall execve:\n')
self._printMessage('\nwrite command into data section\nrax 0xb\nrdi address to cmd\nrsi address to null\nrdx address to null\n')
self._printMessage('\nwrite command into data section\nrax 0x3b\nrdi address to cmd\nrsi address to null\nrdx address to null\n')
chain = self._printHeader()
gadgets = []
can_create_command = False
Expand Down

0 comments on commit 93b3974

Please sign in to comment.