vagd.virts.shgd
Classes
ssh interface for pwntools |
Module Contents
- class vagd.virts.shgd.Shgd(binary: str, user: str = DEFAULT_USER, host: str = DEFAULT_HOST, port: int = DEFAULT_PORT, keyfile: str = Pwngd.KEYFILE, **kwargs)
Bases:
vagd.virts.pwngd.Pwngd
ssh interface for pwntools
- Parameters:
binary – binary to execute
user – ssh user
host – ssh hostname
port – ssh port
keyfile – ssh keyfile (default in .vagd)
kwargs – parameters to pass through to super
- DEFAULT_HOST = 'localhost'
- DEFAULT_PORT = 22
- DEFAULT_USER = 'root'
- _user: str
- _host: str
- _port: int
- _keyfile: str
- _ssh: pwnlib.tubes.ssh.ssh
- bind(port: int) int
bind port from ssh connection locally :param port: :return:
- _vm_setup() None
pass
- _TRIES = 3
- _ssh_setup() None
setup ssh connection