Skip to content

Commit b3c6ec0

Browse files
committed
Show status when gathering, which can take a bit
1 parent abed3bf commit b3c6ec0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/post/multi/gather/aws_ec2_instance_metadata.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,13 @@ def get_aws_metadata(base_uri, base_resp)
7272
def run
7373
check_curl
7474
resp = check_aws_metadata
75+
76+
print_status("Gathering AWS EC2 instance metadata")
7577
metadata = get_aws_metadata(@target_uri, resp)
78+
7679
metadata_json = JSON.pretty_generate(metadata)
7780
file = store_loot("aws.ec2.instance.metadata", "text/json", session, metadata_json, "aws_ec2_instance_metadata.json", "AWS EC2 Instance Metadata")
81+
7882
if datastore['VERBOSE']
7983
vprint_good("AWS EC2 instance metadata")
8084
print_line(metadata_json)

0 commit comments

Comments
 (0)