Skip to content

Instantly share code, notes, and snippets.

@jakenotjacob
Created September 8, 2017 12:18
Show Gist options
  • Save jakenotjacob/8b0c99d51636eb6e118aedcf0ea3e9b4 to your computer and use it in GitHub Desktop.
Save jakenotjacob/8b0c99d51636eb6e118aedcf0ea3e9b4 to your computer and use it in GitHub Desktop.
FiveM HTTP/2 Investigation
`curl --http2 -svo /dev/null https://patches.rockstargames.com/prod/gtav/Launcher_EFIGS/GTA_V_Launcher_1_0_440_2.exe -w "\nContent Type: %{content_type} \
* 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:15:11 GMT
< Content-Type: application/x-msdownload
< Content-Length: 19445264
< Connection: keep-alive
< Server: Apache
< Accept-Ranges: bytes
< X-Permitted-Cross-Domain-Policies: all
< Age: 69818
< Last-Modified: Wed, 19 Aug 2015 16:05:10 GMT
<
{ [1050 bytes data]
curl --http2 -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} \
> \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 80 (#0)
> 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: */*
> Connection: Upgrade, HTTP2-Settings
> Upgrade: h2c
> HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
>
< HTTP/1.1 200 OK
< Server: Apache
< Accept-Ranges: bytes
< X-Permitted-Cross-Domain-Policies: all
< Content-Type: application/x-msdownload
< Age: 69948
< Date: Fri, 08 Sep 2017 12:17:21 GMT
< Last-Modified: Wed, 19 Aug 2015 16:05:10 GMT
< Content-Length: 19445264
< Connection: keep-alive
<
{ [1166 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.000000
Time Connect: 0.090354
Name Lookup Time: 0.060407
Time Pretransfer: 0.090465
Time Redirect: 0.000000
Time Start Transfer: 0.130823
Time Total: 6.649866
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