updated the other funcs as well
This commit is contained in:
committed by
Kenneth Toler
parent
4f5ad889d4
commit
34d22d77be
@@ -21,21 +21,21 @@ def module_show_services_by_key():
|
||||
Show services for a given key service:sub_service
|
||||
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))
|
||||
for result in results:
|
||||
print("{}:{}".format(result[0], result[1]))
|
||||
for result in sorted(results):
|
||||
print(result)
|
||||
|
||||
|
||||
def module_show_services_by_key_with_date():
|
||||
'''
|
||||
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))
|
||||
for result in results:
|
||||
print("{}:{} -> Date: {}".format(result[0], result[1], result[2]))
|
||||
for result, date in sorted(results, key=lambda r: r[0]):
|
||||
print("{} -> Date: {}".format(result, date))
|
||||
|
||||
# same as show_sevices
|
||||
|
||||
|
||||
Reference in New Issue
Block a user