Update generate-amazon-aws.py
parent
b58e05fb87
commit
4716207fec
|
@ -13,12 +13,10 @@ j = json.loads(res_body.decode("utf-8"))
|
|||
l = []
|
||||
|
||||
for prefix in j['prefixes']:
|
||||
#print("{0}".format(prefix['ip_prefix']))
|
||||
l.append(prefix['ip_prefix'])
|
||||
|
||||
|
||||
for prefix in j['ipv6_prefixes']:
|
||||
#print("{0}".format(prefix['ipv6_prefix']))
|
||||
prefix['ipv6_prefix']
|
||||
|
||||
warninglist = {}
|
||||
|
@ -29,4 +27,4 @@ warninglist['list'] = sorted(set(l))
|
|||
warninglist['matching_attributes'] = ["ip-src", "ip-dst", "domain|ip"]
|
||||
|
||||
|
||||
print(json.dumps(warninglist))
|
||||
print(json.dumps(warninglist))
|
||||
|
|
Loading…
Reference in New Issue