':param command: The command as typed by the user in the console'

def _callback(self, command):

    try:
        parsed_command = shlex.split(command)
    except ValueError as ve:
        om.out.console(('%s' % ve))
    else:
        shell = self._exploit_results[self._selected_shell]
        command = parsed_command[0]
        params = parsed_command[1:]
        if (command == 'exit'):
            end_it = shell.end_interaction()
            if end_it:
                return self._console.back
            else:
                return None
        else:
            try:
                response = shell.generic_user_input(command, params)
            except BaseFrameworkException:
                raise
            except Exception as e:
                msg = 'The    "%s"    plugin    failed    to    execute    the    user    command,    exception:    "%s".'
                om.out.error((msg % (self._plugin.get_name(), e)))
                return False
            else:
                if (response is None):
                    return None
                else:
                    om.out.console(response)
            return None
