Module response added

pull/898/head
Adrian Maraj 2024-03-26 14:08:14 +01:00
parent 680735b3d3
commit 471c2c938c
1 changed files with 7 additions and 0 deletions

View File

@ -281,6 +281,13 @@ class TriggerModules(Resource): # type: ignore[misc]
force = True if parameters.get('force') else False
return lookyloo.trigger_modules(capture_uuid, force=force)
@api.route('/json/<string:tree_uuid>/modules')
@api.doc(description='Get responses from the 3rd party modules',
params={'tree_uuid': 'The UUID of the capture'})
class ModulesResponse(Resource): # type: ignore[misc]
def get(self, tree_uuid: str) -> dict[str, Any]:
return lookyloo.get_modules_responses(tree_uuid)
@api.route('/json/hash_info/<h>')
@api.doc(description='Search for a ressource with a specific hash (sha512)',