ScoutSuite icon indicating copy to clipboard operation
ScoutSuite copied to clipboard

Is it possible to call and use scout.py directly from a separate python script?

Open HardHero opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

We have a lot of python utility functions that extract the data required to run scout-suite cli. Right now we get that data and inject it into a subprocess in a python script to call the shell cli. This works but is clunky, especially when it comes to error, troubleshooting, and debugging.

Describe the solution you'd like

I am not sure if this is already possible, but haven't been able to get it to work. If we could call the main function either from scout.py or other piece of the scout-suite source code while adding the parameters we need without involving a shell subprocess, that would be neat.

Describe alternatives you've considered

I have tried this myself with little success. It feels like it's possible, but I can't find any documentation on the matter.

Additional context

This is not really high priority at all, just a nice-to-have.

HardHero avatar Aug 29 '23 22:08 HardHero

You can call https://github.com/nccgroup/ScoutSuite/blob/master/ScoutSuite/main.py#L91 programmatically.

x64-latacora avatar Aug 30 '23 08:08 x64-latacora