Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Added run_responder functionality#219

Closed
emalderson wants to merge 1 commit into
TheHive-Project:1.xfrom
emalderson:add_run_responder_functionality
Closed

Added run_responder functionality#219
emalderson wants to merge 1 commit into
TheHive-Project:1.xfrom
emalderson:add_run_responder_functionality

Conversation

@emalderson
Copy link
Copy Markdown

@emalderson emalderson commented May 4, 2021

Added the function "run_responder" to the file "api.py" that allows running a responder by its ID.

@emalderson
Copy link
Copy Markdown
Author

emalderson commented Aug 1, 2021

In order to start a responder by its name instead of using its ID, it is also possible to use the Cortex API through Cortex4py.
For instance, assuming that "api_cortex" is the object representing the Cortex API, it is possible to obtain the responder ID for the Mailer responder as follows:

mailer_responder_id = api_cortex.responders.get_by_name('Mailer_1_0').id

This ID can then be passed to the "run_responder()" function.

@Kamforka
Copy link
Copy Markdown
Collaborator

Closing this as this functionality is already present in 2.x and 1.x is not supported anymore

@Kamforka Kamforka closed this Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants