2 items with this tag.

DUCTF [PWN] fakeobj.py

Exploiting Python object internals to hijack the __repr__ function pointer, redirecting execution to system("/bin/sh") for a shell, with adjustments for version-specific memory layouts.

UofTCTF [rev] Py_FlagChecker

Extracting and defeating a self-referential Python flag checker that uses version-specific marshal bytecode and anti-tampering keys by building a custom Python 3.10.12 interpreter with added debug prints to reveal the decrypted flag.