Get the latest tech news
A library to assist writing memory-unsafe code in "pure" Python
A library to assist writing memory-unsafe code in "pure" python, without any imports (i.e. no ctypes etc.) - DavidBuchanan314/unsafe-python
A library to assist writing memory-unsafe code in "pure" python, without any imports (i.e. no ctypes etc.) This technique allows us to craft fake python objects on the heap, similar to the " fakeobj()" primitive you might see in exploits for JavaScript engines. For example, we can craft a bytearray with a base addresss of 0 and a length of SSIZE_MAX, giving us read and write access to raw memory.
Or read this on Hacker News