mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Patch related to the #1455
This commit is contained in:
@@ -779,6 +779,7 @@ def _setMetasploit():
|
|||||||
kb.oldMsf = True
|
kb.oldMsf = True
|
||||||
else:
|
else:
|
||||||
msfEnvPathExists = False
|
msfEnvPathExists = False
|
||||||
|
|
||||||
conf.msfPath = path
|
conf.msfPath = path
|
||||||
break
|
break
|
||||||
|
|
||||||
@@ -809,7 +810,7 @@ def _setMetasploit():
|
|||||||
for envPath in envPaths:
|
for envPath in envPaths:
|
||||||
envPath = envPath.replace(";", "")
|
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
|
msfEnvPathExists = True
|
||||||
if all(os.path.exists(normalizePath(os.path.join(envPath, _))) for _ in ("msfvenom",)):
|
if all(os.path.exists(normalizePath(os.path.join(envPath, _))) for _ in ("msfvenom",)):
|
||||||
kb.oldMsf = False
|
kb.oldMsf = False
|
||||||
|
|||||||
Reference in New Issue
Block a user