diff --git a/lib/settings.py b/lib/settings.py index 4727260..a6a91fd 100644 --- a/lib/settings.py +++ b/lib/settings.py @@ -6,6 +6,7 @@ import platform import getpass import tempfile +import distutils.spawn # import subprocess import psutil @@ -179,7 +180,7 @@ def check_for_msf(): """ check the ENV PATH for msfconsole """ - return os.getenv("msfconsole", False) + return os.getenv("msfconsole", False) or distutils.spawn.find_executable("msfconsole") def logo(): """