Quantcast
Channel: A summer with pwntools
Viewing all articles
Browse latest Browse all 14

MIPS SROP support

$
0
0
Over the past week I've been working on getting SROP to work on MIPS and MIPSel. It was quite interesting as using MIPS and MIPSel introduced a new set of requirements in.
1. The SROP registers in MIPS and MIPSel were both 64-bit. Due to endianness, MIPS needed a 4 byte padding after the actual register value, and MIPSel would require a 4 byte padding before the actual register value.
2. The offsets at which the the MIPS and MIPSel registers started were different.

We tried a couple of ways to go about doing this before setting on deciding to have registers in the form {offset: register}. Doing this is clean and this meets our requirements. The coming week I'll be travelling but I'll be working on finishing this and getting it merged, and writing tests for it.

Viewing all articles
Browse latest Browse all 14

Trending Articles