pwnlib.config — Pwntools Configuration FileΒΆ

Allows per-user and per-host configuration of Pwntools settings.

The list of configurable options includes all of the logging symbols and colors, as well as all of the default values on the global context object.

The configuration file is read from ~/.pwn.conf and /etc/pwn.conf.

The configuration file is only read in from pwn import * mode, and not when used in library mode (import pwnlib). To read the configuration file in library mode, invoke config.initialize().

The context section supports complex types, at least as far as is supported by pwnlib.util.safeeval.expr.

[log]
success.symbol=😎
error.symbol=☠
info.color=blue

[context]
adb_port=4141
randomize=1
timeout=60
terminal=['x-terminal-emulator', '-e']