hoses.__main__

Module Contents

Functions

main_listen

function that implements the “listen” command

main_connect

function that implements the “connect” command

main_proxy

function that implements the “proxy” command

cli_parse

Parse command line arguments

parse_logging_opts

Helper function that translate command line arguments into logging.basicConfig options.

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.