27 lines
718 B
Python
27 lines
718 B
Python
#!/usr/bin/env python
|
|
|
|
"""
|
|
Copyright (c) 2014-2026 Maltrail developers (https://github.com/stamparm/maltrail/)
|
|
See the file 'LICENSE' for copying permission
|
|
"""
|
|
|
|
from core.common import retrieve_content
|
|
|
|
__url__ = "https://raw.githubusercontent.com/scriptzteam/badIPS/main/ips.txt"
|
|
__check__ = ".1"
|
|
__info__ = "bad reputation"
|
|
__reference__ = "github.com/scriptzteam/badIPS"
|
|
|
|
def fetch():
|
|
retval = {}
|
|
content = retrieve_content(__url__)
|
|
|
|
if __check__ in content:
|
|
for line in content.split('\n'):
|
|
line = line.strip()
|
|
if not line or line.startswith('#') or line.count('.') != 3:
|
|
continue
|
|
retval[line] = (__info__, __reference__)
|
|
|
|
return retval
|