??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó àUdac@`s1ddlmZmZmZeZdZddlZddlZddl Z ddl Z ddl m Z ddlmZmZddlmZddlmZddlmZmZmZdd lmZdd lmZdd lmZdd lmZe Z!e"Z#y¶ddl$Z$dd l%m&Z&m'Z'm(Z(ddl)m*Z*m+Z+ddl,m-Z-m.Z.ddl/m0Z0m1Z1ddl2m3Z3m4Z4m5Z5ddl6m7Z7m8Z8ddl9m:Z:m;Z;Wne<k rÝZ=e>Z!e=Z#nXe Z?yddl@Z$Wne<k r e>Z?nXeƒZAdefd„ƒYZBdS(i(tabsolute_importtdivisiontprint_functions¿# author: Ansible Core Team connection: psrp short_description: Run tasks over Microsoft PowerShell Remoting Protocol description: - Run commands or put/fetch on a target via PSRP (WinRM plugin) - This is similar to the I(winrm) connection plugin which uses the same underlying transport but instead runs in a PowerShell interpreter. version_added: "2.7" requirements: - pypsrp (Python library) options: # transport options remote_addr: description: - The hostname or IP address of the remote host. default: inventory_hostname type: str vars: - name: ansible_host - name: ansible_psrp_host remote_user: description: - The user to log in as. type: str vars: - name: ansible_user - name: ansible_psrp_user remote_password: description: Authentication password for the C(remote_user). Can be supplied as CLI option. type: str vars: - name: ansible_password - name: ansible_winrm_pass - name: ansible_winrm_password aliases: - password # Needed for --ask-pass to come through on delegation port: description: - The port for PSRP to connect on the remote target. - Default is C(5986) if I(protocol) is not defined or is C(https), otherwise the port is C(5985). type: int vars: - name: ansible_port - name: ansible_psrp_port protocol: description: - Set the protocol to use for the connection. - Default is C(https) if I(port) is not defined or I(port) is not C(5985). choices: - http - https type: str vars: - name: ansible_psrp_protocol path: description: - The URI path to connect to. type: str vars: - name: ansible_psrp_path default: 'wsman' auth: description: - The authentication protocol to use when authenticating the remote user. - The default, C(negotiate), will attempt to use C(Kerberos) if it is available and fall back to C(NTLM) if it isn't. type: str vars: - name: ansible_psrp_auth choices: - basic - certificate - negotiate - kerberos - ntlm - credssp default: negotiate cert_validation: description: - Whether to validate the remote server's certificate or not. - Set to C(ignore) to not validate any certificates. - I(ca_cert) can be set to the path of a PEM certificate chain to use in the validation. choices: - validate - ignore default: validate type: str vars: - name: ansible_psrp_cert_validation ca_cert: description: - The path to a PEM certificate chain to use when validating the server's certificate. - This value is ignored if I(cert_validation) is set to C(ignore). type: path vars: - name: ansible_psrp_cert_trust_path - name: ansible_psrp_ca_cert aliases: [ cert_trust_path ] connection_timeout: description: - The connection timeout for making the request to the remote host. - This is measured in seconds. type: int vars: - name: ansible_psrp_connection_timeout default: 30 read_timeout: description: - The read timeout for receiving data from the remote host. - This value must always be greater than I(operation_timeout). - This option requires pypsrp >= 0.3. - This is measured in seconds. type: int vars: - name: ansible_psrp_read_timeout default: 30 version_added: '2.8' reconnection_retries: description: - The number of retries on connection errors. type: int vars: - name: ansible_psrp_reconnection_retries default: 0 version_added: '2.8' reconnection_backoff: description: - The backoff time to use in between reconnection attempts. (First sleeps X, then sleeps 2*X, then sleeps 4*X, ...) - This is measured in seconds. - The C(ansible_psrp_reconnection_backoff) variable was added in Ansible 2.9. type: int vars: - name: ansible_psrp_connection_backoff - name: ansible_psrp_reconnection_backoff default: 2 version_added: '2.8' message_encryption: description: - Controls the message encryption settings, this is different from TLS encryption when I(ansible_psrp_protocol) is C(https). - Only the auth protocols C(negotiate), C(kerberos), C(ntlm), and C(credssp) can do message encryption. The other authentication protocols only support encryption when C(protocol) is set to C(https). - C(auto) means means message encryption is only used when not using TLS/HTTPS. - C(always) is the same as C(auto) but message encryption is always used even when running over TLS/HTTPS. - C(never) disables any encryption checks that are in place when running over HTTP and disables any authentication encryption processes. type: str vars: - name: ansible_psrp_message_encryption choices: - auto - always - never default: auto proxy: description: - Set the proxy URL to use when connecting to the remote host. vars: - name: ansible_psrp_proxy type: str ignore_proxy: description: - Will disable any environment proxy settings and connect directly to the remote host. - This option is ignored if C(proxy) is set. vars: - name: ansible_psrp_ignore_proxy type: bool default: 'no' # auth options certificate_key_pem: description: - The local path to an X509 certificate key to use with certificate auth. type: path vars: - name: ansible_psrp_certificate_key_pem certificate_pem: description: - The local path to an X509 certificate to use with certificate auth. type: path vars: - name: ansible_psrp_certificate_pem credssp_auth_mechanism: description: - The sub authentication mechanism to use with CredSSP auth. - When C(auto), both Kerberos and NTLM is attempted with kerberos being preferred. type: str choices: - auto - kerberos - ntlm default: auto vars: - name: ansible_psrp_credssp_auth_mechanism credssp_disable_tlsv1_2: description: - Disables the use of TLSv1.2 on the CredSSP authentication channel. - This should not be set to C(yes) unless dealing with a host that does not have TLSv1.2. default: no type: bool vars: - name: ansible_psrp_credssp_disable_tlsv1_2 credssp_minimum_version: description: - The minimum CredSSP server authentication version that will be accepted. - Set to C(5) to ensure the server has been patched and is not vulnerable to CVE 2018-0886. default: 2 type: int vars: - name: ansible_psrp_credssp_minimum_version negotiate_delegate: description: - Allow the remote user the ability to delegate it's credentials to another server, i.e. credential delegation. - Only valid when Kerberos was the negotiated auth or was explicitly set as the authentication. - Ignored when NTLM was the negotiated auth. type: bool vars: - name: ansible_psrp_negotiate_delegate negotiate_hostname_override: description: - Override the remote hostname when searching for the host in the Kerberos lookup. - This allows Ansible to connect over IP but authenticate with the remote server using it's DNS name. - Only valid when Kerberos was the negotiated auth or was explicitly set as the authentication. - Ignored when NTLM was the negotiated auth. type: str vars: - name: ansible_psrp_negotiate_hostname_override negotiate_send_cbt: description: - Send the Channel Binding Token (CBT) structure when authenticating. - CBT is used to provide extra protection against Man in the Middle C(MitM) attacks by binding the outer transport channel to the auth channel. - CBT is not used when using just C(HTTP), only C(HTTPS). default: yes type: bool vars: - name: ansible_psrp_negotiate_send_cbt negotiate_service: description: - Override the service part of the SPN used during Kerberos authentication. - Only valid when Kerberos was the negotiated auth or was explicitly set as the authentication. - Ignored when NTLM was the negotiated auth. default: WSMAN type: str vars: - name: ansible_psrp_negotiate_service # protocol options operation_timeout: description: - Sets the WSMan timeout for each operation. - This is measured in seconds. - This should not exceed the value for C(connection_timeout). type: int vars: - name: ansible_psrp_operation_timeout default: 20 max_envelope_size: description: - Sets the maximum size of each WSMan message sent to the remote host. - This is measured in bytes. - Defaults to C(150KiB) for compatibility with older hosts. type: int vars: - name: ansible_psrp_max_envelope_size default: 153600 configuration_name: description: - The name of the PowerShell configuration endpoint to connect to. type: str vars: - name: ansible_psrp_configuration_name default: Microsoft.PowerShell N(t constants(tAnsibleConnectionFailuret AnsibleError(tAnsibleFileNotFound(tboolean(tto_bytest to_nativetto_text(tConnectionBase(t _common_args(tDisplay(tsha1(tGenericComplexObjecttPSInvocationStatetRunspacePoolState(tAuthenticationErrort WinRMError(tPSHosttPSHostUserInterface(t PowerShellt RunspacePool(tProcesst SignalCodetWinRS(tWSMant AUTH_KWARGS(tConnectionErrortConnectTimeoutt ConnectioncB`s¤eZdZdZeZeZeZd„Z d„Z d„Z ded„Z d„Zd „Zd „Zd „Zd „Zd „Zdeedd„Zd„ZRS(tpsrps.ps1s.exetcO`s¡t|_t|_d|_d|_d|_tt|ƒj ||Žt j st j dƒjt jƒt j dƒjt jƒt j dƒjt jƒndS(Nt powershelltpypsrptrequests_credsspturllib3(tTruetalways_pipeline_modulesthas_native_asynctNonetrunspacethostt _shell_typetsuperRt__init__tCt DEFAULT_DEBUGtloggingt getLoggertsetLeveltWARNINGtINFO(tselftargstkwargs((sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyR.\s      cC`ststdttƒƒ‚ntt|ƒjƒ|jƒtj d|j |j |j fd|j ƒ|j s™t|j}tƒ}tddtdd|dƒ|_t|d|jd|jƒ|_ tjd|j|j|jjfd|j ƒy|j jƒWntk r6}tdt|ƒƒ‚nWtk r^}tdt|ƒƒ‚n/tt fk rŒ}td t|ƒƒ‚nXt!|_"n|S( Ns,pypsrp or dependencies are not installed: %ss7ESTABLISH PSRP CONNECTION FOR USER: %s ON PORT %s TO %sR+sAnsible PSRP Hosttconfiguration_names8PSRP OPEN RUNSPACE: auth=%s configuration=%s endpoint=%ss*failed to authenticate with the server: %ss0psrp connection failure during runspace open: %ss*Failed to connect to the host via PSRP: %s(#t HAS_PYPSRPRR tPYPSRP_IMP_ERRR-Rt_connectt _build_kwargstdisplaytvvvt _psrp_usert _psrp_portt _psrp_hostR*Rt_psrp_conn_kwargsRRR)tFalseR+Rt_psrp_configuration_nametvvvvvt _psrp_autht transporttendpointtopenRRRRRR&t _connected(R6t connectionthost_uite((sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyR<ksF       cC`s:|js dStjdd|jƒd|_|jƒdS(NsPSRP: Reset ConnectionR+(RKR>RFRBR)R*R<(R6((sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pytreset™s   c C`sftt|ƒj|d|d|ƒ|jdjtƒdƒrtj|jdƒdƒ}t |dƒ}t |ddd d ƒ}|rÃ|jd ƒrÃt |j ƒd d ƒ}t d|ƒ‚n|j jdddƒ}||kr÷tjdƒq>tjd|d|jƒn*t d|ƒ}tjd|d|jƒ|j||ƒ\}} } || | fS(Ntin_datatsudoablet s -EncodedCommandiÿÿÿÿs utf-16-leterrorstsurrogate_or_strictt nonstringtpassthruu#!iis=cannot run the interpreter '%s' on the psrp connection pluginR!s!PSRP: EXEC (via pipeline wrapper)s PSRP: EXEC %sR+u%s exit $LASTEXITCODEu PSRP: EXEC %s(R-Rt exec_commandt startswithtjoinR tbase64t b64decodetsplitR R t splitlinesRt_shelltbuild_module_commandR>R?RBt_exec_psrp_script( R6tcmdRPRQt b_commandtscriptt interpretertbootstrap_wrappertrctstdouttstderr((sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyRW s$  c C`s5tt|ƒj||ƒ|jj|ƒ}tjd||fd|jƒtrr|j ||ƒ\}}}}n|j ||ƒ\}}}}|dkr±t t |ƒƒ‚nt jt|ƒƒ}|jdƒ}|st dt |ƒt |ƒfƒ‚n||ks1t dt |ƒt |ƒfƒ‚ndS(Ns PUT %s TO %sR+iRs8Remote sha1 was not returned, stdout: '%s', stderr: '%s's0Remote sha1 hash %s does not match local hash %s(R-Rtput_fileR^t_unquoteR>R?RBt NEWER_PYPSRPt _put_file_newt _put_file_oldRR tjsontloadsR tget( R6tin_pathtout_pathRfRgRht local_sha1t put_outputt remote_sha1((sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyRiÇs  !  c `sd|}|jj|dtdtdtƒ}t|ddƒ}tjj|ƒsktdt |ƒƒ‚ntjj |ƒ}t |j j jdd ƒ‰tƒ}t|j j d d ƒ&}t||d |d ƒ} | jƒd } t|dƒʉxžt‡‡fd†dƒD]} | t| ƒ7} tjd||| t| ƒfd|jƒtj| ƒd} | j| dˆjƒ|kƒ|j| ƒqW| d kr½| jddtƒnWdQX| jƒ| jt j!ƒWdQX| j"| j#| j$|j%ƒfS(Nu˜begin { $ErrorActionPreference = "Stop" $ProgressPreference = 'SilentlyContinue' $path = '%s' $fd = [System.IO.File]::Create($path) $algo = [System.Security.Cryptography.SHA1CryptoServiceProvider]::Create() $bytes = @() } process { $bytes = [System.Convert]::FromBase64String($input) $algo.TransformBlock($bytes, 0, $bytes.Length, $bytes, 0) > $null $fd.Write($bytes, 0, $bytes.Length) } end { $fd.Close() $algo.TransformFinalBlock($bytes, 0, 0) > $null $hash = [System.BitConverter]::ToString($algo.Hash) $hash = $hash.Replace("-", "").ToLowerInvariant() Write-Output -InputObject "{`"sha1`":`"$hash`"}" }tas_listt strict_modet preserve_rcRSRTs#file or module does not exist: "%s"iitcodepageiéýiitrbc`s ˆjˆƒS(N(tread((t buffer_sizetsrc_file(sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pytsR!s%PSRP PUT %s to %s (offset=%d, size=%dR+s tend(&R^t_encode_scriptR&RDRtostpathtexistsRR tgetsizetintR*RLtmax_payload_sizeRRRt begin_invokeRJtitertlenR>RFRBRZt b64encodetsendttelltupdatet end_invoketsignalRtCTRL_CRfRgRht hexdigest( R6RqRrRct cmd_partst b_in_pathtin_sizet sha1_hashtshelltprocesstoffsettdatatb64_data((R|R}sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyRmäs:    "    c`sÎd}tˆjjjdddƒ‰tƒ‰tˆddƒ‰tjjˆƒsmt dt ˆƒƒ‚n‡‡‡‡‡‡fd†}ˆj ||ƒd ˆgd t ƒ\}}}|||ˆj ƒfS( NsÌ begin { $ErrorActionPreference = "Stop" $WarningPreference = "Continue" $path = $MyInvocation.UnboundArguments[0] $fd = [System.IO.File]::Create($path) $algo = [System.Security.Cryptography.SHA1CryptoServiceProvider]::Create() $bytes = @() $bindingFlags = [System.Reflection.BindingFlags]'NonPublic, Instance' Function Get-Property { <# .SYNOPSIS Gets the private/internal property specified of the object passed in. #> Param ( [Parameter(Mandatory=$true, ValueFromPipeline=$true)] [System.Object] $Object, [Parameter(Mandatory=$true, Position=1)] [System.String] $Name ) $Object.GetType().GetProperty($Name, $bindingFlags).GetValue($Object, $null) } Function Set-Property { <# .SYNOPSIS Sets the private/internal property specified on the object passed in. #> Param ( [Parameter(Mandatory=$true, ValueFromPipeline=$true)] [System.Object] $Object, [Parameter(Mandatory=$true, Position=1)] [System.String] $Name, [Parameter(Mandatory=$true, Position=2)] [AllowNull()] [System.Object] $Value ) $Object.GetType().GetProperty($Name, $bindingFlags).SetValue($Object, $Value, $null) } Function Get-Field { <# .SYNOPSIS Gets the private/internal field specified of the object passed in. #> Param ( [Parameter(Mandatory=$true, ValueFromPipeline=$true)] [System.Object] $Object, [Parameter(Mandatory=$true, Position=1)] [System.String] $Name ) $Object.GetType().GetField($Name, $bindingFlags).GetValue($Object) } # MaximumAllowedMemory is required to be set to so we can send input data that exceeds the limit on a PS # Runspace. We use reflection to access/set this property as it is not accessible publicly. This is not ideal # but works on all PowerShell versions I've tested with. We originally used WinRS to send the raw bytes to the # host but this falls flat if someone is using a custom PS configuration name so this is a workaround. This # isn't required for smaller files so if it fails we ignore the error and hope it wasn't needed. # https://github.com/PowerShell/PowerShell/blob/c8e72d1e664b1ee04a14f226adf655cced24e5f0/src/System.Management.Automation/engine/serialization.cs#L325 try { $Host | Get-Property 'ExternalHost' | ` Get-Field '_transportManager' | ` Get-Property 'Fragmentor' | ` Get-Property 'DeserializationContext' | ` Set-Property 'MaximumAllowedMemory' $null } catch {} } process { $bytes = [System.Convert]::FromBase64String($input) $algo.TransformBlock($bytes, 0, $bytes.Length, $bytes, 0) > $null $fd.Write($bytes, 0, $bytes.Length) } end { $fd.Close() $algo.TransformFinalBlock($bytes, 0, 0) > $null $hash = [System.BitConverter]::ToString($algo.Hash).Replace('-', '').ToLowerInvariant() Write-Output -InputObject "{`"sha1`":`"$hash`"}" } iRiiRSRTs#file or module does not exist: "%s"c 3`sÅd}tˆdƒª‰x‰t‡‡fd†dƒD]l}t|ƒ}||7}ˆj|ƒtjdˆˆ||fdˆjƒtj|ƒ}t |ƒgVq4W|dkr»dgVnWdQXdS(NiRzc`s ˆjˆƒS(N(R{((R|tsrc_fd(sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyR~sR!s%PSRP PUT %s to %s (offset=%d, size=%dR+( RJRˆR‰RR>RFRBRZRŠR (R˜tb_datatdata_lenRš(R“R|RqRrR6R•(R›sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pytread_genŒs"     t argumentst force_stop(R…R*RLR†RRRR‚RƒRR R`R&R‘(R6RqRrt copy_scriptRžRfRgRh((R“R|RqRrR6R•sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyRl!s_! -c C`s_tt|ƒj||ƒtjd||fd|jƒ|jj|ƒ}|jddƒ}t |j j j |j j j ddƒ}||d}d|jj |ƒ|f}d }|j|d td tƒ\}}} |d krtd |t| ƒfƒ‚n|jƒdkrdSt|ddƒ} d } t| dƒ} xÂtr tjd||| fd|jƒ|j|| d tƒ\}}} |d kr¿td|t| ƒfƒ‚ntj|jƒƒ} | j| ƒt| ƒ|kr÷Pn| t| ƒ7} qIW|jdd tƒ\}}} |d krUtjd|t| ƒfƒnWdQXdS(NsFETCH %s TO %sR+s\t/iiisê$ErrorActionPreference = "Stop" $path = '%s' if (Test-Path -Path $path -PathType Leaf) { $fs = New-Object -TypeName System.IO.FileStream -ArgumentList @( $path, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Read, [System.IO.FileShare]::Read ) $buffer_size = %d } elseif (Test-Path -Path $path -PathType Container) { Write-Output -InputObject "[DIR]" } else { Write-Error -Message "$path does not exist" $host.SetShouldExit(1) }sU$ErrorActionPreference = "Stop" $fs.Seek(%d, [System.IO.SeekOrigin]::Begin) > $null $buffer = New-Object -TypeName byte[] -ArgumentList $buffer_size $bytes_read = $fs.Read($buffer, 0, $buffer_size) if ($bytes_read -gt 0) { $bytes = $buffer[0..($bytes_read - 1)] Write-Output -InputObject ([System.Convert]::ToBase64String($bytes)) }tuse_local_scopeR is.failed to setup file stream for fetch '%s': %ss[DIR]RSRTtwbsPSRP FETCH %s to %s (offset=%ds#failed to transfer file to '%s': %ss $fs.Close()s3failed to close remote file stream of file '%s': %s(R-Rt fetch_fileR>R?RBR^RjtreplaceR…R*RLR†t_escapeR`RDR&RR tstripRRJRFRZR[twriteR‰twarning(R6RqRrt max_b64_sizeR|t setup_scriptt read_scriptRfRgRht b_out_pathR˜tout_fileR™((sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyR¥£sJ      "    cC`sd|jrN|jjtjkrNtjd|jjd|jƒ|jjƒnd|_t |_ dS(NsPSRP CLOSE RUNSPACE: %sR+( R*tstateRtOPENEDR>RFtidRBtcloseR)RDRK(R6((sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyR³òs   c 0C`sW|jdƒ|_|jdƒ|_|jdƒ|_|jdƒ}|jdƒ}|dkr{|dkr{d}d}nT|dkr¨t|ƒdkrŸdnd }n'|dkrÏ|dkrÆdnd}n||_t|ƒ|_|jd ƒ|_|jd ƒ|_ |jd ƒ}|jd ƒ}|dkrAt |_ n!|dk rY||_ n t |_ |jdƒ|_ |jdƒ|_|jdƒ|_|jdƒ|_t|jdƒƒ|_t|jdƒƒ|_t|jdƒƒ|_|jdƒ|_t|jdƒƒ|_t|jdƒƒ|_|jdƒ|_|jdƒ|_|jdƒ|_|jdƒ|_|jdƒ|_|jdƒ|_|jdƒ|_|jd ƒ|_ |jd!ƒ|_!g}x!t"j#ƒD]}|j$|ƒqéWt%g|jd"ƒD]}|j&d#d$ƒ^qƒ}|j'|ƒ} x| D]} t(j)d%| ƒqJWt*d&|jd|jd'|jd(|jd)|jdkd |jd |j d |j d|j d*|jd|jd+|jd|jd|jd|jd|jd|jd|jd|jd|jd|jd |j d!|j!ƒ|_+t,t-d,ƒrwd-t-j.krw|j|j+d|jdk röt(j)d0ƒn|jdk rt(j)d1ƒnx;|j/|ƒD]*} |jd"ƒd2| } | |j+| RªtdictRCthasattrR#RÙt intersection( R6R·R¸R¼tcert_trust_pathtsupported_argst auth_kwargtvt extra_argstunsupported_argstargtoption((sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyR=ús¨  !       .               c C`st|jƒ}|j|d|ƒ|rIx|D]}|j|ƒq/Wn|jd|ƒ|j|ƒ\}} } |rtj|_|j ƒn|| | fS(NR£tinput( RR*t add_scriptt add_argumenttinvoket_parse_pipeline_resultRtRUNNINGR°tstop( R6Rct input_dataR£R RŸtpsRRfRgRh((sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyR`cs   cC`sö|jjp|jrdnd}g}x×|jD]Ì}t|tƒrÞ|jdkrÞ|j}x4|j j ƒD]#\}}|j d||fƒqnWx4|j j ƒD]#\}}|j d||fƒq¥Wdj |ƒ}nt|ddƒ}|j |ƒq1Wt|jjjƒdkr2||jjj7}ndj |ƒ} g} x¶|jjD]¨} | jrpd| jnd } | jrŒd | jnd } d | t| ƒ| | j| jf}| j}|jjd krï|dk rï|d |7}n| j |ƒqTWt|jjjƒdkr1| |jjj7} ndj g| D]}t|ƒ^q>ƒ}tjd|d|jƒtjd| d|jƒtjd|d|jƒd|j_g|jj_g|jj_|t | ddƒt |ddƒfS(s} PSRP doesn't have the same concept as other protocols with its output. We need some extra logic to convert the pipeline streams and host output into the format that Ansible understands. :param pipeline: The finished PowerShell pipeline that invoked our commands :return: rc, stdout, stderr based on the pipeline output iiu%s: %su RUt simplerepru s%s : R!s%s sJ%s%s %s + CategoryInfo : %s + FullyQualifiedErrorId : %sis StackTrace: %ss PSRP RC: %dR+sPSRP STDOUT: %ssPSRP STDERR: %stencodingsutf-8N(!R+Rft had_errorstoutputt isinstanceRt to_stringR)t property_setstadapted_propertiestitemstappendtextended_propertiesRYR R‰tuiRgtstreamsterrort command_nametinvocation_position_messagetstrtmessagetfq_errortscript_stacktracet _play_contextt verbosityRhR>RFRBR(R6tpipelineRft stdout_listRt obj_linestkeytvaluet output_msgRgt stderr_listRRtpositiont error_msgt stacktracetoRh((sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyRysH !  ( (s.ps1s.exeR!N(t__name__t __module__RHt!module_implementation_preferencesRDtallow_executableR&thas_pipeliningt allow_extrasR.R<ROR)RWRiRmRlR¥R³R=R`R(((sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pyRTs"  . '  = ‚ O  i(Ct __future__RRRttypet __metaclass__t DOCUMENTATIONRZRnR1RtansibleRR/tansible.errorsRRRt)ansible.module_utils.parsing.convert_boolRtansible.module_utils._textRR R tansible.plugins.connectionR t ansible.plugins.shell.powershellR tansible.utils.displayR tansible.utils.hashingRR&R:R)R;R#tpypsrp.complex_objectsRRRtpypsrp.exceptionsRRt pypsrp.hostRRtpypsrp.powershellRRt pypsrp.shellRRRt pypsrp.wsmanRRtrequests.exceptionsRRt ImportErrorterrRDRktpypsrp.pwsh_scriptsR>R(((sC/usr/lib/python2.7/site-packages/ansible/plugins/connection/psrp.pytsJÿ'