Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions attack_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ def init(args):

if config["general"]["cloud_provider"] == "aws":
config.pop("azure")
config.pop("gcp")
controller = AwsController(config)
elif config["general"]["cloud_provider"] == "azure":
config.pop("aws")
config.pop("gcp")
controller = AzureController(config)
elif config["general"]["cloud_provider"] == "gcp":
config.pop("aws")
Expand Down
11 changes: 11 additions & 0 deletions modules/aws_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,17 @@ def show(self) -> None:
+ "\n\tusername: ubuntu \n\tpassword: "
+ self.config["general"]["attack_range_password"]
)
elif instance_name.startswith("ar-caldera"):
messages.append(
"\nAccess Caldera via:\n\tWeb > http://"
+ instance["NetworkInterfaces"][0]["Association"]["PublicIp"]
+ ":8888\n\tSSH > ssh -i"
+ self.config["aws"]["private_key_path"]
+ " admin@"
+ instance["NetworkInterfaces"][0]["Association"]["PublicIp"]
+ "\n\tusername: admin \n\tpassword: "
+ self.config["general"]["attack_range_password"]
)
else:
response.append(
[instance["Tags"][0]["Value"], instance["State"]["Name"]]
Expand Down
1 change: 1 addition & 0 deletions modules/config_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def read_config(self, config_path: str) -> dict:
"simulation",
"zeek_server",
"snort_server",
"caldera_server",
]

for parent_key in parent_keys:
Expand Down