procurdat_webdav.sh
· 2.6 KiB · Bash
Raw
curl -u username:password "https://nas.informatik.uni-bremen.de:5006/home/storage" -H "Depth: 1" -v
* Host nas.informatik.uni-bremen.de:5006 was resolved.
* IPv6: (none)
* IPv4: 134.102.202.101
* Trying 134.102.202.101:5006...
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: none
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / x25519 / RSASSA-PSS
* ALPN: server accepted http/1.1
* Server certificate:
* subject: CN=nas.informatik.uni-bremen.de
* start date: Feb 11 13:23:12 2025 GMT
* expire date: May 12 13:23:11 2025 GMT
* subjectAltName: host "nas.informatik.uni-bremen.de" matched cert's "nas.informatik.uni-bremen.de"
* issuer: C=US; O=Let's Encrypt; CN=R10
* SSL certificate verify ok.
* Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 2: Public key type RSA (4096/152 Bits/secBits), signed using sha256WithRSAEncryption
* Connected to nas.informatik.uni-bremen.de (134.102.202.101) port 5006
* using HTTP/1.x
* Server auth using Basic with user 'username'
> GET /home/storage HTTP/1.1
> Host: nas.informatik.uni-bremen.de:5006
> Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
> User-Agent: curl/8.11.1
> Accept: */*
> Depth: 1
>
* Request completely sent off
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
< HTTP/1.1 401 Unauthorized
< Date: Mon, 17 Mar 2025 09:16:21 GMT
< Server: Apache
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="SYNO_WebDAV Storage"
< Content-Length: 381
< Content-Type: text/html; charset=iso-8859-1
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
</body></html>
* Connection #0 to host nas.informatik.uni-bremen.de left intact
| 1 | curl -u username:password "https://nas.informatik.uni-bremen.de:5006/home/storage" -H "Depth: 1" -v |
| 2 | * Host nas.informatik.uni-bremen.de:5006 was resolved. |
| 3 | * IPv6: (none) |
| 4 | * IPv4: 134.102.202.101 |
| 5 | * Trying 134.102.202.101:5006... |
| 6 | * ALPN: curl offers h2,http/1.1 |
| 7 | * TLSv1.3 (OUT), TLS handshake, Client hello (1): |
| 8 | * CAfile: /etc/ssl/certs/ca-certificates.crt |
| 9 | * CApath: none |
| 10 | * TLSv1.3 (IN), TLS handshake, Server hello (2): |
| 11 | * TLSv1.3 (IN), TLS change cipher, Change cipher spec (1): |
| 12 | * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): |
| 13 | * TLSv1.3 (IN), TLS handshake, Certificate (11): |
| 14 | * TLSv1.3 (IN), TLS handshake, CERT verify (15): |
| 15 | * TLSv1.3 (IN), TLS handshake, Finished (20): |
| 16 | * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): |
| 17 | * TLSv1.3 (OUT), TLS handshake, Finished (20): |
| 18 | * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / x25519 / RSASSA-PSS |
| 19 | * ALPN: server accepted http/1.1 |
| 20 | * Server certificate: |
| 21 | * subject: CN=nas.informatik.uni-bremen.de |
| 22 | * start date: Feb 11 13:23:12 2025 GMT |
| 23 | * expire date: May 12 13:23:11 2025 GMT |
| 24 | * subjectAltName: host "nas.informatik.uni-bremen.de" matched cert's "nas.informatik.uni-bremen.de" |
| 25 | * issuer: C=US; O=Let's Encrypt; CN=R10 |
| 26 | * SSL certificate verify ok. |
| 27 | * Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption |
| 28 | * Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption |
| 29 | * Certificate level 2: Public key type RSA (4096/152 Bits/secBits), signed using sha256WithRSAEncryption |
| 30 | * Connected to nas.informatik.uni-bremen.de (134.102.202.101) port 5006 |
| 31 | * using HTTP/1.x |
| 32 | * Server auth using Basic with user 'username' |
| 33 | > GET /home/storage HTTP/1.1 |
| 34 | > Host: nas.informatik.uni-bremen.de:5006 |
| 35 | > Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ= |
| 36 | > User-Agent: curl/8.11.1 |
| 37 | > Accept: */* |
| 38 | > Depth: 1 |
| 39 | > |
| 40 | * Request completely sent off |
| 41 | * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): |
| 42 | * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): |
| 43 | < HTTP/1.1 401 Unauthorized |
| 44 | < Date: Mon, 17 Mar 2025 09:16:21 GMT |
| 45 | < Server: Apache |
| 46 | * Authentication problem. Ignoring this. |
| 47 | < WWW-Authenticate: Basic realm="SYNO_WebDAV Storage" |
| 48 | < Content-Length: 381 |
| 49 | < Content-Type: text/html; charset=iso-8859-1 |
| 50 | < |
| 51 | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> |
| 52 | <html><head> |
| 53 | <title>401 Unauthorized</title> |
| 54 | </head><body> |
| 55 | <h1>Unauthorized</h1> |
| 56 | <p>This server could not verify that you |
| 57 | are authorized to access the document |
| 58 | requested. Either you supplied the wrong |
| 59 | credentials (e.g., bad password), or your |
| 60 | browser doesn't understand how to supply |
| 61 | the credentials required.</p> |
| 62 | </body></html> |
| 63 | * Connection #0 to host nas.informatik.uni-bremen.de left intact |
| 64 |