Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooks before and after running an exploiter #346

Closed
VakarisZ opened this issue Jun 12, 2019 · 0 comments
Closed

Hooks before and after running an exploiter #346

VakarisZ opened this issue Jun 12, 2019 · 0 comments
Assignees
Labels
Enhancement Issue that describes an enhancement to a current feature.

Comments

@VakarisZ
Copy link
Contributor

We need to refactor HostExploiter abstract class to support hooked functions before and after exploiter execution. One approach would be to rename the method exploit_host to _exploit_host (also on all HostExploiter subclasses), and create a new function exploit_host which will call all the hooked methods and the main method, for e.g. set_start_time, _exploit_host and set_finish_time. In the future, if we'll want to add more logic to before and after exploit, we'll be able to do so easily by overriding _exploit_host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Issue that describes an enhancement to a current feature.
Projects
None yet
Development

No branches or pull requests

2 participants