8000 release/5.8.0 by x4v13r64 · Pull Request #636 · nccgroup/ScoutSuite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

release/5.8.0 #636

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

Merged
merged 182 commits into from
Mar 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
0a2d7a5
Add field for default / non default user-managed SAs
x4v13r64 Jun 21, 2019
7d53dc6
Merge branch 'develop' into enhancement/gcp-sa-handling
x4v13r64 Jun 22, 2019
7d9e63e
Merge branch 'master' into enhancement/gcp-sa-handling
x4v13r64 Aug 20, 2019
d89abea
Merge branch 'develop' into enhancement/gcp-sa-handling
x4v13r64 Nov 12, 2019
545d870
Fix minor bug
x4v13r64 Nov 12, 2019
2d90e0c
Fix edge case
x4v13r64 Nov 12, 2019
822deee
Improve partial
x4v13r64 Nov 13, 2019
36dd0cd
Exclude ACLs with uniform buckets
x4v13r64 Nov 13, 2019
acfe486
Fix rule to include ACLs
x4v13r64 Nov 13, 2019
b5146a8
Add appropriate suffixes
x4v13r64 Nov 13, 2019
0a0569c
Improvements to partial
x4v13r64 Nov 13, 2019
0514082
Makes reading auth files allot more reliable
newscorp-bknauss Jan 27, 2020
4d49456
Suppress info logs
x4v13r64 Jan 29, 2020
7c21f60
Add support for compartments
x4v13r64 Feb 4, 2020
24145eb
Improve error handling
x4v13r64 Feb 4, 2020
906d9bd
Improve error handling
x4v13r64 Feb 4, 2020
9bf9e82
Fix for https://github.com/nccgroup/ScoutSuite/issues/635
x4v13r64 Feb 5, 2020
602dd9c
Merge branch 'develop' into rracterr-master
x4v13r64 Feb 5, 2020
611de46
Merge pull request #631 from rracterr/master
x4v13r64 Feb 5, 2020
714ff5f
Add notice
x4v13r64 Feb 5, 2020
9ff5cb6
Merge remote-tracking branch 'origin/develop' into develop
x4v13r64 Feb 5, 2020
2147f84
Update version
x4v13r64 Feb 5, 2020
9ae5ed9
Merge branch 'develop' into enhancement/OCI-support
x4v13r64 Feb 5, 2020
cf20d8d
Move processing to resource
x4v13r64 Feb 5, 2020
9e59a29
Update rationale
x4v13r64 Feb 5, 2020
a06d3c1
Validate directly in the rule
x4v13r64 Feb 5, 2020
86fc4ec
Minor change
x4v13r64 Feb 5, 2020
8e35df6
Add requirement
x4v13r64 Feb 6, 2020
c6802df
Handle MS Graph auth for username/password
x4v13r64 Feb 6, 2020
5da41d9
Add query method
x4v13r64 Feb 6, 2020
d649ffc
Sample MS Graph implementation
x4v13r64 Feb 6, 2020
d8f2ebf
Sample MS Graph implementation
x4v13r64 Feb 6, 2020
b39c695
Add query methods
x4v13r64 Feb 6, 2020
0aa5be2
Add resources
x4v13r64 Feb 6, 2020
b4c9749
Add resources for VM service
x4v13r64 Feb 6, 2020
25ee505
Show resources
x4v13r64 Feb 6, 2020
6f8d433
Improve error handling
x4v13r64 Feb 7, 2020
f04cfff
Improve error handling and add support for compartment scans
x4v13r64 Feb 7, 2020
008d456
Set python version
x4v13r64 Feb 7, 2020
7d9e566
Merge pull request #634 from nccgroup/enhancement/OCI-support
x4v13r64 Feb 7, 2020
af09871
feat: introduce kms resource
klauern Feb 7, 2020
a9fcda7
fix: get KMS aliases to parse out
klauern Feb 7, 2020
5740edf
feat: first stab at getting KMS Grants
klauern Feb 7, 2020
5aa7b2a
Add VM finding
x4v13r64 Feb 7, 2020
22f0315
feat: add KeyPolicies and Keys to KMS resource
klauern Feb 7, 2020
526e89d
feat: fix child/parent relationship for KMS items
klauern Feb 7, 2020
57652b5
Add VM finding
x4v13r64 Feb 8, 2020
9874419
feat: add python3.8 to build matrix
klauern Feb 9, 2020
6d98d6a
feat: add flake8 config to simplify running it
klauern Feb 9, 2020
922b3e4
added public checks for ami and ebs snapshots
newscorp-bknauss Feb 10, 2020
d4bec88
added public checks to detailed
newscorp-bknauss Feb 10, 2020
0d19d0a
fixed path
newscorp-bknauss Feb 10, 2020
6682197
Merge branch 'master' into develop
x4v13r64 Feb 11, 20 8000 20
406e6d4
Merge pull request #642 from nccgroup/enhancement/flake8
x4v13r64 Feb 11, 2020
27a8681
Merge remote-tracking branch 'origin/develop' into develop
x4v13r64 Feb 11, 2020
c31545c
Merge pull request #640 from nccgroup/enhancement/python-38
x4v13r64 Feb 11, 2020
33f4c8e
feat: add autopep8 formatting
klauern Feb 11, 2020
11e36b0
Merge branch 'master' of https://github.com/rracterr/ScoutSuite into …
x4v13r64 Feb 11, 2020
8879fe7
Update finding
x4v13r64 Feb 11, 2020
be45cd1
Update finding
x4v13r64 Feb 11, 2020
4edad69
Sort ruleset
x4v13r64 Feb 11, 2020
2d19418
Sort ruleset
x4v13r64 Feb 11, 2020
4c189a5
Merge branch 'rracterr-master' into develop
x4v13r64 Feb 11, 2020
78ec0d7
Merge branch 'develop' of github.com:nccgroup/ScoutSuite into develop
x4v13r64 Feb 11, 2020
18d96da
Merge branch 'enhancement/kms' of https://github.com/klauern/ScoutSui…
x4v13r64 Feb 11, 2020
be4d6e0
Merge
x4v13r64 Feb 11, 2020
74f23ac
Merge
x4v13r64 Feb 11, 2020
bced56d
Merge
x4v13r64 Feb 11, 2020
15a32be
Add HTML partial
x4v13r64 Feb 11, 2020
277b67b
Merge
x4v13r64 Feb 11, 2020
42653fe
Close element
x4v13r64 Feb 11, 2020
af49d5c
Improve partial
x4v13r64 Feb 11, 2020
5b9c0b8
Improve parsing
x4v13r64 Feb 11, 2020
ef9e371
Improve parsing
x4v13r64 Feb 11, 2020
6518cde
Merge
x4v13r64 Feb 11, 2020
d95b8bf
Merge branch 'klauern-enhancement/kms' into develop
x4v13r64 Feb 11, 2020
98321fe
Bug fix
x4v13r64 Feb 12, 2020
12aa6bd
Handle uniform bucket ACLs
x4v13r64 Feb 12, 2020
e770dcb
Fix GCS versioning
x4v13r64 Feb 12, 2020
995522a
Fix GCS versioning
x4v13r64 Feb 12, 2020
de69210
Fix GCS versioning
x4v13r64 Feb 12, 2020
31bc439
Improve partial
x4v13r64 Feb 12, 2020
5f32f24
Include default object acls
x4v13r64 Feb 12, 2020
540b891
Simplify parsing
x4v13r64 Feb 12, 2020
0d64e8a
Improve code quality
x4v13r64 Feb 12, 2020
096f3c1
Improve code quality
x4v13r64 Feb 12, 2020
59df5d8
Improve partial
x4v13r64 Feb 12, 2020
f905667
fix: autopep8 support + fixes
klauern Feb 13, 2020
d66b6c5
Merge pull request #646 from nccgroup/enhancement/autopep8
x4v13r64 Feb 13, 2020
ec221bc
Merge branch 'develop' into enhancement/gcp-sa-handling
x4v13r64 Feb 13, 2020
a4510d5
Improve partials
x4v13r64 Feb 13, 2020
1fff097
Update suffix
x4v13r64 Feb 13, 2020
7a30e7e
Improve partial
x4v13r64 Feb 13, 2020
e049394
Remove broken condition (didn't include user-managed default SAs)
x4v13r64 Feb 13, 2020
32abeee
Improve rationales
x4v13r64 Feb 13, 2020
9fdb43d < 8000 div class="text-emphasized css-truncate css-truncate-target"> Fix ruleset
x4v13r64 Feb 13, 2020
c2b4195
Fix ruleset
x4v13r64 Feb 13, 2020
f2f670e
Merge remote-tracking branch 'origin/develop' into develop
x4v13r64 Feb 13, 2020
b7bfc74
Merge pull request #648 from nccgroup/enhancement/gcp-sa-handling
x4v13r64 Feb 13, 2020
589b901
Improve parsing
x4v13r64 Feb 14, 2020
59c9f75
Improve partial
x4v13r64 Feb 14, 2020
d3ed286
Improve partial
x4v13r64 Feb 14, 2020
f415956
Add rationale
x4v13r64 Feb 14, 2020
1567b74
Merge remote-tracking branch 'origin/develop' into develop
x4v13r64 Feb 14, 2020
0d55aee
Fix https://github.com/nccgroup/ScoutSuite/issues/606
x4v13r64 Feb 14, 2020
2da2a57
Minor change
x4v13r64 Feb 14, 2020
7f8af5a
Remove duplicate lines
x4v13r64 Feb 14, 2020
4e676ef
Improve check
x4v13r64 Feb 14, 2020
1968914
Replace first check
x4v13r64 Feb 14, 2020
3d9b10b
Fix logic
x4v13r64 Feb 14, 2020
f4c6dcd
Simplify policy
x4v13r64 Feb 14, 2020
ac7d248
Simplify rule
x4v13r64 Feb 14, 2020
702f9f9
Simplify rule
x4v13r64 Feb 14, 2020
2ca1cfb
Simplify rule
x4v13r64 Feb 14, 2020
4ca6b63
Minor change
x4v13r64 Feb 14, 2020
a3d5598
Minor change
x4v13r64 Feb 14, 2020
9a25387
Includes "ForAnyValue" in checks.
x4v13r64 Feb 14, 2020
7a447bf
Basic suport for alerts
x4v13r64 Feb 16, 2020
d658140
Add support for Security Center compliance results
x4v13r64 Feb 16, 2020
d4a068d
Add support for Security Center regulatory compliance results
x4v13r64 Feb 16, 2020
d045e2f
Reformat code
x4v13r64 Feb 16, 2020
8a08c04
Deleted regions filter on navbar
prisas Feb 18, 2020
a572eb0
Added extra padding at the end of the Base64 value to avoid decoding …
Feb 19, 2020
d65754c
Handled the padding exception and added extra padding to try and deco…
Feb 19, 2020
e41dcc2
Add basic support for AWS Secrets Manager
x4v13r64 Feb 20, 2020
92eb1e7
Revert change
x4v13r64 Feb 20, 2020
5dc6458
Updated fix
x4v13r64 Feb 20, 2020
c9a1dc0
Merge pull request #652 from nccgroup/feature/top-menu-review
prisas Feb 20, 2020
7329a4b
Merge pull request #653 from nccgroup/bugfix/lack-of-padding-ec2
x4v13r64 Feb 21, 2020
7237a24
Update rationale
x4v13r64 Feb 21, 2020
934438a
Merge remote-tracking branch 'origin/develop' into develop
x4v13r64 Feb 21, 2020
6cb6ec9
Add Azure App Service and findings
x4v13r64 Feb 23, 2020
e86de5b
Update ruleset
x4v13r64 Feb 23, 2020
4f57c99
Disable WIP rule
x4v13r64 Feb 23, 2020
76de0b0
Merge branch 'develop' into enhancement/azure-microsoft-graph-support
x4v13r64 Feb 23, 2020
6259817
Add metadata options
alessandrogonzalez3 Feb 28, 2020
764253c
Add metadata to instances partial
alessandrogonzalez3 Feb 28, 2020
5f63b54
Fix yet another Rob error
x4v13r64 Feb 28, 2020
6b11a6d
Merge branch 'develop' into enhancement/azure-microsoft-graph-support
x4v13r64 Feb 28, 2020
ac9349f
Improve partial
x4v13r64 Mar 1, 2020
ed31145
Merge pull request #657 from nccgroup/feature/add-metadata-info
alessandrogonzalez Mar 2, 2020
bfe7c4b
Fix https://github.com/nccgroup/ScoutSuite/issues/618
x4v13r64 Mar 5, 2020
c45e926
Merge remote-tracking branch 'origin/develop' into develop
x4v13r64 Mar 5, 2020
35f70c7
Improve implementation
x4v13r64 Mar 5, 2020
ec33149
Fix for https://github.com/nccgroup/ScoutSuite/issues/619
x4v13r64 Mar 5, 2020
77fe16d
Fix for https://github.com/nccgroup/ScoutSuite/issues/655
x4v13r64 Mar 5, 2020
59f6316
Upgrade status
x4v13r64 Mar 5, 2020
a38a736
Minor formatting change
x4v13r64 Mar 12, 2020
b601089
Fix for https://github.com/nccgroup/ScoutSuite/issues/629
x4v13r64 Mar 12, 2020
368bb18
Merge pull request #667 from nccgroup/issue/629
x4v13r64 Mar 12, 2020
76648c7
Fix filter implementation (broken in refactoring)
x4v13r64 Mar 12, 2020
eef3d6b
Fix rule
x4v13r64 Mar 13, 2020
29038ce
Remove finding from ruleset
x4v13r64 Mar 13, 2020
3ca8820
Merge pull request #668 from nccgroup/issues/647
x4v13r64 Mar 13, 2020
50bd229
Merge branch 'enhancement/azure-microsoft-graph-support' into develop
x4v13r64 Mar 13, 2020
d85e3a6
Remove WIP code
x4v13r64 Mar 13, 2020
b5da586
Merge remote-tracking branch 'origin/develop' into develop
x4v13r64 Mar 13, 2020
77c33f7
Added all findings
JJmako Mar 16, 2020
3f6cd47
parsing bug fixes
rtomlinson-latacora Mar 17, 2020
944b0d6
named the variable wrong
rtomlinson-latacora Mar 17, 2020
65e880c
Test fix
x4v13r64 Mar 17, 2020
a8b850b
Additional parsing
x4v13r64 Mar 17, 2020
be2da50
Rework logic
x4v13r64 Mar 17, 2020
8f4d6af
Merge branch 'latacora-upstream/bugfix/673' into develop
x4v13r64 Mar 17, 2020
af2bd7b
Allow creating arbitrary clients
x4v13r64 Mar 17, 2020
7c46a15
Small improvement
x4v13r64 Mar 19, 2020
b74f2ab
Pull name field from tags
x4v13r64 Mar 19, 2020
2cd8e0c
Add name field and improve partial
x4v13r64 Mar 19, 2020
8e614be
Remove duplicate call
x4v13r64 Mar 19, 2020
5d6a414
Minor change
x4v13r64 Mar 19, 2020
7c7ce2f
Change parameter
x4v13r64 Mar 19, 2020
5fedd20
Tweaks
x4v13r64 Mar 19, 2020
0e80daa
Merge branch 'develop' into feature/list_supported_services
x4v13r64 Mar 20, 2020
bd7f9b1
This implementation has less impact on the logic
x4v13r64 Mar 20, 2020
1bbaed9
Restore change from develop branch
x4v13r64 Mar 20, 2020
2cbf0ee
Restore order
x4v13r64 Mar 20, 2020
235be34
Merge pull request #671 from nccgroup/feature/list_supported_services
JJmako Mar 20, 2020
3266f9d
Make function safer
x4v13r64 Mar 22, 2020
e075cc3
Improve throttling check
x4v13r64 Mar 22, 2020
7ec5749
Merge branch 'test/httplib2shim' into develop
x4v13r64 Mar 22, 2020
57940a2
Remove test code
x4v13r64 Mar 22, 2020
a934ee4
Set maximum version for dependency
x4v13r64 Mar 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file modified .coveragerc
100644 → 100755
Empty file.
23 changes: 23 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[flake8]
select =
E901,
E999,
F821,
F822,
F823
statistics = True
show-source = True
max-line-length = 127
max-complexity = 10
exclude =
.git,
__pycache__,
docs/source/conf.py,
old,
build,
dist,
venv

[pycodestyle]
max_line_length = 127
ignore = E501
Empty file modified .github/ISSUE_TEMPLATE/bug_report.md
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/feature_request.md
100644 → 100755
Empty file.
Empty file modified
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
11 changes: 8 additions & 3 deletions .travis.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,30 @@ sudo: false
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"

matrix:
include:
- python: "3.7"
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
- python: "3.8"
dist: bionic
sudo: required

install:
- pip install -U setuptools
- pip install -r requirements.txt
- pip install flake8
- pip install coveralls
- pip install codecov
- pip install autopep8

before_script:
# Stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# Exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- flake8 .
- autopep8 --diff --recursive --max-line-length 127 .

# Command to run tests
script:
Expand Down
Empty file modified CODE_OF_CONDUCT.md
100644 → 100755
Empty file.
Empty file modified CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified F438 Dockerfile
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified MANIFEST.in
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion ScoutSuite/__init__.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = 'NCC Group'
__version__ = '5.7.0'
__version__ = '5.8.0'

ERRORS_LIST = []

Expand Down
14 changes: 11 additions & 3 deletions ScoutSuite/__main__.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def run_from_cli():
report_name=args.get('report_name'), report_dir=args.get('report_dir'),
timestamp=args.get('timestamp'),
services=args.get('services'), skipped_services=args.get('skipped_services'),
list_services=args.get('list_services'),
result_format=args.get('result_format'),
database_name=args.get('database_name'),
host_ip=args.get('host_ip'),
Expand Down Expand Up @@ -101,7 +102,7 @@ def run(provider,
# General
report_name=None, report_dir=None,
timestamp=False,
services=[], skipped_services=[],
services=[], skipped_services=[], list_services=None,
result_format='json',
database_name=None, host_ip='127.0.0.1', host_port=8000,
max_workers=10,
Expand Down Expand Up @@ -153,7 +154,7 @@ async def _run(provider,
# General
report_name, report_dir,
timestamp,
services, skipped_services,
services, skipped_services, list_services,
result_format,
database_name, host_ip, host_port,
regions,
Expand Down Expand Up @@ -204,7 +205,6 @@ async def _run(provider,
except Exception as e:
print_exception('Authentication failure: {}'.format(e))
return 101

# Create a cloud provider object
cloud_provider = get_provider(provider=provider,
# AWS
Expand Down Expand Up @@ -238,6 +238,13 @@ async def _run(provider,
Server.init(database_file, host_ip, host_port)
return

# If this command, run and exit
if list_services:
available_services = [x for x in dir(cloud_provider.services) if
not (x.startswith('_') or x in ['credentials', 'fetch'])]
print_info('The available services are: "{}"'.format('", "'.join(available_services)))
return 0

# Complete run, including pulling data from provider
if not fetch_local:

Expand Down Expand Up @@ -284,6 +291,7 @@ async def _run(provider,
print_info('Applying display filters')
filter_rules = Ruleset(cloud_provider=cloud_provider.provider_code,
environment_name=cloud_provider.environment,
filename='filters.json',
rule_type='filters',
account_id=cloud_provider.account_id)
processing_engine = ProcessingEngine(filter_rules)
Expand Down
Empty file modified ScoutSuite/core/__init__.py
100644 → 100755
Empty file.
7 changes: 6 additions & 1 deletion ScoutSuite/core/cli_parser.py
100644 → 100755
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _init_azure_parser(self):
# Service Principal credentials in an auth file
azure_auth_modes.add_argument('--file-auth',
action='store',
type=argparse.FileType('r'),
type=argparse.FileType('rb'),
dest='file_auth',
metavar="FILE",
help='Run Scout with the specified credential file')
Expand Down Expand Up @@ -333,6 +333,11 @@ def _init_common_args_parser(self):
default=[],
nargs='+',
help='Name of in-scope services, defaults to all.')
parser.add_argument('--list-services',
dest='list_services',
default=False,
action='store_true',
help='List available services.')
parser.add_argument('--skip',
dest='skipped_services',
default=[],
Expand Down
Empty file modified ScoutSuite/core/conditions.py
100644 → 100755
Empty file.
Empty file modified ScoutSuite/core/console.py
100644 → 100755
Empty file.
Empty file modified ScoutSuite/core/exceptions.py
100644 → 100755
Empty file.
Empty file modified ScoutSuite/core/fs.py
100644 → 100755
Empty file.
Empty file modified ScoutSuite/core/processingengine.py
100644 → 100755
Empty file.
Empty file modified ScoutSuite/core/rule.py
100644 → 100755
Empty file.
Empty file modified ScoutSuite/core/rule_definition.py
100644 → 100755
Empty file.
Empty file modified ScoutSuite/core/ruleset.py
100644 → 100755
Empty file.
18 changes: 9 additions & 9 deletions ScoutSuite/core/server.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, filename):
@cherrypy.tools.json_out()
def summary(self):
"""
Returns the stripped down data of the results that doesn't scale up when using a lot of ressources,
Returns the stripped down data of the results that doesn't scale up when using a lot of resources,
used to render the summary.
Should be the first call from the server.
Can be found at GET /api/summary
Expand All @@ -48,8 +48,8 @@ def summary(self):
@cherrypy.tools.json_out()
def data(self, key=None):
"""
Return the data at the requested key. Doesn't returns nested dictionnaries and lists.
If one of the value is a dictionnary, it will return {'type': 'dict', 'keys': <Array of all the keys>}
Return the data at the requested key. Doesn't returns nested dictionaries and lists.
If one of the value is a dictionary, it will return {'type': 'dict', 'keys': <Array of all the keys>}
If one of the value is a list, it will return {'type': 'list', 'count': <number of elements in the list>}

Can be found at GET /api/data?key=<KEY>
Expand Down Expand Up @@ -85,9 +85,9 @@ def full(self, key=None):
@cherrypy.tools.json_out()
def page(self, key=None, page=None, pagesize=None):
"""
Return a page of the data at the requested key. Doesn't returns nested dictionnaries and lists.
Return a page of the data at the requested key. Doesn't returns nested dictionaries and lists.
For example, if you set pagesize=10 and page=2, it should return element 10-19
If one of the value is a dictionnary, it will return {'type': 'dict', 'keys': <Array of all the keys>}
If one of the value is a dictionary, it will return {'type': 'dict', 'keys': <Array of all the keys>}
If one of the value is a list, it will return {'type': 'list', 'count': <number of elements in the list>}

Can be found at GET /api/page?key=<KEY>&page=<PAGE>&pagesize=<PAGESIZE>
Expand Down Expand Up @@ -138,9 +138,9 @@ def init(database_filename, host, port):
@staticmethod
def get_item(data, key):
"""
Get a specific informations from its key.
Get a specific information from its key.

:param data: The dictionnary in which the information is stored.
:param data: The dictionary in which the information is stored.
:param host: The key where the information is located.
:return: The nested data at the requested location.
"""
Expand All @@ -158,10 +158,10 @@ def get_item(data, key):
@staticmethod
def strip_nested_data(data):
"""
Strip nested lists and dictionnaries from the provided object to reduce its size.
Strip nested lists and dictionaries from the provided object to reduce its size.

:param data: The object to strip.
:return: The input data stripped of its nested lists and dictionnaries.
:return: The input data stripped of its nested lists and dictionaries.
"""
if not isinstance(data, dict):
return data
Expand Down
Empty file modified ScoutSuite/core/utils.py
100644 → 100755
Empty file.
Empty file modified ScoutSuite/data/aws/ip-ranges/aws-in-ec2.json
100644 → 100755
Empty file.
Empty file modified ScoutSuite/data/aws/ip-ranges/aws-in-us.json
100644 → 100755
Empty file.
Empty file modified ScoutSuite/data/aws/ip-ranges/aws.json
100644 → 100755
Empty file.
Empty file modified ScoutSuite/data/icmp_message_types.json
100644 → 100755
Empty file.
Empty file modified ScoutSuite/data/protocols.json
100644 → 100755
Empty file.
Empty file modified ScoutSuite/output/__init__.py
100644 → 100755
Empty file.
Empty file modified ScoutSuite/output/data/html/conditionals/json_format.html
100644 → 100755
Empty file.
Empty file modified ScoutSuite/output/data/html/conditionals/sqlite_format.html
100644 → 100755
Empty file.
Empty file modified ScoutSuite/output/data/html/partials/about_scoutsuite.html
100644 → 100755
Empty file.
Empty file modified ScoutSuite/output/data/html/partials/accordion.html
100644 → 100755
Empty file.
Empty file modified ScoutSuite/output/data/html/partials/accordion_policy.html
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified ScoutSuite/output/data/html/partials/aws/left_menu_for_vpc.html
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions ScoutSuite/output/data/html/partials/aws/services.cloudtrail.regions.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ <h4>Information</h4>
{{#ifPositive trails_count}}true{{else}}false{{/ifPositive}}
</span>
</li>
</ul>
</div>
<div class="list-group-item">
<div class="accordion">
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
26 changes: 18 additions & 8 deletions ScoutSuite/output/data/html/partials/aws/services.ec2.regions.id.vpcs.id.instances.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ <h4 class="list-group-item-heading">{{name}}</h4>
<div class="list-group-item">
<h4>Information</h4>
<ul>
<li class="list-group-item-text">Region: {{region}}</li>
<li class="list-group-item-text">VPC: {{getValueAt 'services.ec2.regions' region 'vpcs' vpc 'name'}} ({{vpc}})</li>
<li class="list-group-item-text">ID: {{id}}</li>
<li class="list-group-item-text">Reservation ID: {{reservation_id}}</li>
<li class="list-group-item-text">ID: <samp>{{id}}</samp></li>
<li class="list-group-item-text">Region: <samp>{{region}}</samp></li>
<li class="list-group-item-text">VPC: <samp>{{getValueAt 'services.ec2.regions' region 'vpcs' vpc 'name'}} ({{vpc}})</samp></li>
<li class="list-group-item-text">Reservation ID: <samp>{{reservation_id}}</samp></li>
<li class="list-group-item-text">Monitoring: <span id="ec2.regions.{{region}}.vpcs.{{vpc}}.instances.{{@key}}.monitoring_disabled">{{convert_bool_to_enabled monitoring_enabled}}</span></li>
<li class="list-group-item-text">A 10000 ccess Key name: {{KeyName}}</li>
<li class="list-group-item-text">State: {{makeTitle State.Name}}</li>
<li class="list-group-item-text">Access Key Name: <samp>{{KeyName}}</samp></li>
<li class="list-group-item-text">State: <samp>{{makeTitle State.Name}}</samp></li>
<li class="list-group-item-text">Instance Type:
<span id="services.ec2.regions.vpcs.instances-unscannable-instance-types-{{id}}"> {{InstanceType}}<span>
<span id="services.ec2.regions.vpcs.instances-unscannable-instance-types-{{id}}"> <samp>{{InstanceType}}</samp></span>
</li>
<li class="list-group-item-text">Up since: {{LaunchTime}}</li>
<li class="list-group-item-text">Up Since: {{format_date LaunchTime}}</li>
</ul>
</div>
<div class="list-group-item" style="padding-bottom: 0 !important;">
Expand All @@ -25,13 +25,23 @@ <h4>Network interfaces</h4>
{{> network_interface region = ../region vpc = ../vpc network_interface = @../key}}
{{/each}}
</div>
{{#if metadata_options}}
<div class="list-group-item">
<h4>Metadata Options</h4>
<ul id="ec2.regions.{{region}}.vpcs.{{vpc}}.instances.{{@key}}.metadata_options">
<li>Endpoint: <samp>{{metadata_options.HttpEndpoint}}</samp></li>
<li>HTTP Tokens: <samp>{{metadata_options.HttpTokens}}</samp></li>
</ul>
</div>
{{/if}}
{{#if user_data}}
<div class="list-group-item" style="padding-bottom: 0 !important;">
<h4>User data</h4>
<div>
<code>{{#each (split_lines user_data)}} {{this}}<br>{{/each}}</code>
</div>
{{#if user_data_secrets}}
<br>
<h5 id="ec2.regions.{{region}}.vpcs.{{vpc}}.instances.{{@key}}.potential_secrets">Potential Secrets</h5>
<ul>
{{#each user_data_secrets}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ <h4 class="list-group-item-heading">{{name}}</h4>

<div class="list-group-item">
<h4 class="list-group-item-heading">Information</h4>
<div class="list-group-item-text">ID: {{id}}</div>
<div class="list-group-item-text">Region: {{region}}</div>
<div class="list-group-item-text">ID: <samp>{{id}}</samp></div>
<div class="list-group-item-text">Region: <samp>{{region}}</samp></div>
<div class="list-group-item-text">VPC: {{getValueAt 'services.vpc.regions' region 'vpcs' vpc 'name'}} ({{vpc}})</div>
<div class="list-group-item-text">Description: {{description}}</div>
<div class="list-group-item-text">Description: <samp>{{description}}</samp></div>
</div>

{{#each rules}}
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

<!-- Key partial -->
<script id="services.kms.regions.id.keys.partial" type="text/x-handlebars-template">
{{#unless scout2_link}}
<div id="resource-name" class="list-group-item active">
<h4 class="list-group-item-heading">{{name}}</h4>
</div>
<div class="list-group-item">
<h4>Information</h4>
<ul>
<li class="list-group-item-text">ID: <span id="kms.regions.{{region}}.keys.{{@key}}.id"><samp>{{id}}</samp></span></li>
<li class="list-group-item-text">ARN: <span id="kms.regions.{{region}}.keys.{{@key}}.arn"><samp>{{arn}}</samp></span></li>
<li class="list-group-item-text">Description: <span id="kms.regions.{{region}}.keys.{{@key}}.description"><samp>{{value_or_none description}}</samp></span></li>
<li class="list-group-item-text">Creation Date: <span id="kms.regions.{{region}}.keys.{{@key}}.creation_date">{{format_date creation_date}}</span></li>
<li class="list-group-item-text">Status: <span id="kms.regions.{{region}}.keys.{{@key}}.key_enabled">{{convert_bool_to_enabled key_enabled}}</span></li>
<li class="list-group-item-text">Rotation: <span id="kms.regions.{{region}}.keys.{{@key}}.rotation_enabled">{{convert_bool_to_enabled rotation_enabled}}</span></li>
<li class="list-group-item-text">Origin: <span id="kms.regions.{{region}}.keys.{{@key}}.origin"><samp>{{value_or_none origin}}</samp></span></li>
<li class="list-group-item-text">Key Manager: <span id="kms.regions.{{region}}.keys.{{@key}}.key_manager"><samp>{{value_or_none key_manager}}</samp></span></li>
</ul>
</div>
<div class="list-group-item">
{{#if aliases.length}}
<h4 class="list-group-item-heading accordion-heading">Aliases</h4>
<ul>
{{#each this.aliases}}
<li><samp>{{name}}</samp></li>
{{/each}}
</ul>
{{else}}
<h4 class="list-group-item-heading accordion-heading text-secondary">Aliases</h4>
{{/if}}
</div>
<div class="list-group-item">
{{#if policy}}
{{> accordion_policy name = 'Key Policy' document = policy policy_path = (concat 'kms.regions' region 'keys' @key 'policy')}}
{{else}}
<h4 class="list-group-item-heading accordion-heading text-secondary">Key Policy</h4>
{{/if}}
</div>
{{/unless}}
</script>
<script>
Handlebars.registerPartial("services.kms.regions.id.keys", $("#services\\.kms\\.regions\\.id\\.keys\\.partial").html());
</script>

<!-- Single KMS instance template -->
<script id="single_kms_key-template" type="text/x-handlebars-template">
{{> modal-template template='services.kms.regions.id.keys' }}
</script>
<script>
var single_kms_key_template = Handlebars.compile($("#single_kms_key-template").html());
</script>
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
45 changes: 23 additions & 22 deletions ScoutSuite/output/data/html/partials/aws/services.redshift.regions.id.parameter_groups.html
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
<!-- Redshift parameter group partial -->
<!-- Redshift parameter group partial -->

<script id="services.redshift.regions.id.parameter_groups.partial" type="text/x-handlebars-template">
<div class="list-group-item active">
<h4 class="list-group-item-heading">{{resource_key}}</h4>
</div>
<div class="list-group-item">
<h4 class="list-group-item-heading">Information</h4>
<div class="list-group-item-text item-margin">Description: {{Description}}</div>
<div class="list-group-item-text item-margin">Group Family: {{ParameterGroupFamily}}</div>
</div>
<div class="list-group-item">
<h4 class="list-group-item-heading">Parameters</h4>
<ul>
<script id="services.redshift.regions.id.parameter_groups.partial" type="text/x-handlebars-template">
<div class="list-group-item active">
<h4 class="list-group-item-heading">{{name}}</h4>
</div>
<div class="list-group-item">
<h4 class="list-group-item-heading">Information</h4>
<div class="list-group-item-text item-margin">Description: <samp>{{description}}</samp></div>
<div class="list-group-item-text item-margin">Group Family: <samp>{{family}}</samp></div>
<div class="list-group-item-text item-margin">Default Parameter Group: <samp>{{is_default}}</samp></div>
</div>
<div class="list-group-item">
<h4 class="list-group-item-heading">Parameters</h4>
<ul>
{{#each parameters}}
<li class="list-group-item-text">{{@key}}:
<span id="redshift.regions.{{../region}}.parameter_groups.{{@../key}}.{{@key}}">{{value}}</span>
</li>
<li class="list-group-item-text"><samp>{{@key}}</samp>:
<span id="redshift.regions.{{../region}}.parameter_groups.{{@../key}}.{{@key}}"><samp>{{value}}</samp></span>
</li>
{{/each}}
</ul>
</div>
</script>
<script>
Handlebars.registerPartial("services.redshift.regions.id.parameter_groups", $("#services\\.redshift\\.regions\\.id\\.parameter_groups\\.partial").html());
</script>
</ul>
</div>
</script>
<script>
Handlebars.registerPartial("services.redshift.regions.id.parameter_groups", $("#services\\.redshift\\.regions\\.id\\.parameter_groups\\.partial").html());
</script>

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified ScoutSuite/output/data/html/partials/aws/services.s3.acls.html
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Loading
0