Module Import alias Import alias Import alias identifier ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Assign TupleStore NameStore NameStore NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If Call NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str NameLoad orelse If Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore IfExp CompareEq NameLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore IfExp CompareEq NameLoad Str Num Num Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore Str Return Call AttributeLoad Str attr NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str decorator_list NameLoad decorator_list
N/A N/A re N/A base64 N/A xml.etree.ElementTree ET winrm.protocol Protocol Response N/A object N/A N/A Response from a remote command execution __init__ N/A N/A self args N/A N/A N/A N/A N/A self std_out N/A self std_err N/A self status_code args N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A <Response code {0}, out "{1}", err "{2}"> format N/A self status_code N/A N/A self std_out N/A 20 N/A N/A self std_err N/A 20 N/A N/A Session N/A object N/A __init__ N/A N/A self target auth transport N/A plaintext N/A N/A N/A username password auth N/A N/A self url N/A N/A self _build_url target transport N/A N/A self protocol N/A Protocol N/A self url transport transport username username password password N/A run_cmd N/A N/A self command args N/A N/A N/A N/A shell_id N/A N/A N/A self protocol open_shell N/A command_id N/A N/A N/A self protocol run_command shell_id command args N/A rs N/A Response N/A N/A N/A self protocol get_command_output shell_id command_id N/A N/A N/A N/A self protocol cleanup_command shell_id command_id N/A N/A N/A N/A self protocol close_shell shell_id N/A rs N/A run_ps N/A N/A self script N/A N/A N/A base64 encodes a Powershell script and executes the powershell
        encoded script command
         N/A base64_script N/A N/A base64 b64encode N/A N/A script encode utf_16_le N/A rs N/A N/A self run_cmd N/A powershell -encodedcommand %s base64_script N/A N/A len N/A rs std_err N/A N/A N/A rs std_err N/A N/A self clean_error_msg N/A rs std_err N/A rs N/A clean_error_msg N/A N/A self msg N/A N/A N/A converts a Powershell CLIXML message to a more human readable string
         N/A N/A N/A msg startswith #< CLIXML
 N/A N/A msg_xml N/A msg N/A 11 N/A N/A N/A msg_xml N/A N/A self strip_namespace msg_xml N/A root N/A N/A ET fromstring msg_xml N/A nodes N/A N/A root findall ./S N/A new_msg N/A s nodes N/A N/A new_msg N/A N/A N/A s text replace _x000D__x000A_ N/A N/A N/A Exception N/A e N/A N/A N/A Warning: there was a problem converting the Powershell error message: %s e N/A N/A N/A len new_msg N/A N/A msg N/A N/A new_msg strip N/A msg N/A strip_namespace N/A N/A self xml N/A N/A N/A strips any namespaces from an xml string N/A N/A N/A p N/A N/A re compile xmlns=*[""][^""]*[""] N/A allmatches N/A N/A p finditer xml N/A match allmatches N/A N/A xml N/A N/A xml replace N/A N/A match group N/A xml N/A N/A N/A Exception N/A e N/A N/A N/A Exception e N/A _build_url N/A N/A target transport N/A N/A N/A match N/A N/A re match (?i)^((?P<scheme>http[s]?)://)?(?P<host>[0-9a-z-_.]+)(:(?P<port>\d+))?(?P<path>(/)?(wsman)?)? target N/A scheme N/A N/A match group scheme N/A N/A scheme N/A N/A scheme N/A N/A transport ssl https http N/A host N/A N/A match group host N/A port N/A N/A match group port N/A N/A port N/A N/A port N/A N/A transport ssl 5986 5985 N/A path N/A N/A match group path N/A N/A path N/A N/A path wsman N/A N/A N/A {0}://{1}:{2}/{3} format scheme host port N/A N/A path lstrip / N/A staticmethod N/A