the home site for me: also iteration 3 or 4 of my site

chore: format hilton code blocks

Changed files
+26 -10
content
+26 -10
content/blog/2024-10-13_hilton_tomfoolery.md
···
First I had to download the app, which required disabling the proxy as iOS seems to ignore certificate trust settings for the app store. Enrollment happened via the `https://m.hilton.io/graphql/customer?operationName=createGuest&type=enroll` endpoint and was as follows:
+
> POST
```json
{
"query": "...",
···
},
"operationName": "createGuest"
}
+
```
+
```bash
---
mutation createGuest($input: EnrollInput!, $language: String!) {
createGuest(language: $language, input: $input) {
···
}
}
```
+
<br/>
-
getting the response:
+
> response
```json
{
"data": {
"createGuest": {
"data": {
-
"guestId": 172624xxxx,
+
"guestId": 1726240000,
"hhonorsNumber": "225782xxxx"
},
"error": null
···
}
}
```
+
<br/>
-
with the headers:
+
> headers
```json
{
···
I shared the key which asked for a name and then opened the iOS share sheet and I choose to send by text. I went back to my phone, clicked the link and low and behold we got a hit! `https://hms.hiltonapi.com/hms/v1/digitalkey/invitation/accept`:
+
> POST
```json
{
"shareId": "b4d6140d311e4c4c935dd653ca00af65"
}
```
-
our response was as follows:
+
<br/>
+
> response
```json
{
"arrivalDateTime": "2024-10-13T15:00-04:00",
···
Another interesting request was to `https://m.hilton.io/graphql/customer?operationName=hotel_brand&type=hotelDetails_GCYPAHX`
+
> POST
```json
{
"variables": {
···
"operationName": "hotel_brand",
"query": "..."
}
+
```
+
```bash
---
query hotel_brand($language: String!, $ctyhocn: String!) {
hotel(language: $language, ctyhocn: $ctyhocn) {
···
}
```
-
with a response of:
+
<br/>
+
> response
```json
{
"data": {
···
When using the unlock button, it made a request to this URL: `https://smetric.hilton.com/b/ss/hiltonglobalprod/10/IOSN030200030900/s65425920` with a payload of a URL encoded form.
-
```text
+
> POST
+
```yaml
ndh: 1
cid.:
card_no.:
···
ts: 1728899984
```
+
<br/>
+
> response
-
```text
+
```json
{
"stuff":[ {
"cn":"TMS","cv":"web=17836315,Web-app=15217574,Web-app=17952857,Web-app=17952894,web-app=19493122,web-app=19484989,web-app=21539153,web-app=21539313,web-app=21881915,web-app=22516131,web-app=22889861,web-app=23583601,web-app=15218869,web-app=26458327,web-app=26458383,web-app=21537957","ttl":30,"dmn":""
···
About a second afterward, I get a second request to `https://smetric.hilton.com/b/ss/hiltonglobalprod/10/IOSN030200030900/s88785229` with similar form data. Diff shown below.
-
```text
+
> POST.diff
+
```diff
23c23
< action: digital key:key:unlock_btn
---
···
>
> *:8080mitmproxy 10.4.2
```
+
<br/>
-
> response diff
-
```text
+
> response.diff
+
```diff
< ],"uuid":"61645808922583835885560882535048239660","dcs_region":7,"tid":"RufgJCfxTjg="
---
> ],"uuid":"61645808922583835885560882535048239660","dcs_region":7,"tid":"69dMPcWjQD4="