GitHub - DavidBuchanan314/unsafe-python: A library to assist writing memory-unsafe code in "pure" python, without any imports (i.e. no ctypes etc.)
unsafe-python
A library to assist writing memory-unsafe code in "pure" python, without any imports (i.e. no ctypes etc.)
Supports CPython 3.11 and below (3.12 support coming soon?)
Note: This is a toy. You probably shouldn't use it for anything serious (or anything at all, really).
Core features:
addrof(obj) - A trivial alias of the id() builtin.
fakeobj(addr) - Allows for crafting fake heap objects.
getmem() - Returns a bytearray view of the current process's virtual memory.
setrip(addr) - Sets...
Read more at github.com