Expand description
Determine attack-relevant instruction semantics
Functions
- Check if instruction should exist in a gadget body.
- Check if instruction is a ROP/JOP/SYS gadget tail
- Check if call instruction with register-controlled target
- Check if jump instruction with register-controlled target
- Check if instruction is a JOP gadget tail
- Check if instruction has register (controllable) operands only
- Check if instruction both reads and writes the same register
- Check if sets register from another register or stack (e.g. exclude constant write)
- Check if return instruction.
- Check if instruction is a ROP gadget tail
- Check if instruction is a SYS gadget tail, in general
- Check if syscall/sysenter instruction
- Check if sysret/sysexit instruction