angr / angr/angrop

func_call gadget in mips

未关闭
#114 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
857
派生
85
平均合并
7 小时 40 分钟
30 天内合并 PR
1

描述

### Question

I'm looking for a func_call gadget in my mips binary. Using **ropper** tool I've found this valid gadget:
```
move $a1, $s1
jalr $s3
move $a2, $s0
lw $ra, 0x48($sp)
lw $s1, 0x48+var_24($sp)
lw $s0, 0x48+var_28($sp)
jr $ra
addiu $sp, 0x48
```
Using this gadget I can jump to any function (I've control over s3 from previous gadget) with 2 args.

However, when I try to use **anrop**, it truncates the gadget to the first 3 instructions:
```
move $a1, $s1
jalr $s3
move $a2, $s0
```
and therefore fails to find a valid func_call gadget.
I guess that it happens because **angr** terminates the block after the `jalr` instruction...
Any ideas on how to fix this?

Thanks!

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。