Scoutsuite: Incorrect CMD when not running through CLI

Created on 13 May 2019  路  4Comments  路  Source: nccgroup/ScoutSuite

When running ScoutSuite through another python program (as an import) the cmd in last_run is the command of the overarching program, not what would of been ran if using ScoutSuite from the CLI.

It would be useful that if ScoutSuite is ran as an import that the cmd is set to what would have been run if running from the CLI.

bug component-core

All 4 comments

Would it work better if instead of the CLI value (taken from sys.argv) it was a dict of the non-None values passed to _run()?

In the report, instead of displaying "Command", we could display these values.

@j4v Yeah that works for me

@thommor looks something like this:

sc_2019-05-17_16h09m05s

I don't think it looks as "nice" as before especially since the parameter names are the ones in the code not the CLI but it does the job.

Comments/Suggestions?

Closing as merged into develop.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kreatemore picture kreatemore  路  5Comments

museadmin picture museadmin  路  9Comments

prisas picture prisas  路  4Comments

regevbr picture regevbr  路  7Comments

djcater picture djcater  路  5Comments