Home-made house of force
Will it work?
For gdb with the system fork use the following setting: set follow-fork-mode parent
nc 165.22.46.243 8969
The binary: a.out, the glibc (2.27): libc.s0.6 and linker ld.so.2
House of Force Thoughts
This is an arbitrary write-what-where. A fine primitive. But you'll need a target and you'll need some prereqs and a method of defeating randomization.
Look for:
- The ability to make an overflow of the top_chunk size field
- The ability to ask for an arbitrarily sized malloc
- The ability to write into a malloc'ed address
- glibc < 2.29
Extras you'll need:
- Probably a heap leak
- (Although if you have a target in the heap you can be clever and use offsets for hitting your target)
- A strategy for winning
- (This could be: GOT table, .fini_array, malloc_hook or free_hook, even a stack return address)
- Knowledge of where your target lives.
- (e.g. you might need two address leaks)