Skip to content

Instantly share code, notes, and snippets.

@jakenotjacob
Created September 8, 2017 12:20
Show Gist options
  • Save jakenotjacob/74002a7b6d3fbd1a25438f92c2adc3cb to your computer and use it in GitHub Desktop.
Save jakenotjacob/74002a7b6d3fbd1a25438f92c2adc3cb to your computer and use it in GitHub Desktop.
FiveM http2 investigation 2
curl --http2-prior-knowledge -svo /dev/null https://patches.rockstargames.com/prod/gtav/Launcher_EFIGS/GTA_V_Launcher_1_0_440_2.exe -w "\nContent Type: %{content_type} \
\nHTTP Code: %{http_code} \
\nHTTP Connect:%{http_connect} \
\nNumber Connects: %{num_connects} \
\nNumber Redirects: %{num_redirects} \
\nRedirect URL: %{redirect_url} \
\nSize Download: %{size_download} \
\nSize Upload: %{size_upload} \
\nSSL Verify: %{ssl_verify_result} \
\nTime Handshake: %{time_appconnect} \
\nTime Connect: %{time_connect} \
\nName Lookup Time: %{time_namelookup} \
\nTime Pretransfer: %{time_pretransfer} \
\nTime Redirect: %{time_redirect} \
\nTime Start Transfer: %{time_starttransfer} \
\nTime Total: %{time_total} \
\nEffective URL: %{url_effective}\n" 2>&1
* Trying 208.111.158.187...
* TCP_NODELAY set
* Connected to patches.rockstargames.com (208.111.158.187) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [104 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [3224 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [333 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: C=US; ST=New York; L=New York; O=Rockstar Games; OU=Rockstar Games; CN=www.rockstargames.com
* start date: Mar 23 20:40:45 2017 GMT
* expire date: Apr 10 21:10:42 2018 GMT
* subjectAltName: host "patches.rockstargames.com" matched cert's "patches.rockstargames.com"
* issuer: C=US; O=Entrust, Inc.; OU=See www.entrust.net/legal-terms; OU=(c) 2012 Entrust, Inc. - for authorized use only; CN=Entrust Certification Authority - L1K
* SSL certificate verify ok.
} [5 bytes data]
> GET /prod/gtav/Launcher_EFIGS/GTA_V_Launcher_1_0_440_2.exe HTTP/1.1
> Host: patches.rockstargames.com
> User-Agent: curl/7.55.1
> Accept: */*
>
{ [5 bytes data]
< HTTP/1.1 200 OK
< Date: Fri, 08 Sep 2017 12:19:59 GMT
< Content-Type: application/x-msdownload
< Content-Length: 19445264
< Connection: keep-alive
< Server: Apache
< Accept-Ranges: bytes
< X-Permitted-Cross-Domain-Policies: all
< Age: 70106
< Last-Modified: Wed, 19 Aug 2015 16:05:10 GMT
<
{ [16102 bytes data]
* Connection #0 to host patches.rockstargames.com left intact
Content Type: application/x-msdownload
HTTP Code: 200
HTTP Connect:000
Number Connects: 1
Number Redirects: 0
Redirect URL:
Size Download: 19445264
Size Upload: 0
SSL Verify: 0
Time Handshake: 0.162394
Time Connect: 0.093916
Name Lookup Time: 0.060391
Time Pretransfer: 0.162480
Time Redirect: 0.000000
Time Start Transfer: 0.197012
Time Total: 8.080699
Effective URL: https://patches.rockstargames.com/prod/gtav/Launcher_EFIGS/GTA_V_Launcher_1_0_440_2.exe
============================
curl --http2-prior-knowledge -svo /dev/null http://patches.rockstargames.com/prod/gtav/Launcher_EFIGS/GTA_V_Launcher_1_0_440_2.exe -w "\nContent Type: %{content_type} \
\nHTTP Code: %{http_code} \
\nHTTP Connect:%{http_connect} \svo /dev/null https://patches.rockstargames.com/prod/gtav/Launcher_EFIGS/GTA_V_Launcher_1_0_440_2.exe -w "\nContent Type: %{content_type} \
\nNumber Connects: %{num_connects} \
\nNumber Redirects: %{num_redirects} \
\nRedirect URL: %{redirect_url} \} \
\nSize Download: %{size_download} \} \
\nSize Upload: %{size_upload} \ \
\nSSL Verify: %{ssl_verify_result} \
\nTime Handshake: %{time_appconnect} \
\nTime Connect: %{time_connect} \} \
\nName Lookup Time: %{time_namelookup} \
\nTime Pretransfer: %{time_pretransfer} \
\nTime Redirect: %{time_redirect} \up} \
\nTime Start Transfer: %{time_starttransfer} \
\nTime Total: %{time_total} \ect} \
\nEffective URL: %{url_effective}\n" 2>&1er} \
* Trying 208.111.158.187...
* TCP_NODELAY set
* Connected to patches.rockstargames.com (208.111.158.187) port 80 (#0)
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55d1700380f0)
> GET /prod/gtav/Launcher_EFIGS/GTA_V_Launcher_1_0_440_2.exe HTTP/2
> Host: patches.rockstargames.com
> User-Agent: curl/7.55.1
> Accept: */*
>
* http2 error: Remote peer returned unexpected data while we expected SETTINGS frame. Perhaps, peer does not support HTTP/2 properly.
* Closing connection 0
Content Type:
HTTP Code: 000
HTTP Connect:000
Number Connects: 1
Number Redirects: 0
Redirect URL:
Size Download: 0
Size Upload: 0
SSL Verify: 0
Time Handshake: 0.000000
Time Connect: 0.088999
Name Lookup Time: 0.060410
Time Pretransfer: 0.089195
Time Redirect: 0.000000
Time Start Transfer: 0.000000
Time Total: 0.132006
Effective URL: http://patches.rockstargames.com/prod/gtav/Launcher_EFIGS/GTA_V_Launcher_1_0_440_2.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment