From fd686fb691106ec9cfb30524720ac41a0da6c8f7 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 7 Oct 2015 09:43:25 +0200 Subject: [PATCH] Patch related to the #1455 --- lib/core/option.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index f51e5210c..6703ad491 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -779,6 +779,7 @@ def _setMetasploit(): kb.oldMsf = True else: msfEnvPathExists = False + conf.msfPath = path break @@ -809,7 +810,7 @@ def _setMetasploit(): for envPath in envPaths: envPath = envPath.replace(";", "") - if all(os.path.exists(normalizePath(os.path.join(envPath, _))) for _ in ("", "msfcli", "msfconsole")): + if any(os.path.exists(normalizePath(os.path.join(envPath, _))) for _ in ("msfcli", "msfconsole")): msfEnvPathExists = True if all(os.path.exists(normalizePath(os.path.join(envPath, _))) for _ in ("msfvenom",)): kb.oldMsf = False