Skip to content

Commit fd686fb

Browse files
committed
Patch related to the sqlmapproject#1455
1 parent eb7c18d commit fd686fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/core/option.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,7 @@ def _(key, value):
779779
kb.oldMsf = True
780780
else:
781781
msfEnvPathExists = False
782+
782783
conf.msfPath = path
783784
break
784785

@@ -809,7 +810,7 @@ def _(key, value):
809810
for envPath in envPaths:
810811
envPath = envPath.replace(";", "")
811812

812-
if all(os.path.exists(normalizePath(os.path.join(envPath, _))) for _ in ("", "msfcli", "msfconsole")):
813+
if any(os.path.exists(normalizePath(os.path.join(envPath, _))) for _ in ("msfcli", "msfconsole")):
813814
msfEnvPathExists = True
814815
if all(os.path.exists(normalizePath(os.path.join(envPath, _))) for _ in ("msfvenom",)):
815816
kb.oldMsf = False

0 commit comments

Comments
 (0)