Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
curl [03/09/2024 - 10:55] – admin1 | curl [03/09/2024 - 11:12] (aktuell) – [Proxy Auth] admin1 | ||
---|---|---|---|
Zeile 4: | Zeile 4: | ||
https:// | https:// | ||
- | |||
- | [[https:// | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | https:// | ||
====== Request/ | ====== Request/ | ||
+ | curl -iv --head https:// | ||
+ | |||
+ | curl https:// | ||
< | < | ||
- | root@docs: | ||
* Rebuilt URL to: https:// | * Rebuilt URL to: https:// | ||
* | * | ||
Zeile 65: | Zeile 68: | ||
< | < | ||
Content-Type: | Content-Type: | ||
- | |||
<* Connection #0 to host www.netzwissen.de left intact | <* Connection #0 to host www.netzwissen.de left intact | ||
+ | </ | ||
+ | |||
+ | ====== Proxy Anfragen ====== | ||
+ | |||
+ | Basis Syntax | ||
< | < | ||
+ | curl -x proxy_address: | ||
+ | </ | ||
- | Geht auch mit https für selbst signierte Zertifikate, dann -k dahintersetzen, curl –trace-ascii [filename] -k : | + | Mit dieser Anfrage bekommt an die eigene IP zurück, als Beweis, dass der Proxy selber tut: |
< | < | ||
- | == Info: Hostname was NOT found in DNS cache | + | curl -x 195.154.243.38:8080 https://httpbin.org/ip |
- | == Info: Trying 5.9.175.13… | + | </code> |
- | == Info: Connected to www.netzwissen.de (5.9.175.13) port 443 (#0) | + | |
- | == Info: successfully set certificate verify locations: | + | |
- | == Info: CAfile: none | + | |
- | CApath: / | + | |
- | == Info: SSLv3, TLS Unknown, Unknown (22): | + | |
- | ⇒ Send SSL data, 5 bytes (0x5) | + | |
- | 0000: ….. | + | |
- | == Info: SSLv3, TLS handshake, Client hello (1): | + | |
- | ⇒ Send SSL data, 194 bytes (0xc2) | + | |
- | 0000: ……=hf.E^..< | + | |
- | 0040: k.9…..g.3.E…=.5…..< | + | |
- | 0080: ………………………. …………………………….. | + | |
- | 00c0: .. | + | |
- | == Info: SSLv2, Unknown (22): | + | |
- | <= Recv SSL data, 5 bytes (0x5) | + | |
- | 0000: ….b | + | |
- | == Info: SSLv3, TLS handshake, Server hello (2): | + | |
- | <= Recv SSL data, 98 bytes (0x62) | + | |
- | 0000: …^…..# | + | |
- | 0040: l$ …i./ | + | |
- | == Info: SSLv2, Unknown (22): | + | |
- | <= Recv SSL data, 5 bytes (0x5) | + | |
- | 0000: ….. | + | |
- | == Info: SSLv3, TLS handshake, CERT (11): | + | |
- | <= Recv SSL data, 2476 bytes (0x9ac) | + | |
- | […] | + | |
- | ⇒ Send SSL data, 5 bytes (0x5) | + | |
- | 0000: ….. | + | |
- | == Info: SSLv3, TLS change cipher, Client hello (1): | + | |
- | ⇒ Send SSL data, 1 bytes (0x1) | + | |
- | 0000: . | + | |
- | == Info: SSLv2, Unknown (22): | + | |
- | ⇒ Send SSL data, 5 bytes (0x5) | + | |
- | 0000: ….( | + | |
- | == Info: SSLv3, TLS handshake, Finished (20): | + | |
- | ⇒ Send SSL data, 16 bytes (0x10) | + | |
- | 0000: …..Kr.F.s…|? | + | |
- | == Info: SSLv2, Unknown (20): | + | |
- | <= Recv SSL data, 5 bytes (0x5) | + | |
- | 0000: ….. | + | |
- | == Info: SSLv3, TLS change cipher, Client hello (1): | + | |
- | <= Recv SSL data, 1 bytes (0x1) | + | |
- | 0000: . | + | |
- | == Info: SSLv2, Unknown (22): | + | |
- | <= Recv SSL data, 5 bytes (0x5) | + | |
- | 0000: ….( | + | |
- | == Info: SSLv3, TLS handshake, Finished (20): | + | |
- | <= Recv SSL data, 16 bytes (0x10) | + | |
- | 0000: ……x7..m….3 | + | |
- | == Info: SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256 | + | |
- | == Info: Server certificate: | + | |
- | == Info: subject: CN= www.netzwissen.de | + | |
- | == Info: start date: 2018-01-08 01:45:24 GMT | + | |
- | == Info: expire date: 2018-04-08 01:45:24 GMT | + | |
- | == Info: subjectAltName: | + | |
- | == Info: issuer: C=US; O=Let' | + | |
- | == Info: SSL certificate verify ok. | + | |
- | == Info: SSLv2, Unknown (23): | + | |
- | ⇒ Send SSL data, 5 bytes (0x5) | + | |
- | 0000: ….r | + | |
- | ⇒ Send header, 90 bytes (0x5a) | + | |
- | 0000: GET /owncloud/ HTTP/1.1 | + | |
- | 0019: User-Agent: curl/ | + | |
- | 0032: Host: www.netzwissen.de | + | |
- | 004b: Accept: */* | + | |
- | 0058: | + | |
- | == Info: SSLv2, Unknown (23): | + | |
- | <= Recv SSL data, 5 bytes (0x5) | + | |
- | 0000: ….$ | + | |
- | <= Recv header, 20 bytes (0x14) | + | |
- | 0000: HTTP/1.1 302 Found | + | |
- | <= Recv header, 37 bytes (0x25) | + | |
- | 0000: Date: Mon, 15 Jan 2018 12:57:16 GMT | + | |
- | == Info: Server Apache is not blacklisted | + | |
- | <= Recv header, 16 bytes (0x10) | + | |
- | 0000: Server: Apache | + | |
- | <= Recv header, 64 bytes (0x40) | + | |
- | 0000: Strict-Transport-Security: | + | |
- | <= Recv header, 80 bytes (0x50) | + | |
- | 0000: Set-Cookie: 52401d632a450=d41rivsekv3g0u91lrberil374; | + | |
- | 0040: loud; HttpOnly | + | |
- | <= Recv header, 40 bytes (0x28) | + | |
- | 0000: Expires: Thu, 19 Nov 1981 08:52:00 GMT | + | |
- | <= Recv header, 52 bytes (0x34) | + | |
- | 0000: Cache-Control: | + | |
- | <= Recv header, 18 bytes (0x12) | + | |
- | 0000: Pragma: no-cache | + | |
- | <= Recv header, 203 bytes (0xcb) | + | |
- | 0000: Set-Cookie: oc_sessionPassphrase=qWyjYXC7eQ7r7vVBGHXtwX9oPZlXT65 | + | |
- | 0040: rUVrDI7mbVwfURHhS3YTRdrTHEcUVDCzsbvI%2B1RAz%2FGGpqbgdTeewiFIn8Wd | + | |
- | 0080: zszvm2mVyLgAPrYyi%2FNm6E3nB5LrtN0HhtWyF; | + | |
- | 00c0: HttpOnly | + | |
- | <= Recv header, 199 bytes (0xc7) | + | |
- | 0000: Content-Security-Policy: | + | |
- | 0040: unsafe-eval'; | + | |
- | 0080: -src * data: blob:; font-src ' | + | |
- | 00c0: src * | + | |
- | <= Recv header, 62 bytes (0x3e) | + | |
- | 0000: Location: https://www.netzwissen.de/owncloud/ | + | |
- | <= Recv header, 33 bytes (0x21) | + | |
- | 0000: X-Content-Type-Options: | + | |
- | <= Recv header, 33 bytes (0x21) | + | |
- | 0000: X-XSS-Protection: | + | |
- | <= Recv header, 20 bytes (0x14) | + | |
- | 0000: X-Robots-Tag: | + | |
- | <= Recv header, 29 bytes (0x1d) | + | |
- | 0000: X-Frame-Options: | + | |
- | <= Recv header, 28 bytes (0x1c) | + | |
- | 0000: X-Download-Options: | + | |
- | <= Recv header, 41 bytes (0x29) | + | |
- | 0000: X-Permitted-Cross-Domain-Policies: | + | |
- | <= Recv header, 19 bytes (0x13) | + | |
- | 0000: Content-Length: | + | |
- | <= Recv header, 40 bytes (0x28) | + | |
- | 0000: Content-Type: | + | |
- | <= Recv header, 2 bytes (0x2) | + | |
- | 0000: | + | |
- | == Info: Connection #0 to host www.netzwissen.de left intact | + | |
+ | ===== Proxy Auth ===== | ||
+ | |||
+ | < | ||
+ | curl --proxy-user username: | ||
</ | </ | ||
- | Mit Zeit Informationen | + | Kaputte Zertifikate umgehen |
- | '' | + | < |
- | 14:03: | + | curl --proxy |
- | 14: | + | |
- | CApath: /etc/ssl/ | + | |
- | 14:03:49.836400 == Info: SSLv3, TLS Unknown, Unknown (22):\\ | + | |
- | 14: | + | |
- | 0000: …..\\ | + | |
- | 14: | + | |
- | 14: | + | |
- | 0000: ………? | + | |
- | 0040: k.9…..g.3.E…=.5…..< | + | |
- | 0080: ………………………. ……………………………..\\ | + | |
- | 00c0: ..\\ | + | |
- | 14: | + | |
- | 14: | + | |
- | 0000: ….b\\ | + | |
- | 14: | + | |
- | 14: | + | |
- | 0000: …^…? | + | |
- | 0040: .C.~& | + | |
</ | </ | ||
+ | |||
+ | |||
+ | ===== Proxy Request mit Header ===== | ||
+ | |||
+ | < | ||
+ | curl -x proxy_address -H " | ||
+ | </ | ||
+ | |||
+ |