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
7flagsCRTO_Exam_Writeup_-_May_2022
PDF
No ratings yet
7flagsCRTO_Exam_Writeup_-_May_2022
13 pages
Oscp
PDF
No ratings yet
Oscp
3 pages
Backfire
PDF
No ratings yet
Backfire
15 pages
OSCP Notes NagendranGS
PDF
No ratings yet
OSCP Notes NagendranGS
58 pages
OSCP Notes
PDF
100% (2)
OSCP Notes
78 pages
User Data and Metadata
PDF
No ratings yet
User Data and Metadata
3 pages
ESA-Resources Cheat Sheet
PDF
No ratings yet
ESA-Resources Cheat Sheet
5 pages
Oh_My_WebServer
PDF
No ratings yet
Oh_My_WebServer
4 pages
project3cV6
PDF
No ratings yet
project3cV6
28 pages
Sea
PDF
No ratings yet
Sea
10 pages
Cyberscape Report Ru
PDF
No ratings yet
Cyberscape Report Ru
27 pages
Final Results
PDF
No ratings yet
Final Results
17 pages
Booti
PDF
No ratings yet
Booti
5 pages
Attackive Directory
PDF
No ratings yet
Attackive Directory
6 pages
SQL Backtrack TSM Configuration
PDF
No ratings yet
SQL Backtrack TSM Configuration
21 pages
Log
PDF
No ratings yet
Log
80 pages
Squid Plus Mikrotik
PDF
No ratings yet
Squid Plus Mikrotik
6 pages
Writeup
PDF
No ratings yet
Writeup
7 pages
Document
PDF
No ratings yet
Document
5 pages
Azure Commands
PDF
No ratings yet
Azure Commands
5 pages
MobaXterm 10.250.159.10 20231208 224453
PDF
No ratings yet
MobaXterm 10.250.159.10 20231208 224453
53 pages
Configuration
PDF
No ratings yet
Configuration
7 pages
Windows Red Team Cheat Sheat
PDF
No ratings yet
Windows Red Team Cheat Sheat
13 pages
Pikaboo
PDF
No ratings yet
Pikaboo
16 pages
Apisix Info
PDF
No ratings yet
Apisix Info
4 pages
Rhce7 3
PDF
100% (3)
Rhce7 3
13 pages
Kubernetes Cheat Sheet
PDF
0% (1)
Kubernetes Cheat Sheet
3 pages
Keycloak Part 2
PDF
No ratings yet
Keycloak Part 2
15 pages
Wallet
PDF
No ratings yet
Wallet
12 pages
Cloud Pentesting Cheatsheet
PDF
100% (1)
Cloud Pentesting Cheatsheet
22 pages
Class Notes by Krishna
PDF
No ratings yet
Class Notes by Krishna
26 pages
Notes Aws
PDF
No ratings yet
Notes Aws
27 pages
Check Proxy Will Be Working or Not
PDF
No ratings yet
Check Proxy Will Be Working or Not
5 pages
Connection Tests To Carriers From New Architecture: Summary
PDF
No ratings yet
Connection Tests To Carriers From New Architecture: Summary
7 pages
Marketplace
PDF
No ratings yet
Marketplace
4 pages
Oracle
PDF
No ratings yet
Oracle
45 pages
Kafka Config
PDF
No ratings yet
Kafka Config
11 pages
BSNL
PDF
No ratings yet
BSNL
9 pages
Command Line Mikrotik For Ukk
PDF
No ratings yet
Command Line Mikrotik For Ukk
7 pages
Pipeline Log
PDF
No ratings yet
Pipeline Log
10 pages
AWS-19-IAM_Customer_Managed_Policies (2)
PDF
No ratings yet
AWS-19-IAM_Customer_Managed_Policies (2)
4 pages
Google Code Archive - Long-Term Storage For Google Code Project Hosting
PDF
No ratings yet
Google Code Archive - Long-Term Storage For Google Code Project Hosting
33 pages
Deploy a Two Node Kubernetes Cluster on AWS 1726859898
PDF
No ratings yet
Deploy a Two Node Kubernetes Cluster on AWS 1726859898
21 pages
Steps k3s Cluster Configuration
PDF
No ratings yet
Steps k3s Cluster Configuration
3 pages
2203-2206 Log Book
PDF
No ratings yet
2203-2206 Log Book
209 pages
Linux Commands
PDF
No ratings yet
Linux Commands
3 pages
Openssl 05 2001
PDF
No ratings yet
Openssl 05 2001
17 pages
ELK Config
PDF
No ratings yet
ELK Config
8 pages
How Terraform Modules Works
PDF
No ratings yet
How Terraform Modules Works
18 pages
confluent
PDF
No ratings yet
confluent
4 pages
BackendTwo
PDF
No ratings yet
BackendTwo
19 pages
Shadowsocks: A Secure SOCKS5 Proxy: 1 Overview
PDF
No ratings yet
Shadowsocks: A Secure SOCKS5 Proxy: 1 Overview
9 pages
A) Different Techniques of Protecting Our Identity: 1. Using Proxy Severs
PDF
No ratings yet
A) Different Techniques of Protecting Our Identity: 1. Using Proxy Severs
33 pages
Node Debugging Tips
PDF
No ratings yet
Node Debugging Tips
2 pages
pm2 Analysis
PDF
No ratings yet
pm2 Analysis
7 pages
Hackernote Tryhackme Walkthrough
PDF
No ratings yet
Hackernote Tryhackme Walkthrough
4 pages
Modul IV Configuring and Managing The Oracle Network: A. The Net Manager 1. Net Manager Interface
PDF
No ratings yet
Modul IV Configuring and Managing The Oracle Network: A. The Net Manager 1. Net Manager Interface
8 pages
OSCP Notes
PDF
100% (4)
OSCP Notes
78 pages
NoSQL Injection for Elasticsearch
From Everand
NoSQL Injection for Elasticsearch
Gary Drocella
No ratings yet
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
Rajesh Computer Usage Record
PDF
No ratings yet
Rajesh Computer Usage Record
1 page
ICT Project Process Overview
PDF
50% (4)
ICT Project Process Overview
1 page
Survey Guide: Part 1 Survey Link: Part 2 Survey Link
PDF
No ratings yet
Survey Guide: Part 1 Survey Link: Part 2 Survey Link
8 pages
SJ-20160331090752-022-Unitrans ZXCTN 6500 Series (V2.10.00) Feature Configuration Guide (L2VPN&L3VPN Protection Linkage)
PDF
No ratings yet
SJ-20160331090752-022-Unitrans ZXCTN 6500 Series (V2.10.00) Feature Configuration Guide (L2VPN&L3VPN Protection Linkage)
46 pages
ETL2020 - DDoS A4
PDF
No ratings yet
ETL2020 - DDoS A4
18 pages
Eigrp: Group Members
PDF
No ratings yet
Eigrp: Group Members
26 pages
12 Inter-VLAN Communication
PDF
No ratings yet
12 Inter-VLAN Communication
20 pages
Khushi Sahoo (2030028 - 13.2.7 Packet Tracer - Use Ping and Traceroute To Test Network Connectivity
PDF
No ratings yet
Khushi Sahoo (2030028 - 13.2.7 Packet Tracer - Use Ping and Traceroute To Test Network Connectivity
4 pages
Снимок экрана 2024-01-04 в 14.34.45
PDF
No ratings yet
Снимок экрана 2024-01-04 в 14.34.45
1 page
Dark Mode Log1
PDF
No ratings yet
Dark Mode Log1
2 pages
Burj Khalifa Case Study
PDF
No ratings yet
Burj Khalifa Case Study
4 pages
15.1.2 Lab - Control Routing Updates
PDF
No ratings yet
15.1.2 Lab - Control Routing Updates
16 pages
SIMOS.3003.IKEv2.FlexVPN.SVTI.with.PSK.v001
PDF
No ratings yet
SIMOS.3003.IKEv2.FlexVPN.SVTI.with.PSK.v001
11 pages
PM Debug Info
PDF
No ratings yet
PM Debug Info
151 pages
The Danger of Internet Troll and Keyboard Warrior in The Philippines Through Cyber Politics
PDF
No ratings yet
The Danger of Internet Troll and Keyboard Warrior in The Philippines Through Cyber Politics
6 pages
WEBAPI
PDF
No ratings yet
WEBAPI
39 pages
4 Gpon FTTH Iptv Service Provisioning v8r13 Issue1.10 (S+N)
PDF
No ratings yet
4 Gpon FTTH Iptv Service Provisioning v8r13 Issue1.10 (S+N)
57 pages
Synchronous - Asynchronous Protocols - Chacacter and Bit Oriented Protocols
PDF
No ratings yet
Synchronous - Asynchronous Protocols - Chacacter and Bit Oriented Protocols
33 pages
S200, S300, S500, S1700, S2700, S5700, S6700 V200R022C00SPC500 Release Notes
PDF
No ratings yet
S200, S300, S500, S1700, S2700, S5700, S6700 V200R022C00SPC500 Release Notes
29 pages
Quizzes - Results2
PDF
No ratings yet
Quizzes - Results2
6 pages
Google Documents Resume
PDF
100% (1)
Google Documents Resume
5 pages
LPC2148 Spi
PDF
No ratings yet
LPC2148 Spi
26 pages
Chapter 7: Advanced OSPF: Instructor Materials
PDF
100% (1)
Chapter 7: Advanced OSPF: Instructor Materials
76 pages
Emtech
PDF
No ratings yet
Emtech
20 pages
TCP IP Protocol Suite Chap-03 Underlying Technology
PDF
No ratings yet
TCP IP Protocol Suite Chap-03 Underlying Technology
54 pages
F
PDF
No ratings yet
F
114 pages
Seo Unit-4-1
PDF
No ratings yet
Seo Unit-4-1
11 pages
Web Browser
PDF
No ratings yet
Web Browser
1 page
The Internet of Things: Zimcore Hubs - Apr. 30, 2020 Zimcore Hubs - Apr. 30, 2020 Zimcore Hubs - Apr. 30, 2020
PDF
No ratings yet
The Internet of Things: Zimcore Hubs - Apr. 30, 2020 Zimcore Hubs - Apr. 30, 2020 Zimcore Hubs - Apr. 30, 2020
28 pages
Social Media Is Sabotaging Social Skills and Relationships Essay Revised
PDF
No ratings yet
Social Media Is Sabotaging Social Skills and Relationships Essay Revised
4 pages