updated the other funcs as well

This commit is contained in:
Jonn Callahan
2018-06-27 16:15:46 -07:00
parent 3bff9c4aea
commit 41fc45b850

View File

@@ -21,21 +21,21 @@ def module_show_services_by_key():
Show services for a given key service:sub_service Show services for a given key service:sub_service
example: elasticbeanstalk:DescribeEvents example: elasticbeanstalk:DescribeEvents
''' '''
results = search_recon_by_key(db_name, AWS_ACCESS_KEY_ID) results = ["{}.{}".format(r[0], r[1]) for r in search_recon_by_key(db_name, AWS_ACCESS_KEY_ID)]
print("Services enumerated for {}".format(AWS_ACCESS_KEY_ID)) print("Services enumerated for {}".format(AWS_ACCESS_KEY_ID))
for result in results: for result in sorted(results):
print("{}:{}".format(result[0], result[1])) print(result)
def module_show_services_by_key_with_date(): def module_show_services_by_key_with_date():
''' '''
Show services for a given key service:sub_service Show services for a given key service:sub_service
example: elasticbeanstalk:DescribeEvents example: elasticbeanstalk:DescribeEvents -> Date: 2018-04-18 20:36:41.791780
''' '''
results = search_recon_by_key(db_name, AWS_ACCESS_KEY_ID) results = [("{}.{}".format(r[0], r[1]), r[2]) for r in search_recon_by_key(db_name, AWS_ACCESS_KEY_ID)]
print("Services enumerated for {}".format(AWS_ACCESS_KEY_ID)) print("Services enumerated for {}".format(AWS_ACCESS_KEY_ID))
for result in results: for result, date in sorted(results, key=lambda r: r[0]):
print("{}:{} -> Date: {}".format(result[0], result[1], result[2])) print("{} -> Date: {}".format(result, date))
# same as show_sevices # same as show_sevices