Gallopsled / pwntools

CTF framework and exploit development library
http://pwntools.com
Other
11.98k stars 1.7k forks source link

Could not find any instructions in ['int 0x80'] #2416

Open escapemarius2 opened 4 months ago

escapemarius2 commented 4 months ago

pwntools giving me this error only for the 32 bit elf file for 64bit everything works fine: Could not find any instructions in ['int 0x80']

i wrote a small vuln server in c and use some inline assembly to generate for gadgets for my own example:

asm volatile(
    "int $0x80\n\t"
    "ret"
    :
);

ROPgadget output:

0x08049311 : int 0x80
0x08049311 : int 0x80 ; ret

so the gadget is still there but works only in 64bit

Arusekk commented 4 months ago

Please give exact steps to reproduce this so that we can better understand your use.

  1. What is the output of pwn version?
  2. What is your script that throws the error?
  3. What is the error exactly?
RocketMaDev commented 3 months ago

What about searching 'int'? Please upload some reproducible samples.