Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
31 views
Meta Data Fetch From Linux
linux
Uploaded by
dadoppubg
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download now
Download
Save meta data fetch from linux For Later
Download
Save
Save meta data fetch from linux For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
31 views
Meta Data Fetch From Linux
linux
Uploaded by
dadoppubg
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download now
Download
Save meta data fetch from linux For Later
Carousel Previous
Carousel Next
Save
Save meta data fetch from linux For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 3
Search
Fullscreen
Using username "ec2-user".
Authenticating with public key "MyMumbaiKey"
, #_
~\_ ####_ Amazon Linux 2023
~~ \_#####\
~~ \###|
~~ \#/ ___ https://aws.amazon.com/linux/amazon-linux-2023
~~ V~' '->
~~~ /
~~._. _/
_/ _/
_/m/'
Last login: Wed Aug 16 04:33:47 2023 from 152.58.71.204
[ec2-user@ip-172-31-38-42 ~]$ sudo su -
Last login: Wed Aug 16 04:33:53 UTC 2023 on pts/1
[root@ip-172-31-38-42 ~]# aws s3 ls
2023-08-16 04:06:13 mybkt191001
2023-08-03 04:26:22 mylifecycle19
2023-08-01 07:01:33 myprojectbucket1910
2023-08-02 04:27:00 mysystembucket321
2023-08-02 04:03:26 mysystum123
2023-08-03 09:14:09 mytestbkt1910
[root@ip-172-31-38-42 ~]# cd
[root@ip-172-31-38-42 ~]# ls -a
. .. .bash_history .bash_logout .bash_profile .bashrc .cshrc .ssh .tcshrc
[root@ip-172-31-38-42 ~]# curl http://169.254.169.254/latest/meta-data/
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>401 - Unauthorized</title>
</head>
<body>
<h1>401 - Unauthorized</h1>
</body>
</html>
[root@ip-172-31-38-42 ~]# TOKEN=`curl -X PUT
"http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds:
21600"` \
&& curl -H "X-aws-ec2-metadata-token: $TOKEN" -v
http://169.254.169.254/latest/meta-data/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 56 100 56 0 0 7713 0 --:--:-- --:--:-- --:--:-- 8000
* Trying 169.254.169.254:80...
* Connected to 169.254.169.254 (169.254.169.254) port 80 (#0)
> GET /latest/meta-data/ HTTP/1.1
> Host: 169.254.169.254
> User-Agent: curl/8.0.1
> Accept: */*
> X-aws-ec2-metadata-token:
AQAAAASiZczrWVr4Wqw5UAK7PSs9Mdy8uG78mOjXx0Bao5gki7avOQ==
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Accept-Ranges: bytes
< Content-Length: 325
< Content-Type: text/plain
< Date: Wed, 16 Aug 2023 04:52:03 GMT
< Last-Modified: Wed, 16 Aug 2023 04:39:09 GMT
< X-Aws-Ec2-Metadata-Token-Ttl-Seconds: 21600
< Connection: close
< Server: EC2ws
<
ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
events/
hostname
iam/
identity-credentials/
instance-action
instance-id
instance-life-cycle
instance-type
local-hostname
local-ipv4
mac
metrics/
network/
placement/
profile
public-hostname
public-ipv4
public-keys/
reservation-id
security-groups
services/
* Closing connection 0
system[root@ip-172-31-38-42 ~]# TOKEN=`curl -X PUT
"http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds:
21600"` && curl -H "X-aws-ec2-metadata-token: $TOKEN" -v
http://169.254.169.254/latest/meta-data/public-ipv4
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 56 100 56 0 0 8682 0 --:--:-- --:--:-- --:--:-- 9333
* Trying 169.254.169.254:80...
* Connected to 169.254.169.254 (169.254.169.254) port 80 (#0)
> GET /latest/meta-data/public-ipv4 HTTP/1.1
> Host: 169.254.169.254
> User-Agent: curl/8.0.1
> Accept: */*
> X-aws-ec2-metadata-token:
AQAAAASiZcxRVE9c3LI7sN6ejj3e2wLOu7NDqau4dnHhc4LBNFw0zw==
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Accept-Ranges: bytes
< Content-Length: 14
< Content-Type: text/plain
< Date: Wed, 16 Aug 2023 04:52:59 GMT
< Last-Modified: Wed, 16 Aug 2023 04:25:18 GMT
< X-Aws-Ec2-Metadata-Token-Ttl-Seconds: 21600
< Connection: close
< Server: EC2ws
<
* Closing connection 0
13.234.226.105[root@ip-172-31-38-42 ~]# TOKEN=`curl -X PUT
"http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds:
21600"` && curl -H "X-aws-ec2-metadata-token: $TOKEN" -v
http://169.254.169.254/latest/meta-data/instance-id
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 56 100 56 0 0 9247 0 --:--:-- --:--:-- --:--:-- 9333
* Trying 169.254.169.254:80...
* Connected to 169.254.169.254 (169.254.169.254) port 80 (#0)
> GET /latest/meta-data/instance-id HTTP/1.1
> Host: 169.254.169.254
> User-Agent: curl/8.0.1
> Accept: */*
> X-aws-ec2-metadata-token:
AQAAAASiZcyMjoLxTvbjhfotHPCrDklO0VwpCwChVXKRVm4N45y42g==
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Accept-Ranges: bytes
< Content-Length: 19
< Content-Type: text/plain
< Date: Wed, 16 Aug 2023 04:56:54 GMT
< Last-Modified: Wed, 16 Aug 2023 04:25:18 GMT
< X-Aws-Ec2-Metadata-Token-Ttl-Seconds: 21600
< Connection: close
< Server: EC2ws
<
* Closing connection 0
i-08d46909fb7ff63a6[root@ip-172-31-38-42 ~]#
You might also like
Functional Design Specification Network
PDF
100% (1)
Functional Design Specification Network
33 pages
5 - APM403 Communication (DEC2017)
PDF
100% (1)
5 - APM403 Communication (DEC2017)
19 pages
Curl Manual
PDF
No ratings yet
Curl Manual
3 pages
AnswerSheet Part4
PDF
No ratings yet
AnswerSheet Part4
73 pages
V2ray Server
PDF
No ratings yet
V2ray Server
4 pages
Farm X8 1 New 1
PDF
No ratings yet
Farm X8 1 New 1
20 pages
SSRF Bypass List
PDF
No ratings yet
SSRF Bypass List
1 page
AWS Command: VPC Configuration
PDF
No ratings yet
AWS Command: VPC Configuration
2 pages
CN Practical
PDF
No ratings yet
CN Practical
9 pages
Class Notes (AutoRecovered)
PDF
No ratings yet
Class Notes (AutoRecovered)
10 pages
Multi-Node OCP Cluster Installation Steps 2
PDF
No ratings yet
Multi-Node OCP Cluster Installation Steps 2
15 pages
project a notes
PDF
No ratings yet
project a notes
3 pages
AWS Red Teaming Complete Guide With Video Tutorial
PDF
No ratings yet
AWS Red Teaming Complete Guide With Video Tutorial
31 pages
Darnel Project
PDF
No ratings yet
Darnel Project
54 pages
EC2 Commandline API Tools M
PDF
No ratings yet
EC2 Commandline API Tools M
5 pages
##Verificación de Servicio PE##
PDF
No ratings yet
##Verificación de Servicio PE##
10 pages
Curl Commands
PDF
No ratings yet
Curl Commands
7 pages
'BR030-A.cfg-2024-10-08-1901'
PDF
No ratings yet
'BR030-A.cfg-2024-10-08-1901'
8 pages
CA notepad
PDF
No ratings yet
CA notepad
8 pages
1730696889721aws
PDF
No ratings yet
1730696889721aws
13 pages
AWS Assignment - 1
PDF
No ratings yet
AWS Assignment - 1
3 pages
cloud review
PDF
No ratings yet
cloud review
8 pages
Aws Template Format Version
PDF
No ratings yet
Aws Template Format Version
17 pages
MobaXterm_rcbgit_20250327_092955
PDF
No ratings yet
MobaXterm_rcbgit_20250327_092955
3 pages
PolicyNumber2b Sudip
PDF
No ratings yet
PolicyNumber2b Sudip
4 pages
Aws
PDF
100% (1)
Aws
5 pages
Configurando Huawei
PDF
No ratings yet
Configurando Huawei
72 pages
cmd ubuntu user creation
PDF
No ratings yet
cmd ubuntu user creation
1 page
Text (SFILE
PDF
No ratings yet
Text (SFILE
2 pages
Ec2 Instance Connect Api
PDF
No ratings yet
Ec2 Instance Connect Api
13 pages
ec2-instance module
PDF
No ratings yet
ec2-instance module
5 pages
PASC-FW-PA-0174-IE02display Current
PDF
No ratings yet
PASC-FW-PA-0174-IE02display Current
12 pages
1300 VPC Randall
PDF
No ratings yet
1300 VPC Randall
72 pages
paywall_access
PDF
No ratings yet
paywall_access
31 pages
Cloudstack Provider: Example Usage
PDF
No ratings yet
Cloudstack Provider: Example Usage
38 pages
Handson For AWS-Python
PDF
No ratings yet
Handson For AWS-Python
145 pages
WebHacking All bugs
PDF
No ratings yet
WebHacking All bugs
84 pages
NoSQL Injection for Elasticsearch
From Everand
NoSQL Injection for Elasticsearch
Gary Drocella
No ratings yet
AWS Working Notes
PDF
100% (1)
AWS Working Notes
23 pages
terraform
PDF
No ratings yet
terraform
12 pages
INTERNET-CHAN CHAN
PDF
No ratings yet
INTERNET-CHAN CHAN
5 pages
zDQnFHi6EeiMwApe4i-fLg Project1av2
PDF
No ratings yet
zDQnFHi6EeiMwApe4i-fLg Project1av2
24 pages
Curl Command Cheatsheet
PDF
No ratings yet
Curl Command Cheatsheet
1 page
Command Prompt
PDF
No ratings yet
Command Prompt
6 pages
Terraform AWS
PDF
100% (2)
Terraform AWS
1,531 pages
Openswan Installation and Configuration Tutorial
PDF
No ratings yet
Openswan Installation and Configuration Tutorial
5 pages
AWS Project Setup on Cloud
PDF
No ratings yet
AWS Project Setup on Cloud
31 pages
dc2 n7k1
PDF
No ratings yet
dc2 n7k1
5 pages
CISCO PACKET TRACER LABS: Best practice of configuring or troubleshooting Network
From Everand
CISCO PACKET TRACER LABS: Best practice of configuring or troubleshooting Network
Mulayam Singh
No ratings yet
cloud computing file
PDF
No ratings yet
cloud computing file
13 pages
Camara de Comercio Sede Ica - Final Peter
PDF
No ratings yet
Camara de Comercio Sede Ica - Final Peter
20 pages
Curl Cheat Sheet
PDF
No ratings yet
Curl Cheat Sheet
7 pages
AWS Assignment - 1
PDF
No ratings yet
AWS Assignment - 1
3 pages
Contoh Firewall Di Mikrotik
PDF
No ratings yet
Contoh Firewall Di Mikrotik
5 pages
1658355738240
PDF
No ratings yet
1658355738240
84 pages
AWS CP 2022 Day2
PDF
No ratings yet
AWS CP 2022 Day2
83 pages
Shodan Dorks
PDF
No ratings yet
Shodan Dorks
1 page
RJLT PERU
PDF
No ratings yet
RJLT PERU
3 pages
EC2
PDF
No ratings yet
EC2
43 pages
How To Configure HA Proxy Load Balancer With EFT Server HA Cluster
PDF
No ratings yet
How To Configure HA Proxy Load Balancer With EFT Server HA Cluster
8 pages
FW
PDF
No ratings yet
FW
12 pages
D Har-Moh-Sgsn-03 Imsi-Change HC Pre 202401190001
PDF
No ratings yet
D Har-Moh-Sgsn-03 Imsi-Change HC Pre 202401190001
510 pages
Assignment 2 NDS REPORT
PDF
No ratings yet
Assignment 2 NDS REPORT
20 pages
Lab Manual
PDF
No ratings yet
Lab Manual
23 pages
Epygi Quadro Installation Guide
PDF
100% (1)
Epygi Quadro Installation Guide
57 pages
26 - ATRG VoIP
PDF
No ratings yet
26 - ATRG VoIP
42 pages
RLC PDU Types and Formats
PDF
No ratings yet
RLC PDU Types and Formats
4 pages
OSPF Questions
PDF
No ratings yet
OSPF Questions
31 pages
Coc Question 111
PDF
No ratings yet
Coc Question 111
48 pages
200-125 Dumps - CCNA Cisco Certified Network Associate CCNA (v3.0) Practice Exam Questions
PDF
No ratings yet
200-125 Dumps - CCNA Cisco Certified Network Associate CCNA (v3.0) Practice Exam Questions
18 pages
Technical Report Submitted in Partial Fulfillment of The Requirement For The Award of Degree of C
PDF
No ratings yet
Technical Report Submitted in Partial Fulfillment of The Requirement For The Award of Degree of C
11 pages
Fortigate Infrastructure: Routing
PDF
No ratings yet
Fortigate Infrastructure: Routing
58 pages
VAS
PDF
No ratings yet
VAS
50 pages
Cisco 800M Series Integrated Services Routers Software Configuration Guide
PDF
No ratings yet
Cisco 800M Series Integrated Services Routers Software Configuration Guide
134 pages
Datasheet URB TCP2
PDF
No ratings yet
Datasheet URB TCP2
7 pages
Timetools Ethernet Wall Clock NTP
PDF
No ratings yet
Timetools Ethernet Wall Clock NTP
2 pages
CCN Lab Report 2a Task 1,2 Rep
PDF
No ratings yet
CCN Lab Report 2a Task 1,2 Rep
5 pages
IMS - IP Multimedia Subsystem
PDF
No ratings yet
IMS - IP Multimedia Subsystem
21 pages
Unit4 CN
PDF
No ratings yet
Unit4 CN
173 pages
D1s 7360 ISAM FX Overview - 2
PDF
100% (1)
D1s 7360 ISAM FX Overview - 2
14 pages
Subnetting For JKU CS Students
PDF
No ratings yet
Subnetting For JKU CS Students
10 pages
ECE6609: ATM Networks (Broadband Networking) Spring 2003 Final Exam: April 29,2003
PDF
No ratings yet
ECE6609: ATM Networks (Broadband Networking) Spring 2003 Final Exam: April 29,2003
3 pages
MACA - A New Channel Access Method For Packet Radio: Phil Karn, KA9Q
PDF
100% (1)
MACA - A New Channel Access Method For Packet Radio: Phil Karn, KA9Q
5 pages
4.9b
PDF
No ratings yet
4.9b
8 pages
DB Ip Format
PDF
No ratings yet
DB Ip Format
5 pages
Sierra Wireless Raven Xe Setup
PDF
No ratings yet
Sierra Wireless Raven Xe Setup
9 pages
ZXDSL 931wii Vdsl2 Manual
PDF
No ratings yet
ZXDSL 931wii Vdsl2 Manual
138 pages
Maipu PU3200-4GAC GPON HGU Datasheet 20220118
PDF
No ratings yet
Maipu PU3200-4GAC GPON HGU Datasheet 20220118
5 pages
DHCP Project Report (Department)
PDF
75% (4)
DHCP Project Report (Department)
16 pages
Valmet BenefitsFieldbusConnectivity WhitePaper
PDF
No ratings yet
Valmet BenefitsFieldbusConnectivity WhitePaper
2 pages