Skip to content

Commit 93b3974

Browse files
committed
Fix execve syscall code in ropchain generator
1 parent 85e0379 commit 93b3974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ropper/ropchain/arch/ropchainx86_64.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ def create(self, options):
652652
raise RopChainError('No argument support for execve commands')
653653

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

0 commit comments

Comments
 (0)