hoses.__main__
¶
Module Contents¶
Functions¶
function that implements the “listen” command |
|
function that implements the “connect” command |
|
function that implements the “proxy” command |
|
Parse command line arguments |
|
Helper function that translate command line arguments
into |
API¶
- hoses.__main__.main_listen(ns: argparse.Namespace) None ¶
function that implements the “listen” command
- Parameters:
ns (Namespace)
Essentially this command is equivalent to
netcat -l -p port
- hoses.__main__.main_connect(ns: argparse.Namespace) None ¶
function that implements the “connect” command
- Parameters:
ns (Namespace)
Essentially this is equivalent to
netcat target port
- hoses.__main__.main_proxy(ns: argparse.Namespace) None ¶
function that implements the “proxy” command
- Parameters:
ns (Namespace)
This is the main command that implements the SOCKS proxy functionality
- hoses.__main__.cli_parse()¶
Parse command line arguments
- Returns ArgumentParser:
command line parser
- hoses.__main__.parse_logging_opts(logopts)¶
Helper function that translate command line arguments into
logging.basicConfig
options.- Parameters:
logopts (list) – log options from the CLI namespace
This funciton calls
loging.basicConfig
.