From 6e05d489f3dda6986a19057d04b0f660e193085b Mon Sep 17 00:00:00 2001 From: Thorsten Sick Date: Fri, 3 Dec 2021 15:33:47 +0100 Subject: [PATCH] Verified: Caldera works on a hello_world with fresh machines --- app/machinecontrol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/machinecontrol.py b/app/machinecontrol.py index e679847..2ba938b 100644 --- a/app/machinecontrol.py +++ b/app/machinecontrol.py @@ -404,7 +404,7 @@ class Machine(): else: cleanupcmd = "" - cmd = f"cd {self.caldera_basedir}; {cleanupcmd} git clone https://github.com/mitre/caldera.git --recursive --branch {version}; cd caldera; pip3 install -r requirements.txt" + cmd = f"cd {self.caldera_basedir}; {cleanupcmd} git clone https://github.com/mitre/caldera.git --recursive --branch {version}; cd caldera; git checkout {version}; pip3 install -r requirements.txt" self.attack_logger.vprint(f"{CommandlineColors.OKGREEN}Caldera server installed {CommandlineColors.ENDC}", 1) res = self.vm_manager.__call_remote_run__(cmd) return "Result installing caldera server " + str(res)