Example #1
0
def create_process(host: Host,
                   process_args: str,
                   parent: Union[str, int] = None,
                   hide: bool = True,
                   output: bool = False) -> Job:
    return Job.create_agent_command(host,
                                    'create_process',
                                    process_args=process_args,
                                    parent=parent,
                                    hide=hide,
                                    output=output)
Example #2
0
def create_process_as_user(host: Host,
                           process_args: str,
                           user_domain: str,
                           user_name: str,
                           user_pass: str,
                           parent: str = None,
                           hide: bool = True,
                           output: bool = False) -> Job:
    return Job.create_agent_command(host,
                                    'create_process_as_user',
                                    process_args=process_args,
                                    user_domain=user_domain,
                                    user_name=user_name,
                                    user_pass=user_pass,
                                    parent=parent,
                                    hide=hide,
                                    output=output)
Example #3
0
def write_commander(host: Host, path: str) -> Job:
    return Job.create_agent_command(host, "write_commander", path=path)
Example #4
0
def agent_shell_command(host: Host, command_line: str) -> Job:
    return Job.create_agent_command(host, 'execute', command_line=command_line)
Example #5
0
def get_clients(host: Host) -> Job:
    return Job.create_agent_command(host, 'clients')