mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Patch related to the #1455
This commit is contained in:
parent
eb7c18d1f8
commit
fd686fb691
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user