Ropper icon indicating copy to clipboard operation
Ropper copied to clipboard

Fix execve syscall code in ropchain generator

Open jakelamberson opened this issue 2 years ago • 2 comments

Closes #170

Fixes a message in the x86_64 chain generator to display the correct syscall.

~~The original issue notes that an incorrect syscall code is displayed. I discovered that an incorrect syscall code is present in the actual chain generator for the x86 version. x86_64 is correct. This pull request fixes both generators' print statements and changes the execve code in the x86 chain generator's gadget creator to the correct 0x3b.~~

jakelamberson avatar Jul 28 '23 15:07 jakelamberson

Are you sure, that this fix the issue? The changes shows only a change in the message

sashs avatar Aug 18 '23 09:08 sashs

@sashs Yes, this is right. The rop chain values are already correct. Just the message printed has the improper code.

I also went ahead and also updated the indices used in the generator to be hex-formatted to be more consistent with x86 (non-functional change). You can take or leave that.

jakelamberson avatar Jun 26 '24 12:06 jakelamberson