From 7813ba4fc347ceab4eeba5cf3ffe0038c3c0ed71 Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Fri, 23 Apr 2021 16:11:10 +0200 Subject: [PATCH] fix logical test --- misp_modules/modules/expansion/onyphe.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/misp_modules/modules/expansion/onyphe.py b/misp_modules/modules/expansion/onyphe.py index 8f6dd2c..d80a832 100644 --- a/misp_modules/modules/expansion/onyphe.py +++ b/misp_modules/modules/expansion/onyphe.py @@ -37,13 +37,11 @@ class OnypheClient: return results def get_query_onyphe(self): - print(self.attribute) - if self.attribute['type'] == 'ip-src' and self.attribute['type'] == 'ip-dst': + if self.attribute['type'] == 'ip-src' or self.attribute['type'] == 'ip-dst': self.__summary_ip() def __summary_ip(self): results = self.onyphe_client.summary_ip(self.attribute['value']) - print(results) if 'results' in results: for r in results['results']: domain = r['domain']