mirror of https://github.com/MISP/MISP-maltego
chg: [docu] long_description + misp_maltego useragent fixes #14
parent
eb49465639
commit
487285b41c
4
setup.py
4
setup.py
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
with open("README.md", "r") as fh:
|
||||||
|
long_description = fh.read()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='MISP_maltego',
|
name='MISP_maltego',
|
||||||
author='Christophe Vandeplas',
|
author='Christophe Vandeplas',
|
||||||
|
@ -11,6 +14,7 @@ setup(
|
||||||
maintainer='Christophe Vandeplas',
|
maintainer='Christophe Vandeplas',
|
||||||
url='https://github.com/MISP/MISP-maltego',
|
url='https://github.com/MISP/MISP-maltego',
|
||||||
description='Maltego transform for interacting with a MISP Threat Sharing community and with MITRE ATT&CK.',
|
description='Maltego transform for interacting with a MISP Threat Sharing community and with MITRE ATT&CK.',
|
||||||
|
long_description=long_description,
|
||||||
license='AGPLv3',
|
license='AGPLv3',
|
||||||
packages=find_packages('src'),
|
packages=find_packages('src'),
|
||||||
package_dir={'': 'src'},
|
package_dir={'': 'src'},
|
||||||
|
|
|
@ -88,7 +88,7 @@ def get_misp_connection(config=None, parameters=None):
|
||||||
misp_key = parameters['mispkey'].value
|
misp_key = parameters['mispkey'].value
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise MaltegoException("ERROR: mispurl and mispkey need to be set to something valid")
|
raise MaltegoException("ERROR: mispurl and mispkey need to be set to something valid")
|
||||||
misp_connection = PyMISP(misp_url, misp_key, misp_verify, 'json', misp_debug)
|
misp_connection = PyMISP(misp_url, misp_key, misp_verify, 'json', misp_debug, tool='misp_maltego')
|
||||||
except Exception:
|
except Exception:
|
||||||
if is_local_exec_mode():
|
if is_local_exec_mode():
|
||||||
raise MaltegoException("ERROR: Cannot connect to MISP server. Please verify your MISP_Maltego.conf settings.")
|
raise MaltegoException("ERROR: Cannot connect to MISP server. Please verify your MISP_Maltego.conf settings.")
|
||||||
|
|
Loading…
Reference in New Issue