Improved style and text of SS setup tutorials

This commit is contained in:
VakarisZ 2020-10-01 16:52:00 +03:00
parent 2e0d06b17a
commit 5f28808885
5 changed files with 24 additions and 7 deletions

View File

@ -23,12 +23,13 @@ _add_scoutsuite_to_python_path()
def is_cloud_authentication_setup(provider: PROVIDERS) -> Tuple[bool, str]:
if provider == PROVIDERS.AWS.value:
if is_aws_keys_setup():
return True, "AWS keys already setup. Run monkey on Island to scan."
return True, "AWS keys already setup. Run Monkey on Island to start the scan."
import common.cloud.scoutsuite.ScoutSuite.providers.aws.authentication_strategy as auth_strategy
try:
profile = auth_strategy.AWSAuthenticationStrategy().authenticate()
return True, f" Profile \"{profile.session.profile_name}\" is already setup. Run monkey on Island to scan."
return True, f" Profile \"{profile.session.profile_name}\" is already setup. " \
f"Run Monkey on Island to start the scan."
except Exception:
return False, ""

View File

@ -20,7 +20,7 @@ export default function AWSCLISetup(props) {
const getContents = (props) => {
return (
<div className={'aws-scoutsuite-configuration'}>
<h2>ScoutSuite configuration for AWS</h2>
<h2>AWS CLI configuration for scan</h2>
<p>To assess your AWS infrastructure's security do the following:</p>
<ol>
<li>
@ -34,10 +34,11 @@ const getContents = (props) => {
<li>
2. Run <code>aws configure</code>. It's important to configure credentials, which
allows ScoutSuite to get information about your cloud configuration. The most trivial way to do so is to
provide
provide&nbsp;
<Button
href={'https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-creds'}
variant={'link'}
className={'cli-link'}
target={'_blank'}>
Access key ID and secret access key
</Button>.
@ -48,7 +49,10 @@ const getContents = (props) => {
2. If you change the configuration, make sure not to disable AWS system info collector.
</li>
<li>
3. Go back and run Monkey on the Island server.
3. Go <Button onClick={() => props.setComponent()}
variant={'link'}
className={'cli-link'}>back</Button>
&nbsp;and run Monkey on the Island server.
</li>
<li>
4. Assess results in Zero Trust report.

View File

@ -13,9 +13,21 @@
}
.aws-scoutsuite-configuration li {
margin-bottom: 0;
}
.aws-scoutsuite-configuration h2 {
margin-bottom: 20px;
}
.aws-scoutsuite-configuration p {
margin-bottom: 5px;
}
.aws-scoutsuite-configuration .cli-link {
padding: 0 0 4px 0;
}
.monkey-submit-button {
margin-bottom: 15px;
}