Skip to content

A collection of ctf writeups for challenges that I've done that I thought were interesting

License

Notifications You must be signed in to change notification settings

SolarDebris/writeups

Repository files navigation

writeups

A collection of writeups for challenges that I've done that I thought were interesting

PWN Tricks

Here below is a list of simple tricks/problems i have when pwning

Stack Buffer Overflows

movaps - when running your exploit if you end up crashing in libc with an instruction that ends in aps, then that means that your stack is not aligned by 0x10 bytes. to fix this add a single ret into your rop chain before calling the libc function.

Mitigations

pie - a trick for leaking pie is to use the __dso_handle ptr which is a ptr to itself. this can be useful if you have some sort of an array out of bounds or format leak

Heap Exploitation

Leaking libc

To leak libc, you can create an unsortedbin chunk and then free it. If you view it with no other chunks in the unsortedbin you can see a ptr to libc. If you want to reallocate it, then you need to change the is_mmapped field to on in the chunk.

Kernel Exploitation

About

A collection of ctf writeups for challenges that I've done that I thought were interesting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published