Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python -tt
- import re
- import urllib2
- response = urllib2.urlopen('http://isc.sans.edu/reports.html')
- html = response.read()
- ip_raw = re.findall(r'(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b)', html)
- ip = '\n'.join(sorted(set(ip_raw)))
- print ip
Add Comment
Please, Sign In to add comment