vagd.helper

Attributes

_GENERATE_KEYPAIR

log

Functions

_ensure_log()

ensure the correct logger is set

info(info)

log info with pwntools

debug(debug)

log debug with pwntools

warn(warn)

log warn with pwntools

error(error)

log error with pwntools

progress(→ pwnlib.log.Progress)

log progress with pwntools

generate_keypair()

generate a keypair in .vagd directory

is_port_in_use(→ bool)

check if a port is currently used

first_free_port(→ int)

returns first free port starting from start (max increments = tries)

Module Contents

vagd.helper._GENERATE_KEYPAIR = 'ssh-keygen -q -t ed25519 -f {keyfile} -N ""'
vagd.helper.log
vagd.helper._ensure_log()

ensure the correct logger is set

vagd.helper.info(info: str)

log info with pwntools :param info: info to log

vagd.helper.debug(debug: str)

log debug with pwntools :param debug: debug to log

vagd.helper.warn(warn: str)

log warn with pwntools :param warn: warn to log

vagd.helper.error(error: str)

log error with pwntools :param error: error to log

vagd.helper.progress(progress: str) pwnlib.log.Progress

log progress with pwntools :param progress: progress to log

vagd.helper.generate_keypair()

generate a keypair in .vagd directory

vagd.helper.is_port_in_use(port: int) bool

check if a port is currently used :param port: port to check :return: if the port is already used

vagd.helper.first_free_port(start: int = 2222, tries: int = 101) int

returns first free port starting from start (max increments = tries) :param start: start of port search :param tries: number of tries to increment ports :return: first free port