Skip to content

Tempfile

Common helper and cache for pwndbg tempdir

cachedir(namespace=None)

Returns and potentially creates a persistent safe cachedir location based on XDG_CACHE_HOME or ~/.cache

Optionally creates a sub namespace inside the pwndbg cache folder.

tempdir()

Returns a safe and unpredictable temporary directory with pwndbg prefix.