Skip to content

Instantly share code, notes, and snippets.

View isaiah777-sys's full-sized avatar
💭
All about software, you know?

Olúwaṣemílóore isaiah777-sys

💭
All about software, you know?
View GitHub Profile
#!/usr/bin/env python2
# pylint: skip-file
"""
When performing a chunked transfer, realloc doesnt take into account the size of the headers allowing an overflow.
As the initial heap (0x100) is located inline we can overwrite the current heap location.
* overwrite __malloc_heap to point to our fake heap
* our fake heap size is huge so that memory os returned near the GOT
* overwrite memchr got with shellcode address
* win