Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: osquery/osquery-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: inaimathi/osquery-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 26, 2024

  1. Update management.py

    Fix bug with windows binary path management
    inaimathi authored Apr 26, 2024
    Copy the full SHA
    a24d08b View commit details
Showing with 6 additions and 4 deletions.
  1. +6 −4 osquery/management.py
10 changes: 6 additions & 4 deletions osquery/management.py
Original file line number Diff line number Diff line change
@@ -42,10 +42,12 @@ def emit(self, record):
# We bootleg our own version of Windows pipe coms
from osquery.TPipe import TPipe
from osquery.TPipe import TPipeServer
if os.path.exists(os.environ["PROGRAMDATA"] + "\\osquery\\osqueryd\\osqueryd.exe"):
WINDOWS_BINARY_PATH = os.environ["PROGRAMDATA"] + "\\osquery\\osqueryd\\osqueryd.exe"
if os.path.exists(os.environ["PROGRAMW6432"] + "\\osquery\\osqueryd\\osqueryd.exe"):
WINDOWS_BINARY_PATH = os.environ["PROGRAMW6432"] + "\\osquery\\osqueryd\\osqueryd.exe"
PTH = os.path.join(os.environ["PROGRAMDATA"], "osquery", "osqueryd", "osqueryd.exe")
if os.path.exists(PTH):
WINDOWS_BINARY_PATH = PTH
PTH = os.path.join(os.environ["PROGRAMW6432"], "osquery", "osqueryd", "osqueryd.exe")
if os.path.exists(PTH):
WINDOWS_BINARY_PATH = PTH

DARWIN_BINARY_PATH = "/usr/local/bin/osqueryd"
LINUX_BINARY_PATH = "/usr/bin/osqueryd"