JonathanSalwan/ROPgadget

ROPgadget did not find my "hardcoded" gadget

RobertLarsen opened this issue · 1 comments

$ echo -e 'int 0x80\nret' | asm -c i386                                                           
cd80c3
$ objdump -Mintel -d fmt | grep "cd 80 c3"
 d30:   c7 45 d8 cd 80 c3 00    mov    DWORD PTR [ebp-0x28],0xc380cd
$ ROPgadget --binary fmt | grep 'int 0x80' | grep ret | wc -l
0

binary.zip

$ ROPgadget --multibr --binary ./fmt | grep 'int 0x80'
0x00000c21 : int 0x80
0x00000d33 : int 0x80 ; ret