Office 365 URLs and IP address ranges added
parent
6850a349c0
commit
42816083a3
|
@ -14,6 +14,7 @@ are available in one of the list. The list can be globally enabled or disabled i
|
|||
- [lists/google](lists/google) - known domains and hostnames from Google
|
||||
- [lists/ipv6-linklocal](ipv6-linklocal) - IPv6 link local prefix
|
||||
- [lists/microsoft](lists/microsoft) - known microsoft domains
|
||||
- [lists/microsoft-office365](lists/microsoft-office365) - known Office 365 URLs and IP address ranges
|
||||
- [lists/multicast](lists/multicast) - known IPv4 multicast CIDR blocks
|
||||
- [lists/public-dns-v4](lists/public-dns-v4) - IPv4 addresses and reverse of public DNS resolver
|
||||
- [lists/public-dns-v6](lists/public-dns-v6) - IPv6 addresses and reverse of public DNS resolver
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import requests
|
||||
import xml.etree.ElementTree as ET
|
||||
import json
|
||||
|
||||
url = 'https://support.content.office.net/en-us/static/O365IPAddresses.xml'
|
||||
r = requests.get(url)
|
||||
office365 = ET.fromstring(r.text)
|
||||
l = []
|
||||
for address in office365.iter('address'):
|
||||
l.append(address.text.replace('*', ''))
|
||||
|
||||
warninglist = {}
|
||||
warninglist['description'] = 'Office 365 URLs and IP address ranges'
|
||||
warninglist['list'] = l
|
||||
|
||||
print (json.dumps(warninglist))
|
Loading…
Reference in New Issue