mirror of https://github.com/MISP/MISP-maltego
fix: [transform] minor fix when searching for galaxies
parent
eb80120d2d
commit
06441f519c
2
setup.py
2
setup.py
|
@ -6,7 +6,7 @@ setup(
|
||||||
name='MISP_maltego',
|
name='MISP_maltego',
|
||||||
author='Christophe Vandeplas',
|
author='Christophe Vandeplas',
|
||||||
# also update version in util.py
|
# also update version in util.py
|
||||||
version='1.4.0',
|
version='1.4.1',
|
||||||
author_email='christophe@vandeplas.com',
|
author_email='christophe@vandeplas.com',
|
||||||
maintainer='Christophe Vandeplas',
|
maintainer='Christophe Vandeplas',
|
||||||
url='https://github.com/MISP/MISP-maltego',
|
url='https://github.com/MISP/MISP-maltego',
|
||||||
|
|
|
@ -12,7 +12,7 @@ import time
|
||||||
|
|
||||||
# FIXME from galaxy 'to MISP Event' is confusing
|
# FIXME from galaxy 'to MISP Event' is confusing
|
||||||
|
|
||||||
__version__ = '1.4.0' # also update version in setup.py
|
__version__ = '1.4.1' # also update version in setup.py
|
||||||
|
|
||||||
mapping_misp_to_maltego = {
|
mapping_misp_to_maltego = {
|
||||||
'AS': [AS],
|
'AS': [AS],
|
||||||
|
|
|
@ -60,7 +60,9 @@ class GalaxyToTransform(Transform):
|
||||||
# TODO check if duplicates are possible
|
# TODO check if duplicates are possible
|
||||||
if potential_clusters:
|
if potential_clusters:
|
||||||
for potential_cluster in potential_clusters:
|
for potential_cluster in potential_clusters:
|
||||||
response += galaxycluster_to_entity(potential_cluster, link_label='Search result')
|
new_entity = galaxycluster_to_entity(potential_cluster, link_label='Search result')
|
||||||
|
if isinstance(new_entity, type_filter):
|
||||||
|
response += new_entity
|
||||||
return response
|
return response
|
||||||
|
|
||||||
if not current_cluster:
|
if not current_cluster:
|
||||||
|
|
Loading…
Reference in New Issue