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
Local Database #260
Local Database #260
Conversation
…tSuite into feature/226-local-database
This reverts commit 3325064.
ScoutSuite/output/data/html/partials/gcp/services.cloudresourcemanager.bindings.html
Show resolved
Hide resolved
ScoutSuite/output/data/html/partials/gcp/services.cloudsql.instances.html
Show resolved
Hide resolved
ScoutSuite/output/data/html/partials/gcp/services.iam.service_accounts.html
Show resolved
Hide resolved
ScoutSuite/output/data/html/partials/gcp/services.stackdriverlogging.sinks.html
Show resolved
Hide resolved
@@ -0,0 +1,162 @@ | |||
var defaultPageSize = 2 | |||
var regionPageSize = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use const
?
var regionPageSize = 1 | |
const regionPageSize = 1 |
@@ -0,0 +1,162 @@ | |||
var defaultPageSize = 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as below.
var defaultPageSize = 2 | |
const defaultPageSize = 2 |
if type(o) == datetime.datetime: | ||
return str(o) | ||
else: | ||
# remove unwanted attributes from the provider object during conversion to json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'll be able to delete that when #183 will be fully merged since those won't exist anymore.
Co-Authored-By: zer0x64 <17575242+zer0x64@users.noreply.github.com>
Feature functional although it could use some improvements, but since there is less than 1 week before the end of the project @zer0x64 and me would like to get this merged ASAP. Also to cease the merge conflicts.
Scroll down for TL;DR
Changes done within this PR :
--result-format
with eitherjson
orsqlite
as args.scoutsuite-results/scoutsuite_results.js
andscoutsuite-results/scoutsuite_exceptions.js
are no longer inreport.html
by default, they are instead in a partial that is added if the user chosejson
in the previous point.scoutsuite.js
now checks whether an element with the idjson_format
orsqlite_format
exists to know which functions to call..db
file instead of a.js
file, these files being more compact as well as readable by a server..db
file to our client through CherryPy..js
files to follow standardJS, there are still some changes to do.Known issues :
jquery-3.3.1.min.js:2 Access to XMLHttpRequest at 'file:///home/vifor2/Documents/ScoutSuite/scoutsuite-report/inc-scoutsuite/sqlite.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
XML Parsing Error: syntax error Location: file:///home/vifor2/Documents/ScoutSuite/scoutsuite-report/inc-scoutsuite/sqlite.js Line Number 1, Column 1:
TL;DR
Example with Azure
While in /ScoutSuite open two terminals, in the first one type in
azure --cli --serve
and in the second one your usual command followed by--result-format sqlite
, you can then view the report has usually excepted for the fact that you'll have buttons to load in/out new pages.Example with GCP
Same as concept as Azure but replace the first command with
gcp --user-account --serve
Example with AWS
Same concept as previous ones but replace the first command with
aws --serve