mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-15 01:17:36 +00:00
GitBook: [#3508] No subject
This commit is contained in:
parent
4616b89fc7
commit
40d4d04877
1 changed files with 5 additions and 2 deletions
|
@ -298,12 +298,15 @@ Documentation available at [`https://metadata.packet.net/userdata`](https://meta
|
|||
* Must **not** contain an `X-Forwarded-For` header
|
||||
|
||||
```powershell
|
||||
http://169.254.169.254/metadata/instance?api-version=2017-04-02
|
||||
http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-04-02&format=text
|
||||
# Powershell
|
||||
Invoke-RestMethod -Headers @{"Metadata"="true"} -Method GET -NoProxy -Uri "http://169.254.169.254/metadata/instance?api-version=2021-02-01" | ConvertTo-Json -Depth 64
|
||||
# Linux
|
||||
curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2021-02-01" | jq
|
||||
|
||||
# Paths
|
||||
/metadata/instance?api-version=2017-04-02
|
||||
/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-04-02&format=text
|
||||
/metadata/instance/compute/userData?api-version=2021-01-01&format=text
|
||||
```
|
||||
|
||||
### Azure Apps
|
||||
|
|
Loading…
Reference in a new issue