vagd.helper
Attributes
Functions
ensure the correct logger is set |
|
|
log info with pwntools |
|
log debug with pwntools |
|
log warn with pwntools |
|
log error with pwntools |
|
log progress with pwntools |
generate a keypair in .vagd directory |
|
|
check if a port is currently used |
|
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