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

Generalize PBA loader and use it for exploiters, fingerprint scanners and other modules #397

Closed
VakarisZ opened this issue Jul 29, 2019 · 2 comments
Assignees
Labels
Enhancement Issue that describes an enhancement to a current feature. Help wanted

Comments

@VakarisZ
Copy link
Contributor

Post breach actions are loaded dynamically, by getting all PBA files in the infection_monkey.post_breach.actions folder and extracting relevant classes.
Post breach action loader can be generalized to load exploiters, fingerprint scanners and other modules.

Loader should be merged:

infection_monkey.post_breach.actions.__init__.py and infection_monkey.post_breach.post_breach_handler should be merged into one loader class.

Loader should be generalized:

Core method should take in:

  1. Class instance (only children of this class will be returned)
  2. File directory (where to look for files that needs to be imported)
  3. Config array reference

Core method should return:

  1. Filtered list of classes in a specified directory.

Loader's class needs to contain a default checker method that would compare class's name to the relevant config value to determine if class should be returned or not.

Loader should be applied to:

a. PBA
b. Fingerprint scanners
c. Exploiters

Pyinstaller hook should be updated to include all module directories.

@VakarisZ VakarisZ added Enhancement Issue that describes an enhancement to a current feature. Help wanted Monkey labels Jul 29, 2019
@danielguardicore
Copy link
Contributor

As part of #478 , wrote a loader for
a. PBA
b. Fingerprint scanners

@danielguardicore
Copy link
Contributor

As part of #499 extended this loader for exploiters and with that, can close this issue.

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. Help wanted
Projects
None yet
Development

No branches or pull requests

2 participants