Skip to content

Commit 5210198

Browse files
eoinmiller-r7theopolis
authored andcommitted
WINDOWS_BINARY_PATH Update (osquery#71)
1 parent 8621cb7 commit 5210198

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

osquery/management.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ def emit(self, record):
4242
# We bootleg our own version of Windows pipe coms
4343
from osquery.TPipe import TPipe
4444
from osquery.TPipe import TPipeServer
45+
if os.path.exists(os.environ["PROGRAMDATA"] + "\\osquery\\osqueryd\\osqueryd.exe"):
46+
WINDOWS_BINARY_PATH = os.environ["PROGRAMDATA"] + "\\osquery\\osqueryd\\osqueryd.exe"
47+
if os.path.exists(os.environ["PROGRAMW6432"] + "\\osquery\\osqueryd\\osqueryd.exe"):
48+
WINDOWS_BINARY_PATH = os.environ["PROGRAMW6432"] + "\\osquery\\osqueryd\\osqueryd.exe"
4549

4650
DARWIN_BINARY_PATH = "/usr/local/bin/osqueryd"
4751
LINUX_BINARY_PATH = "/usr/bin/osqueryd"
48-
WINDOWS_BINARY_PATH = "C:\\ProgramData\\osquery\\osqueryd\\osqueryd.exe"
49-
5052

5153
class SpawnInstance(object):
5254
"""Spawn a standalone osquery instance"""

0 commit comments

Comments
 (0)