Bugfix type

pull/55/head
eCrimeLabs 2018-02-22 07:53:31 +01:00 committed by GitHub
parent f42b95706e
commit 3fb335eebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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))