Bugfix type
parent
f42b95706e
commit
3fb335eebd
|
@ -15,7 +15,6 @@ l = []
|
|||
for prefix in j['prefixes']:
|
||||
l.append(prefix['ip_prefix'])
|
||||
|
||||
|
||||
for prefix in j['ipv6_prefixes']:
|
||||
prefix['ipv6_prefix']
|
||||
|
||||
|
@ -23,8 +22,8 @@ warninglist = {}
|
|||
warninglist['name'] = 'List of known Amazon AWS IP address ranges'
|
||||
warninglist['version'] = int(datetime.date.today().strftime('%Y%m%d'))
|
||||
warninglist['description'] = 'Amazon AWS IP address ranges (https://ip-ranges.amazonaws.com/ip-ranges.json)'
|
||||
warninglist['type'] = 'cidr'
|
||||
warninglist['list'] = sorted(set(l))
|
||||
warninglist['matching_attributes'] = ["ip-src", "ip-dst", "domain|ip"], ["type": "cidr"]
|
||||
|
||||
warninglist['matching_attributes'] = ["ip-src", "ip-dst", "domain|ip"]
|
||||
|
||||
print(json.dumps(warninglist))
|
||||
|
|
Loading…
Reference in New Issue