lib ¤
Library for non-debugger-dependant functionality.
Modules:
-
abi– -
android– -
arch– -
cache–Caches return values until some event in the inferior happens,
-
common– -
config– -
ctypes–On-the-fly endianness switching for ctypes structures.
-
disasm– -
elftypes– -
err–The error handling logic.
-
exception– -
funcparser– -
functions– -
functions_data– -
kernel– -
memory–Reading, writing, and describing memory.
-
net–Re-implements some psutil functionality to be able to get information from
-
path– -
pretty_print– -
qemu–QEMU-related utility functions.
-
regs–Reading register value from the inferior, and provides a
-
siginfo– -
stdio–Provides functionality to circumvent GDB's hooks on sys.stdin and sys.stdout
-
strings– -
tempfile–Common helper and cache for pwndbg tempdir
-
tips– -
version– -
which– -
zig–
Classes:
-
ErrorCode–Describes which error occured.
-
Status–An error handling object.
-
TypeNotFound–The type is not in the debugger.
-
TypeNotRecovered–We tried to recover (i.e. look up in the debugger and craft ourselves) the
ErrorCode ¤
Bases: Enum
Describes which error occured.
Feel free to add a new one.
Attributes:
-
SUCCESS– -
FAILURE–Generic failure
-
NO_STRUCTURE_FILE–We tried to load a structure, but the associated structure file doesn't exist.
Status dataclass ¤
An error handling object.
Passing no arguments (i.e. doing Status()) represents a success.
Methods:
-
is_success–Returns True if the Status object denotes a success.
-
is_failure–Returns True if the Status object denotes a failure.
-
succeed–Create a Status object that represents a success.
-
fail–Create a Status object that represents a generic failure.
-
coded_fail–Create a Status object that represents a failure.
Attributes:
TypeNotFound ¤
Bases: Exception
The type is not in the debugger.