scanner-cli icon indicating copy to clipboard operation
scanner-cli copied to clipboard

Dynamically included modules

Open scooterhanson opened this issue 8 years ago • 2 comments

It would be awesome if modules could be included/loaded dynamically without having to fetch from github. Maybe like declaring dependencies in the rc file.

scooterhanson avatar Nov 21 '17 23:11 scooterhanson

I've thought about that and it would be awesome. Actually, apart from the hours to invest it would also be relatively trivial. Currently thinking about spinning out all of the existing modules into npm dependencies. Instead of specifying them as -m files-contents it would be something like -m @hawkeyesec/modules-files-contents, or something along those lines.

Should be even more straightforward after the massive refactoring, if you wanna give it a shot.

The only downside is the dependency to the scanner through the injected FileManager ... not sure how to solve that one.

felixhammerl avatar Oct 19 '18 11:10 felixhammerl

The only downside is the dependency to the scanner through the injected FileManager ... not sure how to solve that one.

I think that can be solved by extracting it into a separate package like @hawkeyesec/core on which modules will depend.

bekh6ex avatar Jul 11 '19 08:07 bekh6ex