MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _resolve_ghunt_command

Method _resolve_ghunt_command

IntelOSINT.py:13121–13150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13119 }
13120
13121 def _resolve_ghunt_command(self):
13122 script_dir = Path(__file__).resolve().parent
13123 scripts_dir = script_dir / ".venv" / ("Scripts" if os.name == "nt" else "bin")
13124 ghunt_dir = script_dir / "GHunt"
13125
13126 local_main = ghunt_dir / "main.py"
13127 if local_main.exists():
13128 return [str(sys.executable), str(local_main)], str(ghunt_dir)
13129
13130 try:
13131 import importlib.util
13132 if importlib.util.find_spec("ghunt") is not None:
13133 return [str(sys.executable), "-m", "ghunt"], str(script_dir)
13134 except Exception:
13135 pass
13136
13137 names = ("ghunt.exe", "ghunt.cmd", "ghunt") if os.name == "nt" else ("ghunt",)
13138 for name in names:
13139 path = scripts_dir / name
13140 if path.exists():
13141 return [str(path)], str(script_dir)
13142
13143 which_path = shutil.which("ghunt")
13144 if which_path:
13145 return [which_path], str(script_dir)
13146
13147 if (ghunt_dir / "ghunt").is_dir():
13148 return [str(sys.executable), "-m", "ghunt"], str(ghunt_dir)
13149
13150 return None, str(script_dir)
13151
13152 def _install_ghunt_runtime(self):
13153 if os.environ.get("INTELOSINT_AUTO_INSTALL_GHUNT", "1").strip().lower() != "1":

Callers 4

ghunt_email_scanMethod · 0.95
ghunt_login_launchMethod · 0.95
ghunt_smart_startMethod · 0.95
ghunt_login_method2Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected