aboutsummaryrefslogtreecommitdiff
path: root/modules/dnsbl/lists.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dnsbl/lists.py')
-rw-r--r--modules/dnsbl/lists.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/dnsbl/lists.py b/modules/dnsbl/lists.py
index ce2b6404..b84628ea 100644
--- a/modules/dnsbl/lists.py
+++ b/modules/dnsbl/lists.py
@@ -6,7 +6,7 @@ class DNSBL(object):
self.hostname = hostname
def process(self, result: str):
- return "unknown"
+ return result
class ZenSpamhaus(DNSBL):
hostname = "zen.spamhaus.org"
@@ -40,10 +40,18 @@ class DroneBL(DNSBL):
elif result in ["12", "13", "15", "16"]:
return "exploits"
+class AbuseAtCBL(DNSBL):
+ hostname = "cbl.abuseat.org"
+ def process(self, result):
+ result = result.rsplit(".", 1)[1]
+ if result == "2":
+ return "abuse"
+
DEFAULT_LISTS = [
ZenSpamhaus(),
EFNetRBL(),
- DroneBL()
+ DroneBL(),
+ AbuseAtCBL()
]
def default_lists():