mirror of https://github.com/MISP/misp-modules
fix logical test
parent
9fd23d6fe0
commit
7813ba4fc3
|
@ -37,13 +37,11 @@ class OnypheClient:
|
||||||
return results
|
return results
|
||||||
|
|
||||||
def get_query_onyphe(self):
|
def get_query_onyphe(self):
|
||||||
print(self.attribute)
|
if self.attribute['type'] == 'ip-src' or self.attribute['type'] == 'ip-dst':
|
||||||
if self.attribute['type'] == 'ip-src' and self.attribute['type'] == 'ip-dst':
|
|
||||||
self.__summary_ip()
|
self.__summary_ip()
|
||||||
|
|
||||||
def __summary_ip(self):
|
def __summary_ip(self):
|
||||||
results = self.onyphe_client.summary_ip(self.attribute['value'])
|
results = self.onyphe_client.summary_ip(self.attribute['value'])
|
||||||
print(results)
|
|
||||||
if 'results' in results:
|
if 'results' in results:
|
||||||
for r in results['results']:
|
for r in results['results']:
|
||||||
domain = r['domain']
|
domain = r['domain']
|
||||||
|
|
Loading…
Reference in New Issue