Skip to content

Instantly share code, notes, and snippets.

@topjor
Last active November 14, 2018 18:46
Show Gist options
  • Save topjor/7ae7e8428ff0b863dbb13bafc3c7edfe to your computer and use it in GitHub Desktop.
Save topjor/7ae7e8428ff0b863dbb13bafc3c7edfe to your computer and use it in GitHub Desktop.
img mitm logs
Request:
Raw:
GET /v2/token?scope=repository%3Aci%2Fbase%3Apull&service=reg.j0dev.ml HTTP/1.1
Host: reg.j0dev.ml
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip, deflate
Connection: close
Params:
URL scope repository:ci/base:pull
URL service reg.j0dev.ml
Response:
HTTP/1.1 200 OK
Server: nginx/1.14.0
Date: Wed, 14 Nov 2018 18:03:54 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 1122
Connection: close
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-UA-Compatible: IE=edge
Strict-Transport-Security: max-age=36000; includeSubdomains
{"token":"eyJhbGciOiJSUzI1NiIsImtpZCI6IlNBQkk6MklKWDpPTEozOklaQ0s6U0RWUTpTUERTOjdCRlI6WFc1NjpZQlMyOk1TRUg6UkRSUTpLVklDIiwidHlwIjoiSldUIn0.eyJhY2Nlc3MiOlt7ImFjdGlvbnMiOlsicHVsbCJdLCJuYW1lIjoiY2kvYmFzZSIsInR5cGUiOiJyZXBvc2l0b3J5In1dLCJhdWQiOiJyZWcuajBkZXYubWwiLCJleHAiOjE1NDIyMTg5MzQsImlhdCI6MTU0MjIxODYzNCwiaXNzIjoicmVnLmowZGV2Lm1sIiwianRpIjoiN2M4Yjk2MWUtYjRjMi00NjEwLWIwOGYtOWIxZWEzODg1NzQzIiwibmJmIjoxNTQyMjE4NjM0LCJzdWIiOiJ0b3Bqb3IifQ.dhcC1LeXniWURvmXV_K3gTtq8nXMs_4rdGNISq1jSwBNiaNoLFOn4c749y6rx8ZvdM3NyZCcwthU-VUwVtLH5q2ubrr9KA1R035XhDyXbsvMqAKV2Q5DbzfcJKb35AItb42hSTx5-gVAAGcpx9si-7j9840ZlZbIos8Tqd8o2z_Fht_XC9T1hO1bESKet7jgG4vfEsG5qDLu_55NVVu_2c_toJ_DOA-mk5yeGccLlK1OeMWYsDAsMizsN_tqmesFhcBDWfAu91sDbqporoVaK3OthSKM5nZaxUGkivGsyE_Lp7pWp-833JIGh1zpuqNuYP4LizgdPYyflK3wiys9S_9ORFcOG0msMtok32tL8fWWt9zu5eA881gi_epf4krCOe9F0MYGxZSDc4xtnk4wMTjadvBmqrYbbm_2LsbJlExcKbJQchKvCtxGfwGImmqQHe6jA72JXvOhHOR41bzrj262MuKrXksyyzrGGuq7vjLfzJH5laK07XtxwQr8DGmafzJm12D7MuSBOg6wZgGiK6P11uhhLabvVxCjveVGg-HYgyLoGTk1s-rTvn74NszRVlPuziWpcVh7jQwLz1jFsxR3GB-djJsjIUtDLF3DEnJ49-BL64UoAE3zZG_sncONHwVmJiezwTv-HDuCkSzoUbPuRlBMSyPexbj7yhijRDk"}
Request:
Raw:
POST /v2/token HTTP/1.1
Host: reg.j0dev.ml
User-Agent: Go-http-client/1.1
Content-Length: 141
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Connection: close
client_id=containerd-dist-tool&grant_type=password&password=[redacted]&scope=repository%3Aci%2Fbase%3Apull&service=reg.j0dev.ml&username=topjor
Params:
Body client_id containerd-dist-tool
Body grant_type password
Body password [redacted]
Body scope repository:ci/base:pull
Body service reg.j0dev.ml
Body username topjor
Response:
HTTP/1.1 200 OK
Server: nginx/1.14.0
Date: Wed, 14 Nov 2018 18:03:54 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 1122
Connection: close
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-UA-Compatible: IE=edge
Strict-Transport-Security: max-age=36000; includeSubdomains
{"token":"eyJhbGciOiJSUzI1NiIsImtpZCI6IlNBQkk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"pull"
],
"name": "ci/base",
"type": "repository"
}
],
"aud": "reg.j0dev.ml",
"exp": 1542218934,
"iat": 1542218634,
"iss": "reg.j0dev.ml",
"jti": "7c8b961e-b4c2-4610-b08f-9b1ea3885743",
"nbf": 1542218634,
"sub": "topjor"
}
}
{
"claims": {
"access": [
{
"actions": [
"pull"
],
"name": "ci/base",
"type": "repository"
}
],
"aud": "reg.j0dev.ml",
"exp": 1542218934,
"iat": 1542218634,
"iss": "reg.j0dev.ml",
"jti": "7c8b961e-b4c2-4610-b08f-9b1ea3885743",
"nbf": 1542218634,
"sub": "topjor"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment