'We need to use \'-v\' because otherwise netcat does not provide any
output to indicate whether a connection has been successful; our
regexp can certainly be improved, because we might get \'-v\' combined
with other parameters, like in "nc -nv"'

def processCommandString(self, username, current_path, command_string):

    if (re.search('(nc|netcat)[^\\d|\\|]*-v', command_string) is None):
        return re.sub('(nc(?:\\.traditional|\\.openbsd)?|netcat)', '\\1    -v', command_string)
    return command_string
