File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,13 @@ def emit(self, record):
42
42
# We bootleg our own version of Windows pipe coms
43
43
from osquery .TPipe import TPipe
44
44
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"
45
49
46
50
DARWIN_BINARY_PATH = "/usr/local/bin/osqueryd"
47
51
LINUX_BINARY_PATH = "/usr/bin/osqueryd"
48
- WINDOWS_BINARY_PATH = "C:\\ ProgramData\\ osquery\\ osqueryd\\ osqueryd.exe"
49
-
50
52
51
53
class SpawnInstance (object ):
52
54
"""Spawn a standalone osquery instance"""
You can’t perform that action at this time.
0 commit comments