Closed SweetVishnya closed 4 years ago
Only ra and t9 jumps were supported on MIPS. I added jumps on other registers. Also supported MIPS j addr for this interesting gadget:
ra
t9
j addr
j 0xdeadbeef lw $v0, 0($v1) <- delay slot 0xdeadbeef: lw $ra, 16($sp) jr $ra addiu $sp, $sp, 28 <- delay slot
This gadgets loads value into v0 from stack and jumps to the second part that transfers control to the next gadget address taken from stack.
v0
Only
ra
andt9
jumps were supported on MIPS. I added jumps on other registers. Also supported MIPSj addr
for this interesting gadget:This gadgets loads value into
v0
from stack and jumps to the second part that transfers control to the next gadget address taken from stack.