-
Notifications
You must be signed in to change notification settings - Fork 7
/
feedpull.py
39 lines (26 loc) · 825 Bytes
/
feedpull.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/python
import urllib
def main():
downloadFeeds()
def downloadFeeds():
print 'Fetching blocklist.de botlist...'
try:
urllib.urlretrieve('http://www.blocklist.de/lists/bots.txt','/tmp/blocklist_bots.txt')
except:
print 'Could not retrive the blocklist.de bots list.'
pass
print 'Fetching AlientVault IP Reputation Data...'
try:
urllib.urlretrieve('http://reputation.alienvault.com/reputation.data','/tmp/avbots.txt')
except:
print 'Could not retrieve AlienVault reputation data.'
pass
print 'Fetching Feodotracker botnet domain list...'
try:
urllib.urlretrieve('https://feodotracker.abuse.ch/blocklist/?download=ipblocklist','/tmp/feodoipblock.txt')
except Exception,e:
print e
print 'Could not retrieve Feodotracker ip block list'
pass
if __name__ == '__main__':
main()