How to: Challenge response in Powershell Script?

Advertisement

El Guapo
Joined:
Posts:
8
Location:
United States

How to: Challenge response in Powershell Script?

I am able to connect to a WebDAV site using WinSCP, and generated the code for that site in PowerShell. However, when I try the code to connect, I get an error saying the Basic challenge is rejected. I've been looking through code examples on the site and also through the forums before asking, but haven't found anything that allows me to handle this from a script. This script is a part of a scheduled automated workflow, so I would need a way to handle this that doesn't require any keyboard input.

Here's the barebones code generated by WinSCP:

# Load WinSCP .NET assembly
Add-Type -Path "WinSCPnet.dll"

# Set up session options
$sessionOptions = New-Object WinSCP.SessionOptions -Property @{
    Protocol = [WinSCP.Protocol]::Webdav
    HostName = "example.com"
    PortNumber = 443
    UserName = "username"
    Password = "password"
    WebdavSecure = $True
}

$session = New-Object WinSCP.Session

try
{
    # Connect
    $session.Open($sessionOptions)

    # Your code
}
finally
{
    $session.Dispose()
}

When connecting from the Windows app, I looked in the log & saw this:
. 2018-10-04 14:42:00.919 auth: Got challenge (code 401).
. 2018-10-04 14:42:00.919 auth: Got 'Basic' challenge.
. 2018-10-04 14:42:00.919 auth: Trying Basic challenge...
. 2018-10-04 14:42:00.919 auth: Accepted Basic challenge.
When I try my Powershell script, I get this error:
. 2018-10-04 14:45:59.609 ah_post_send (#1), code is 401 (want 401), WWW-Authenticate is Basic realm="example.com"
. 2018-10-04 14:45:59.609 auth: Got challenge (code 401).
. 2018-10-04 14:45:59.609 auth: Got 'Basic' challenge.
. 2018-10-04 14:45:59.609 auth: Trying Basic challenge...
. 2018-10-04 14:45:59.609 auth: No challenges accepted.
. 2018-10-04 14:45:59.609 sess: Closing connection.
. 2018-10-04 14:45:59.609 sess: Connection closed.
. 2018-10-04 14:45:59.609 Request ends, status 401 class 4xx, error line:
. 2018-10-04 14:45:59.609 Could not authenticate to server: rejected Basic challenge
. 2018-10-04 14:45:59.609 Request ends.
. 2018-10-04 14:45:59.609 Asking user:
. 2018-10-04 14:45:59.609 Error listing directory '/Your Files'. ("Authentication failed.","Could not authenticate to server: rejected Basic challenge")
< 2018-10-04 14:45:59.609 Script: Error listing directory '/Your Files'.
< 2018-10-04 14:45:59.609 Script: Authentication failed.

< 2018-10-04 14:45:59.609 Could not authenticate to server: rejected Basic challenge
. 2018-10-04 14:45:59.609 Script: Failed
> 2018-10-04 14:45:59.796 Script: exit
. 2018-10-04 14:45:59.796 Script: Exit code: 1
. 2018-10-04 14:45:59.796 sess: Destroying session.

Any suggestions would be greatly appreciated. Thanks!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
38,711
Location:
Prague, Czechia

Re: How to: Challenge response in Powershell Script?

Please attach a full session log file showing listing of that directory both from GUI and your code.

Reply with quote

El Guapo
Joined:
Posts:
8
Location:
United States

Re: How to: Challenge response in Powershell Script?

martin wrote:

Please attach a full session log file showing listing of that directory both from GUI and your code.
Thank you for taking a look at this!
I've anonymized the login & connection info, but otherwise it is unchanged.
Here is the application log:

. 2018-10-05 11:14:52.596 --------------------------------------------------------------------------
. 2018-10-05 11:14:52.596 WinSCP Version 5.9.3 (Build 7136) (OS 6.3.9600 - Windows Server 2012 R2 Standard)
. 2018-10-05 11:14:52.596 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2018-10-05 11:14:52.596 Log level: Normal
. 2018-10-05 11:14:52.596 Local account: username\accountname
. 2018-10-05 11:14:52.596 Working directory: C:\Program Files (x86)\WinSCP
. 2018-10-05 11:14:52.596 Process ID: 4404
. 2018-10-05 11:14:52.596 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" 
. 2018-10-05 11:14:52.596 Time zone: Current: GMT-4, Standard: GMT-5 (Eastern Standard Time), DST: GMT-4 (Eastern Daylight Time), DST Start: 3/11/2018, DST End: 11/4/2018
. 2018-10-05 11:14:52.596 Login time: Friday, October 5, 2018 11:14:52 AM
. 2018-10-05 11:14:52.596 --------------------------------------------------------------------------
. 2018-10-05 11:14:52.596 Session name: username@example-ftp.com (Site)
. 2018-10-05 11:14:52.596 Host name: example-ftp.com (Port: 443)
. 2018-10-05 11:14:52.596 User name: username (Password: Yes, Key file: No, Passphrase: No)
. 2018-10-05 11:14:52.596 Transfer Protocol: WebDAV
. 2018-10-05 11:14:52.596 Proxy: None
. 2018-10-05 11:14:52.596 HTTPS: Yes [Client certificate: No]
. 2018-10-05 11:14:52.596 TLS/SSL versions: TLSv1.0-TLSv1.2
. 2018-10-05 11:14:52.596 Local directory: C:\Users\accountname\Desktop, Remote directory: /My Files, Update: Yes, Cache: Yes
. 2018-10-05 11:14:52.596 Cache directory changes: Yes, Permanent: Yes
. 2018-10-05 11:14:52.596 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2018-10-05 11:14:52.596 DST mode: Unix
. 2018-10-05 11:14:52.596 Compression: No
. 2018-10-05 11:14:52.596 --------------------------------------------------------------------------
. 2018-10-05 11:14:53.315 HTTP session to https://example-ftp.com:443 begins.
. 2018-10-05 11:14:54.174 ssl: SNI enabled by default.
. 2018-10-05 11:14:54.174 ah_create, for WWW-Authenticate
. 2018-10-05 11:14:54.174 Sending request headers:
. 2018-10-05 11:14:54.174 OPTIONS /My%20Files HTTP/1.1

. 2018-10-05 11:14:54.174 User-Agent: WinSCP/5.9.3 neon/0.30.1

. 2018-10-05 11:14:54.174 Keep-Alive: 

. 2018-10-05 11:14:54.174 Connection: TE, Keep-Alive

. 2018-10-05 11:14:54.174 TE: trailers

. 2018-10-05 11:14:54.174 Host: example-ftp.com
. 2018-10-05 11:14:54.174 Sending request-line and headers:
. 2018-10-05 11:14:54.174 Doing DNS lookup on example-ftp.com...
. 2018-10-05 11:14:54.174 req: Connecting to 96.88.197.219:443
. 2018-10-05 11:14:54.237 Doing SSL negotiation.
. 2018-10-05 11:14:54.393 ssl: Verify callback @ 1 => 20
. 2018-10-05 11:14:54.393 ssl: Verify failures |= 8 => 8
. 2018-10-05 11:14:54.549 Chain depth: 2
. 2018-10-05 11:14:54.549 ssl: Match common name 'example-ftp.com' against ''
. 2018-10-05 11:14:54.549 ssl: Match common name 'www.example-ftp.com' against ''
. 2018-10-05 11:14:54.549 Identity match for '': bad
. 2018-10-05 11:14:54.549 ssl: Match common name 'GeoTrust SSL CA - G3' against ''
. 2018-10-05 11:14:54.549 Identity match for '': bad
. 2018-10-05 11:14:54.549 ssl: Match common name 'example-ftp.com' against 'example-ftp.com'
. 2018-10-05 11:14:54.549 Identity match for 'example-ftp.com': good
. 2018-10-05 11:14:54.549 Verifying certificate for "IT, Example, Anytown, Anystate, US" with fingerprint aa:bb:cc:dd:ee:ff:gg:11:22:33:44:55:66:77:88:99:00:aa:bb:cc and 08 failures
. 2018-10-05 11:14:54.596 Certificate verified against Windows certificate store
. 2018-10-05 11:14:54.596 Using TLSv1.2, cipher TLSv1/SSLv3: ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
. 2018-10-05 11:14:54.596 Request sent; retry is 0.
. 2018-10-05 11:14:54.690 [status-line] < HTTP/1.1 200 OK
. 2018-10-05 11:14:54.690 Header Name: [set-cookie], Value: [mainServerInstance=; path=/; secure]
. 2018-10-05 11:14:54.690 Header Name: [set-cookie], Value: [currentAuth=ewzb; path=/; secure]
. 2018-10-05 11:14:54.690 Header Name: [set-cookie], Value: [CrushAuth=1538752494158_jUmeUTZHUj5ayQNHJcSMGXAIc1ewzb; path=/; secure; HttpOnly]
. 2018-10-05 11:14:54.690 Header Name: [pragma], Value: [no-cache]
. 2018-10-05 11:14:54.690 Header Name: [x-responding-server], Value: [sslngn018]
. 2018-10-05 11:14:54.690 Header Name: [x-dmuser], Value: [username]
. 2018-10-05 11:14:54.690 Header Name: [ms-author-via], Value: [DAV]
. 2018-10-05 11:14:54.690 Header Name: [allow], Value: [GET, HEAD, OPTIONS, PUT, POST, COPY, PROPFIND, DELETE, LOCK, MKCOL, MOVE, PROPPATCH, UNLOCK, ACL, TRACE]
. 2018-10-05 11:14:54.690 Header Name: [dav], Value: [1,2, access-control, <http://apache.org/dav/propset/fs/1>]
. 2018-10-05 11:14:54.690 Header Name: [content-type], Value: [text/plain]
. 2018-10-05 11:14:54.690 Header Name: [date], Value: [Fri, 05 Oct 2018 15:14:54 GMT]
. 2018-10-05 11:14:54.690 Header Name: [server], Value: [CrushFTP HTTP Server]
. 2018-10-05 11:14:54.690 Header Name: [p3p], Value: [policyref="/WebInterface/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"]
. 2018-10-05 11:14:54.705 Header Name: [strict-transport-security], Value: [max-age=31536000; preload]
. 2018-10-05 11:14:54.705 Header Name: [x-frame-options], Value: [SAMEORIGIN]
. 2018-10-05 11:14:54.705 Header Name: [connection], Value: [close]
. 2018-10-05 11:14:54.705 Header Name: [content-length], Value: [0]
. 2018-10-05 11:14:54.705 End of headers.
. 2018-10-05 11:14:54.768 ah_post_send (#0), code is 200 (want 401), WWW-Authenticate is (none)
. 2018-10-05 11:14:54.768 sess: Closing connection.
. 2018-10-05 11:14:54.768 sess: Connection closed.
. 2018-10-05 11:14:54.768 Request ends, status 200 class 2xx, error line:
. 2018-10-05 11:14:54.768 200 OK
. 2018-10-05 11:14:54.768 Request ends.
. 2018-10-05 11:14:54.768 Server capabilities: 1, 2, <http://apache.org/dav/propset/fs/1>, access-control
. 2018-10-05 11:14:54.768 --------------------------------------------------------------------------
. 2018-10-05 11:14:54.768 Using WebDAV protocol.
. 2018-10-05 11:14:54.768 Doing startup conversation with host.
. 2018-10-05 11:14:54.830 Changing directory to "/My Files".
. 2018-10-05 11:14:54.830 Trying to open directory "/My Files/".
. 2018-10-05 11:14:54.830 ah_create, for WWW-Authenticate
> 2018-10-05 11:14:54.830 <?xml version="1.0" encoding="utf-8"?>
> 2018-10-05 11:14:54.830 <propfind xmlns="DAV:"><allprop/></propfind>
. 2018-10-05 11:14:54.830 Sending request headers:
. 2018-10-05 11:14:54.830 PROPFIND /My%20Files/ HTTP/1.1

. 2018-10-05 11:14:54.830 User-Agent: WinSCP/5.9.3 neon/0.30.1

. 2018-10-05 11:14:54.830 Connection: TE

. 2018-10-05 11:14:54.830 TE: trailers

. 2018-10-05 11:14:54.830 Host: example-ftp.com

. 2018-10-05 11:14:54.830 Depth: 0

. 2018-10-05 11:14:54.830 Content-Length: 84

. 2018-10-05 11:14:54.830 Content-Type: application/xml
. 2018-10-05 11:14:54.830 Sending request-line and headers:
. 2018-10-05 11:14:54.830 req: Connecting to 96.88.197.219:443
. 2018-10-05 11:14:54.893 Doing SSL negotiation.
. 2018-10-05 11:14:55.112 Sending request body:
. 2018-10-05 11:14:55.112 Request sent; retry is 0.
. 2018-10-05 11:14:55.221 [status-line] < HTTP/1.1 401 Unauthorized
. 2018-10-05 11:14:55.237 Header Name: [set-cookie], Value: [mainServerInstance=; path=/; secure]
. 2018-10-05 11:14:55.237 Header Name: [set-cookie], Value: [currentAuth=UWzn; path=/; secure]
. 2018-10-05 11:14:55.237 Header Name: [set-cookie], Value: [CrushAuth=1538752494673_cnkZeoaucYPNM8VOxeZsZZdxQOUWzn; path=/; secure; HttpOnly]
. 2018-10-05 11:14:55.237 Header Name: [pragma], Value: [no-cache]
. 2018-10-05 11:14:55.237 Header Name: [connection], Value: [close]
. 2018-10-05 11:14:55.237 Header Name: [www-authenticate], Value: [Basic realm="example-ftp.com"]
. 2018-10-05 11:14:55.237 Header Name: [content-type], Value: [text/html;charset=utf-8]
. 2018-10-05 11:14:55.237 Header Name: [content-length], Value: [12]
. 2018-10-05 11:14:55.237 End of headers.
. 2018-10-05 11:14:55.237 ah_post_send (#0), code is 401 (want 401), WWW-Authenticate is Basic realm="example-ftp.com"
. 2018-10-05 11:14:55.237 auth: Got challenge (code 401).
. 2018-10-05 11:14:55.237 auth: Got 'Basic' challenge.
. 2018-10-05 11:14:55.237 auth: Trying Basic challenge...
. 2018-10-05 11:14:55.237 auth: Accepted Basic challenge.
. 2018-10-05 11:14:55.237 sess: Closing connection.
. 2018-10-05 11:14:55.237 sess: Connection closed.
. 2018-10-05 11:14:55.237 auth: Sending 'Basic' response.
> 2018-10-05 11:14:55.237 <?xml version="1.0" encoding="utf-8"?>
> 2018-10-05 11:14:55.237 <propfind xmlns="DAV:"><allprop/></propfind>
. 2018-10-05 11:14:55.237 Sending request headers:
. 2018-10-05 11:14:55.237 PROPFIND /My%20Files/ HTTP/1.1

. 2018-10-05 11:14:55.237 User-Agent: WinSCP/5.9.3 neon/0.30.1

. 2018-10-05 11:14:55.237 Connection: TE

. 2018-10-05 11:14:55.237 TE: trailers

. 2018-10-05 11:14:55.237 Host: example-ftp.com

. 2018-10-05 11:14:55.237 Depth: 0

. 2018-10-05 11:14:55.237 Content-Length: 84

. 2018-10-05 11:14:55.237 Content-Type: application/xml

. 2018-10-05 11:14:55.237 Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
. 2018-10-05 11:14:55.237 Sending request-line and headers:
. 2018-10-05 11:14:55.237 req: Connecting to 96.88.197.219:443
. 2018-10-05 11:14:55.284 Doing SSL negotiation.
. 2018-10-05 11:14:55.440 Sending request body:
. 2018-10-05 11:14:55.440 Request sent; retry is 0.
. 2018-10-05 11:14:55.612 [status-line] < HTTP/1.1 207 Multi-Status
. 2018-10-05 11:14:55.690 Header Name: [date], Value: [Fri, 05 Oct 2018 15:14:55 GMT]
. 2018-10-05 11:14:55.690 Header Name: [server], Value: [CrushFTP HTTP Server]
. 2018-10-05 11:14:55.690 Header Name: [p3p], Value: [policyref="/WebInterface/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"]
. 2018-10-05 11:14:55.690 Header Name: [strict-transport-security], Value: [max-age=31536000; preload]
. 2018-10-05 11:14:55.690 Header Name: [x-frame-options], Value: [SAMEORIGIN]
. 2018-10-05 11:14:55.690 Header Name: [keep-alive], Value: [timeout=15, max=20]
. 2018-10-05 11:14:55.690 Header Name: [connection], Value: [Keep-Alive]
. 2018-10-05 11:14:55.690 Header Name: [content-length], Value: [716]
. 2018-10-05 11:14:55.690 Header Name: [content-type], Value: [text/xml; charset="utf-8"]
. 2018-10-05 11:14:55.690 End of headers.
. 2018-10-05 11:14:55.690 ah_post_send (#1), code is 207 (want 401), WWW-Authenticate is (none)
< 2018-10-05 11:14:55.690 <?xml version="1.0" encoding="UTF-8"?>

< 2018-10-05 11:14:55.690 <D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">

< 2018-10-05 11:14:55.690   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:55.690     <D:href>/My%20Files/</D:href>

< 2018-10-05 11:14:55.690     <D:propstat>

< 2018-10-05 11:14:55.690       <D:prop>

< 2018-10-05 11:14:55.690         <lp1:getlastmodified>Fri, 05 Oct 2018 15:14:55 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:55.690         <D:modificationdate>2018-10-05T11:14:55Z</D:modificationdate>

< 2018-10-05 11:14:55.690         <D:getcontenttype>httpd/unix-directory</D:getcontenttype>

< 2018-10-05 11:14:55.690         <lp1:resourcetype>

< 2018-10-05 11:14:55.690           <D:collection />

< 2018-10-05 11:14:55.690         </lp1:resourcetype>

< 2018-10-05 11:14:55.690         <D:quotaused>0</D:quotaused>

< 2018-10-05 11:14:55.690       </D:prop>

< 2018-10-05 11:14:55.690       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:55.690     </D:propstat>

< 2018-10-05 11:14:55.690   </D:response>

< 2018-10-05 11:14:55.690 </D:multistatus>
. 2018-10-05 11:14:55.690 Request ends, status 207 class 2xx, error line:
. 2018-10-05 11:14:55.690 207 Multi-Status
. 2018-10-05 11:14:55.690 Request ends.
. 2018-10-05 11:14:55.690 Getting current directory name.
. 2018-10-05 11:14:55.830 ah_create, for WWW-Authenticate
. 2018-10-05 11:14:55.830 auth: Sending 'Basic' response.
> 2018-10-05 11:14:55.830 <?xml version="1.0" encoding="utf-8"?>
> 2018-10-05 11:14:55.830 <propfind xmlns="DAV:"><allprop/></propfind>
. 2018-10-05 11:14:55.830 Sending request headers:
. 2018-10-05 11:14:55.830 PROPFIND /My%20Files/ HTTP/1.1

. 2018-10-05 11:14:55.830 User-Agent: WinSCP/5.9.3 neon/0.30.1

. 2018-10-05 11:14:55.830 Connection: TE

. 2018-10-05 11:14:55.830 TE: trailers

. 2018-10-05 11:14:55.830 Host: example-ftp.com

. 2018-10-05 11:14:55.830 Depth: 1

. 2018-10-05 11:14:55.830 Content-Length: 84

. 2018-10-05 11:14:55.830 Content-Type: application/xml

. 2018-10-05 11:14:55.830 Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
. 2018-10-05 11:14:55.830 Sending request-line and headers:
. 2018-10-05 11:14:55.830 Sending request body:
. 2018-10-05 11:14:55.830 Request sent; retry is 1.
. 2018-10-05 11:14:55.987 [status-line] < HTTP/1.1 207 Multi-Status
. 2018-10-05 11:14:56.002 Header Name: [date], Value: [Fri, 05 Oct 2018 15:14:55 GMT]
. 2018-10-05 11:14:56.002 Header Name: [server], Value: [CrushFTP HTTP Server]
. 2018-10-05 11:14:56.002 Header Name: [p3p], Value: [policyref="/WebInterface/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"]
. 2018-10-05 11:14:56.002 Header Name: [strict-transport-security], Value: [max-age=31536000; preload]
. 2018-10-05 11:14:56.002 Header Name: [x-frame-options], Value: [SAMEORIGIN]
. 2018-10-05 11:14:56.002 Header Name: [keep-alive], Value: [timeout=15, max=20]
. 2018-10-05 11:14:56.002 Header Name: [connection], Value: [Keep-Alive]
. 2018-10-05 11:14:56.002 Header Name: [content-length], Value: [13113]
. 2018-10-05 11:14:56.002 Header Name: [content-type], Value: [text/xml; charset="utf-8"]
. 2018-10-05 11:14:56.002 End of headers.
. 2018-10-05 11:14:56.065 ah_post_send (#0), code is 207 (want 401), WWW-Authenticate is (none)
< 2018-10-05 11:14:56.065 <?xml version="1.0" encoding="UTF-8"?>

< 2018-10-05 11:14:56.065 <D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Fri, 05 Oct 2018 15:14:55 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-10-05T11:14:55Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>httpd/unix-directory</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype>

< 2018-10-05 11:14:56.065           <D:collection />

< 2018-10-05 11:14:56.065         </lp1:resourcetype>

< 2018-10-05 11:14:56.065         <D:quotaused>0</D:quotaused>

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/completed/</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Mon, 01 Oct 2018 19:29:53 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-10-01T15:29:53Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>httpd/unix-directory</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype>

< 2018-10-05 11:14:56.065           <D:collection />

< 2018-10-05 11:14:56.065         </lp1:resourcetype>

< 2018-10-05 11:14:56.065         <D:quotaused>0</D:quotaused>

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_09202018.xlsx</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>72923</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Mon, 24 Sep 2018 18:20:06 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-09-24T14:20:06Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/binary</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_09212018.xlsx</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>24143</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Mon, 24 Sep 2018 18:20:07 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-09-24T14:20:07Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/binary</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_09242018.xlsx</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>101533</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Wed, 26 Sep 2018 14:37:15 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-09-26T10:37:15Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/binary</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_09252018.xlsx</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>45325</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Wed, 26 Sep 2018 20:59:44 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-09-26T16:59:44Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/binary</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_09262018.xlsx</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>42917</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Thu, 27 Sep 2018 13:17:14 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-09-27T09:17:14Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/binary</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_09272018.xlsx</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>14394</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Fri, 28 Sep 2018 18:53:52 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-09-28T14:53:52Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/binary</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_09282018.xlsx</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>64504</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Mon, 01 Oct 2018 20:39:50 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-10-01T16:39:50Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/binary</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_10012018.xlsx</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>132854</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Tue, 02 Oct 2018 20:41:35 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-10-02T16:41:35Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/binary</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_10022018.xlsx</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>37224</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Wed, 03 Oct 2018 17:51:13 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-10-03T13:51:13Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/binary</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_10032018.xlsx</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>17889</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Thu, 04 Oct 2018 20:52:19 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-10-04T16:52:19Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/binary</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_Images_09202018.zip</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>73036769</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Mon, 24 Sep 2018 18:24:25 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-09-24T14:24:25Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/zip</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_Images_09212018.zip</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>20021171</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Mon, 24 Sep 2018 18:24:38 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-09-24T14:24:38Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/zip</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_Images_09242018.zip</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>98504695</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Wed, 26 Sep 2018 14:35:59 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-09-26T10:35:59Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/zip</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_Images_09252018.zip</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>43725644</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Wed, 26 Sep 2018 21:00:55 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-09-26T17:00:55Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/zip</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_Images_09262018.zip</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>44349690</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Thu, 27 Sep 2018 13:17:08 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-09-27T09:17:08Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/zip</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_Images_09272018.zip</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>9393043</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Fri, 28 Sep 2018 18:54:56 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-09-28T14:54:56Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/zip</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_Images_09282018.zip</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>94805096</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Mon, 01 Oct 2018 20:43:41 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-10-01T16:43:41Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/zip</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_Images_10012018.zip</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>112496970</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Tue, 02 Oct 2018 20:41:36 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-10-02T16:41:36Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/zip</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_Images_10022018.zip</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>41862773</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Wed, 03 Oct 2018 17:51:08 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-10-03T13:51:08Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/zip</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065   <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:g0="DAV:">

< 2018-10-05 11:14:56.065     <D:href>/My%20Files/ZZ_Images_10032018.zip</D:href>

< 2018-10-05 11:14:56.065     <D:propstat>

< 2018-10-05 11:14:56.065       <D:prop>

< 2018-10-05 11:14:56.065         <lp1:getcontentlength>17082145</lp1:getcontentlength>

< 2018-10-05 11:14:56.065         <lp1:getlastmodified>Thu, 04 Oct 2018 20:52:21 GMT</lp1:getlastmodified>

< 2018-10-05 11:14:56.065         <D:modificationdate>2018-10-04T16:52:21Z</D:modificationdate>

< 2018-10-05 11:14:56.065         <D:getcontenttype>application/zip</D:getcontenttype>

< 2018-10-05 11:14:56.065         <lp1:resourcetype />

< 2018-10-05 11:14:56.065       </D:prop>

< 2018-10-05 11:14:56.065       <D:status>HTTP/1.1 200 OK</D:status>

< 2018-10-05 11:14:56.065     </D:propstat>

< 2018-10-05 11:14:56.065   </D:response>

< 2018-10-05 11:14:56.065 </D:multistatus>
. 2018-10-05 11:14:56.065 Request ends, status 207 class 2xx, error line:
. 2018-10-05 11:14:56.065 207 Multi-Status
. 2018-10-05 11:14:56.065 Request ends.
. 2018-10-05 11:14:56.065 ..;D;0;2018-10-05T15:14:55.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 completed;D;0;2018-10-01T19:29:53.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_09202018.xlsx;-;72923;2018-09-24T18:20:06.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_09212018.xlsx;-;24143;2018-09-24T18:20:07.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_09242018.xlsx;-;101533;2018-09-26T14:37:15.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_09252018.xlsx;-;45325;2018-09-26T20:59:44.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_09262018.xlsx;-;42917;2018-09-27T13:17:14.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_09272018.xlsx;-;14394;2018-09-28T18:53:52.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_09282018.xlsx;-;64504;2018-10-01T20:39:50.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_10012018.xlsx;-;132854;2018-10-02T20:41:35.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_10022018.xlsx;-;37224;2018-10-03T17:51:13.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_10032018.xlsx;-;17889;2018-10-04T20:52:19.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_Images_09202018.zip;-;73036769;2018-09-24T18:24:25.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_Images_09212018.zip;-;20021171;2018-09-24T18:24:38.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_Images_09242018.zip;-;98504695;2018-09-26T14:35:59.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_Images_09252018.zip;-;43725644;2018-09-26T21:00:55.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_Images_09262018.zip;-;44349690;2018-09-27T13:17:08.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_Images_09272018.zip;-;9393043;2018-09-28T18:54:56.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_Images_09282018.zip;-;94805096;2018-10-01T20:43:41.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_Images_10012018.zip;-;112496970;2018-10-02T20:41:36.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_Images_10022018.zip;-;41862773;2018-10-03T17:51:08.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.065 ZZ_Images_10032018.zip;-;17082145;2018-10-04T20:52:21.000Z;3;"" [0];"" [0];---------;0
. 2018-10-05 11:14:56.143 Startup conversation with host finished.
Last edited by El Guapo on 2018-10-05 16:30; edited 2 times in total

Reply with quote

El Guapo
Joined:
Posts:
8
Location:
United States

Re: How to: Challenge response in Powershell Script?

martin wrote:

Please attach a full session log file showing listing of that directory both from GUI and your code.
Here is the log from my script. It was cutting off in the previous post, so I'm putting it here:
. 2018-10-05 11:02:51.559 --------------------------------------------------------------------------
. 2018-10-05 11:02:51.559 WinSCP Version 5.9.3 (Build 7136) (OS 6.3.9600 - Windows Server 2012 R2 Standard)
. 2018-10-05 11:02:51.559 Configuration: nul
. 2018-10-05 11:02:51.559 Log level: Normal
. 2018-10-05 11:02:51.559 Local account: username\accountname
. 2018-10-05 11:02:51.559 Working directory: C:\Program Files (x86)\WinSCP
. 2018-10-05 11:02:51.559 Process ID: 2524
. 2018-10-05 11:02:51.559 Command-line: "C:\Program Files (x86)\WinSCP\winscp.exe" /xmllog="C:\Users\accountname\AppData\Local\Temp\wscp0E00.01557CF9.tmp" /xmlgroups /xmllogrequired /nointeractiveinput /dotnet=593  /ini=nul /log="C:\example\TransferLog.txt"  /console /consoleinstance=_3584_45033532_905
. 2018-10-05 11:02:51.559 Time zone: Current: GMT-4, Standard: GMT-5 (Eastern Standard Time), DST: GMT-4 (Eastern Daylight Time), DST Start: 3/11/2018, DST End: 11/4/2018
. 2018-10-05 11:02:51.559 Login time: Friday, October 5, 2018 11:02:51 AM
. 2018-10-05 11:02:51.559 --------------------------------------------------------------------------
. 2018-10-05 11:02:51.559 Script: Retrospectively logging previous script records:
> 2018-10-05 11:02:51.559 Script: option batch on
< 2018-10-05 11:02:51.559 Script: batch           on        
< 2018-10-05 11:02:51.559 Script: reconnecttime   120       
> 2018-10-05 11:02:51.559 Script: option confirm off
< 2018-10-05 11:02:51.559 Script: confirm         off       
> 2018-10-05 11:02:51.559 Script: option reconnecttime 120
< 2018-10-05 11:02:51.559 Script: reconnecttime   120       
> 2018-10-05 11:02:51.559 Script: open https://username:***@example-ftp.com:443 -timeout=15
. 2018-10-05 11:02:51.559 --------------------------------------------------------------------------
. 2018-10-05 11:02:51.559 Session name: username@example-ftp.com (Ad-Hoc site)
. 2018-10-05 11:02:51.559 Host name: example-ftp.com (Port: 443)
. 2018-10-05 11:02:51.559 User name: username (Password: Yes, Key file: No, Passphrase: No)
. 2018-10-05 11:02:51.574 Transfer Protocol: WebDAV
. 2018-10-05 11:02:51.574 Proxy: None
. 2018-10-05 11:02:51.574 HTTPS: Yes [Client certificate: No]
. 2018-10-05 11:02:51.574 TLS/SSL versions: TLSv1.0-TLSv1.2
. 2018-10-05 11:02:51.574 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2018-10-05 11:02:51.574 Cache directory changes: Yes, Permanent: Yes
. 2018-10-05 11:02:51.574 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2018-10-05 11:02:51.574 DST mode: Unix
. 2018-10-05 11:02:51.574 Compression: No
. 2018-10-05 11:02:51.574 --------------------------------------------------------------------------
. 2018-10-05 11:02:51.574 HTTP session to https://example-ftp.com:443 begins.
. 2018-10-05 11:02:51.824 ssl: SNI enabled by default.
. 2018-10-05 11:02:51.824 ah_create, for WWW-Authenticate
. 2018-10-05 11:02:51.824 Sending request headers:
. 2018-10-05 11:02:51.824 OPTIONS / HTTP/1.1

. 2018-10-05 11:02:51.824 User-Agent: WinSCP/5.9.3 neon/0.30.1

. 2018-10-05 11:02:51.824 Keep-Alive: 

. 2018-10-05 11:02:51.824 Connection: TE, Keep-Alive

. 2018-10-05 11:02:51.824 TE: trailers

. 2018-10-05 11:02:51.824 Host: example-ftp.com
. 2018-10-05 11:02:51.824 Sending request-line and headers:
. 2018-10-05 11:02:51.824 Doing DNS lookup on example-ftp.com...
. 2018-10-05 11:02:51.824 req: Connecting to 127.0.0.1:443
. 2018-10-05 11:02:51.887 Doing SSL negotiation.
. 2018-10-05 11:02:52.028 ssl: Verify callback @ 1 => 20
. 2018-10-05 11:02:52.028 ssl: Verify failures |= 8 => 8
. 2018-10-05 11:02:52.184 Chain depth: 2
. 2018-10-05 11:02:52.184 ssl: Match common name 'example-ftp.com' against ''
. 2018-10-05 11:02:52.184 ssl: Match common name 'www.example-ftp.com' against ''
. 2018-10-05 11:02:52.184 Identity match for '': bad
. 2018-10-05 11:02:52.184 ssl: Match common name 'GeoTrust SSL CA - G3' against ''
. 2018-10-05 11:02:52.184 Identity match for '': bad
. 2018-10-05 11:02:52.184 ssl: Match common name 'example-ftp.com' against 'example-ftp.com'
. 2018-10-05 11:02:52.184 Identity match for 'example-ftp.com': good
. 2018-10-05 11:02:52.184 Verifying certificate for "IT, Example, Anytown, Anystate, US" with fingerprint aa:bb:cc:dd:ee:ff:gg:11:22:33:44:55:66:77:88:99:00:aa:bb:cc and 08 failures
. 2018-10-05 11:02:52.231 Certificate verified against Windows certificate store
. 2018-10-05 11:02:52.231 Using TLSv1.2, cipher TLSv1/SSLv3: ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
. 2018-10-05 11:02:52.231 Request sent; retry is 0.
. 2018-10-05 11:02:52.324 [status-line] < HTTP/1.1 200 OK
. 2018-10-05 11:02:52.340 Header Name: [set-cookie], Value: [mainServerInstance=; path=/; secure]
. 2018-10-05 11:02:52.340 Header Name: [set-cookie], Value: [currentAuth=txJB; path=/; secure]
. 2018-10-05 11:02:52.340 Header Name: [set-cookie], Value: [CrushAuth=1538751771817_CHcQWIl8CBvCB0DX2m21Mp5nDQtxJB; path=/; secure; HttpOnly]
. 2018-10-05 11:02:52.340 Header Name: [pragma], Value: [no-cache]
. 2018-10-05 11:02:52.340 Header Name: [x-responding-server], Value: [sslngn018]
. 2018-10-05 11:02:52.340 Header Name: [x-dmuser], Value: [username]
. 2018-10-05 11:02:52.340 Header Name: [ms-author-via], Value: [DAV]
. 2018-10-05 11:02:52.340 Header Name: [allow], Value: [GET, HEAD, OPTIONS, PUT, POST, COPY, PROPFIND, DELETE, LOCK, MKCOL, MOVE, PROPPATCH, UNLOCK, ACL, TRACE]
. 2018-10-05 11:02:52.340 Header Name: [dav], Value: [1,2, access-control, <http://apache.org/dav/propset/fs/1>]
. 2018-10-05 11:02:52.340 Header Name: [content-type], Value: [text/plain]
. 2018-10-05 11:02:52.340 Header Name: [date], Value: [Fri, 05 Oct 2018 15:02:51 GMT]
. 2018-10-05 11:02:52.340 Header Name: [server], Value: [CrushFTP HTTP Server]
. 2018-10-05 11:02:52.340 Header Name: [p3p], Value: [policyref="/WebInterface/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"]
. 2018-10-05 11:02:52.340 Header Name: [strict-transport-security], Value: [max-age=31536000; preload]
. 2018-10-05 11:02:52.340 Header Name: [x-frame-options], Value: [SAMEORIGIN]
. 2018-10-05 11:02:52.340 Header Name: [connection], Value: [close]
. 2018-10-05 11:02:52.340 Header Name: [content-length], Value: [0]
. 2018-10-05 11:02:52.340 End of headers.
. 2018-10-05 11:02:52.340 ah_post_send (#0), code is 200 (want 401), WWW-Authenticate is (none)
. 2018-10-05 11:02:52.340 sess: Closing connection.
. 2018-10-05 11:02:52.340 sess: Connection closed.
. 2018-10-05 11:02:52.340 Request ends, status 200 class 2xx, error line:
. 2018-10-05 11:02:52.340 200 OK
. 2018-10-05 11:02:52.340 Request ends.
. 2018-10-05 11:02:52.340 Server capabilities: 1, 2, <http://apache.org/dav/propset/fs/1>, access-control
. 2018-10-05 11:02:52.340 --------------------------------------------------------------------------
. 2018-10-05 11:02:52.340 Using WebDAV protocol.
. 2018-10-05 11:02:52.340 Doing startup conversation with host.
. 2018-10-05 11:02:52.340 Getting current directory name.
. 2018-10-05 11:02:52.340 Startup conversation with host finished.
< 2018-10-05 11:02:52.340 Script: Active session: [1] username@example-ftp.com
> 2018-10-05 11:02:52.356 Script: pwd
< 2018-10-05 11:02:52.356 Script: /
> 2018-10-05 11:02:52.418 Script: ls -- "/My Files/"
. 2018-10-05 11:02:52.418 ah_create, for WWW-Authenticate
> 2018-10-05 11:02:52.418 <?xml version="1.0" encoding="utf-8"?>
> 2018-10-05 11:02:52.418 <propfind xmlns="DAV:"><allprop/></propfind>
. 2018-10-05 11:02:52.418 Sending request headers:
. 2018-10-05 11:02:52.418 PROPFIND /My%20Files/ HTTP/1.1

. 2018-10-05 11:02:52.418 User-Agent: WinSCP/5.9.3 neon/0.30.1

. 2018-10-05 11:02:52.418 Connection: TE

. 2018-10-05 11:02:52.418 TE: trailers

. 2018-10-05 11:02:52.418 Host: example-ftp.com

. 2018-10-05 11:02:52.418 Depth: 1

. 2018-10-05 11:02:52.418 Content-Length: 84

. 2018-10-05 11:02:52.418 Content-Type: application/xml
. 2018-10-05 11:02:52.418 Sending request-line and headers:
. 2018-10-05 11:02:52.418 req: Connecting to 96.88.197.219:443
. 2018-10-05 11:02:52.465 Doing SSL negotiation.
. 2018-10-05 11:02:52.637 Sending request body:
. 2018-10-05 11:02:52.637 Request sent; retry is 0.
. 2018-10-05 11:02:52.746 [status-line] < HTTP/1.1 401 Unauthorized
. 2018-10-05 11:02:52.746 Header Name: [set-cookie], Value: [mainServerInstance=; path=/; secure]
. 2018-10-05 11:02:52.746 Header Name: [set-cookie], Value: [currentAuth=wezY; path=/; secure]
. 2018-10-05 11:02:52.746 Header Name: [set-cookie], Value: [CrushAuth=1538751772223_iDAD7i2rJINU3RD7DW0y9upYjbwezY; path=/; secure; HttpOnly]
. 2018-10-05 11:02:52.746 Header Name: [pragma], Value: [no-cache]
. 2018-10-05 11:02:52.746 Header Name: [connection], Value: [close]
. 2018-10-05 11:02:52.746 Header Name: [www-authenticate], Value: [Basic realm="example-ftp.com"]
. 2018-10-05 11:02:52.746 Header Name: [content-type], Value: [text/html;charset=utf-8]
. 2018-10-05 11:02:52.746 Header Name: [content-length], Value: [12]
. 2018-10-05 11:02:52.746 End of headers.
. 2018-10-05 11:02:52.746 ah_post_send (#0), code is 401 (want 401), WWW-Authenticate is Basic realm="example-ftp.com"
. 2018-10-05 11:02:52.746 auth: Got challenge (code 401).
. 2018-10-05 11:02:52.746 auth: Got 'Basic' challenge.
. 2018-10-05 11:02:52.746 auth: Trying Basic challenge...
. 2018-10-05 11:02:52.746 auth: Accepted Basic challenge.
. 2018-10-05 11:02:52.746 sess: Closing connection.
. 2018-10-05 11:02:52.746 sess: Connection closed.
. 2018-10-05 11:02:52.746 auth: Sending 'Basic' response.
> 2018-10-05 11:02:52.746 <?xml version="1.0" encoding="utf-8"?>
> 2018-10-05 11:02:52.746 <propfind xmlns="DAV:"><allprop/></propfind>
. 2018-10-05 11:02:52.746 Sending request headers:
. 2018-10-05 11:02:52.746 PROPFIND /My%20Files/ HTTP/1.1

. 2018-10-05 11:02:52.746 User-Agent: WinSCP/5.9.3 neon/0.30.1

. 2018-10-05 11:02:52.746 Connection: TE

. 2018-10-05 11:02:52.746 TE: trailers

. 2018-10-05 11:02:52.746 Host: example-ftp.com

. 2018-10-05 11:02:52.746 Depth: 1

. 2018-10-05 11:02:52.746 Content-Length: 84

. 2018-10-05 11:02:52.746 Content-Type: application/xml

. 2018-10-05 11:02:52.746 Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
. 2018-10-05 11:02:52.746 Sending request-line and headers:
. 2018-10-05 11:02:52.746 req: Connecting to 96.88.197.219:443
. 2018-10-05 11:02:52.793 Doing SSL negotiation.
. 2018-10-05 11:02:53.262 Sending request body:
. 2018-10-05 11:02:53.262 Request sent; retry is 0.
. 2018-10-05 11:02:53.387 [status-line] < HTTP/1.1 401 Unauthorized
. 2018-10-05 11:02:53.387 Header Name: [pragma], Value: [no-cache]
. 2018-10-05 11:02:53.387 Header Name: [connection], Value: [close]
. 2018-10-05 11:02:53.387 Header Name: [www-authenticate], Value: [Basic realm="example-ftp.com"]
. 2018-10-05 11:02:53.387 Header Name: [content-type], Value: [text/html;charset=utf-8]
. 2018-10-05 11:02:53.387 Header Name: [content-length], Value: [12]
. 2018-10-05 11:02:53.387 End of headers.
. 2018-10-05 11:02:53.387 ah_post_send (#1), code is 401 (want 401), WWW-Authenticate is Basic realm="example-ftp.com"
. 2018-10-05 11:02:53.387 auth: Got challenge (code 401).
. 2018-10-05 11:02:53.387 auth: Got 'Basic' challenge.
. 2018-10-05 11:02:53.387 auth: Trying Basic challenge...
. 2018-10-05 11:02:53.387 auth: No challenges accepted.
. 2018-10-05 11:02:53.387 sess: Closing connection.
. 2018-10-05 11:02:53.387 sess: Connection closed.
. 2018-10-05 11:02:53.387 Request ends, status 401 class 4xx, error line:
. 2018-10-05 11:02:53.387 Could not authenticate to server: rejected Basic challenge
. 2018-10-05 11:02:53.387 Request ends.
. 2018-10-05 11:02:53.387 Asking user:
. 2018-10-05 11:02:53.387 Error listing directory '/My Files'. ("Authentication failed.","Could not authenticate to server: rejected Basic challenge")
< 2018-10-05 11:02:53.387 Script: Error listing directory '/My Files'.
< 2018-10-05 11:02:53.387 Script: Authentication failed.

< 2018-10-05 11:02:53.387 Could not authenticate to server: rejected Basic challenge
. 2018-10-05 11:02:53.403 Script: Failed
> 2018-10-05 11:02:54.074 Script: exit
. 2018-10-05 11:02:54.074 Script: Exit code: 1
. 2018-10-05 11:02:54.074 sess: Destroying session.

Reply with quote

El Guapo

Re: How to: Challenge response in Powershell Script?

martin wrote:

Please attach a full session log file showing listing of that directory both from GUI and your code.
Is there anything else you needed from me?

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: How to: Challenge response in Powershell Script?

Try to enable password logging with /loglevel=* command-line switch and check if the script is using correct credentials.

Reply with quote

Guest

Re: How to: Challenge response in Powershell Script?

martin wrote:

Try to enable password logging with /loglevel=* command-line switch and check if the script is using correct credentials.
How would I do that from a powershell script? I copied/pasted the code directly from Session >Generate Session URL/Code. If I can connect via the GUI, why would the credentials be wrong in the generated code?

Reply with quote

El Guapo
Joined:
Posts:
8
Location:
United States

Re: How to: Challenge response in Powershell Script?

Anonymous wrote:

martin wrote:

Try to enable password logging with /loglevel=* command-line switch and check if the script is using correct credentials.
How would I do that from a powershell script? I copied/pasted the code directly from Session >Generate Session URL/Code. If I can connect via the GUI, why would the credentials be wrong in the generated code?
This was me. I forgot to log in first before replying.

Reply with quote

El Guapo
Joined:
Posts:
8
Location:
United States

Re: How to: Challenge response in Powershell Script?

martin wrote:

Try to enable password logging with /loglevel=* command-line switch and check if the script is using correct credentials.
I decided to use a command line connection as generated by the GUI, formatted like this:
"C:\Program Files (x86)\WinSCP\WinSCP.com" /log="C:\test\test.log" /loglevel=2* /ini=nul /command "open https://username:password@server.com/"
Here's the output I got:

Connecting to host...
Authenticated.
Starting the session...
Session started.
Active session: [1] username@server.com

So there's not a problem connecting to the server & authenticating. It's whenever I try to take an action that I get the basic challenge issue:

winscp> dir
Error listing directory '/'.
Authentication failed.
Could not authenticate to server: rejected Basic challenge
I also tried using ls at the winscp prompt and got the same result. Somehow, the WinSCP GUI knows how to handle this, but I'm not finding anything in the documentation that tells me how to handle it.

Reply with quote

Advertisement

El Guapo

Re: How to: Challenge response in Powershell Script?

martin wrote:

Try to enable password logging with /loglevel=* command-line switch and check if the script is using correct credentials.
I'm not sure if this helps at all, but they're using CrushFTP their FTP server.

Reply with quote

El Guapo
Joined:
Posts:
8
Location:
United States

Re: How to: Challenge response in Powershell Script?

martin wrote:

If it is an FTP server, why are you using WebDAV?
I didn't choose WebDAV. When I created the connection, WinSCP somehow detected that they were using WebDAV, and that's what is in the generated code from WinSCP. I've already tried changing the protocol and get connection errors. I'm just trying to figure out why the WinSCP GUI can handle the basic challenge, but my script using winscp.com can't.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
38,711
Location:
Prague, Czechia

Re: How to: Challenge response in Powershell Script?

El Guapo wrote:

I'm just trying to figure out why the WinSCP GUI can handle the basic challenge, but my script using winscp.com can't.
I cannot tell that either from the log file.
The server seems to react differently to a different sequence of requests used by the script.

Reply with quote

Advertisement

You can post new topics in this forum