Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to add the windows node to doorman #142

Open
PremaPrems opened this issue Aug 20, 2018 · 2 comments
Open

Not able to add the windows node to doorman #142

PremaPrems opened this issue Aug 20, 2018 · 2 comments

Comments

@PremaPrems
Copy link

PremaPrems commented Aug 20, 2018

I followed the below link for osquery installation on windows.
https://holdmybeersecurity.com/2017/08/17/installsetup-doorman-osquery-on-windows-mac-osx-and-linux-deployment/

--host_identifier=uuid
--config_plugin=tls
--config_tls_endpoint=/config
--config_tls_refresh=10
--config_tls_max_attempts=3
--enroll_tls_endpoint=/enroll
--enroll_secret_path=C:\ProgramData\osquery\osquery.key
--disable_distributed=false
--distributed_plugin=tls
--distributed_interval=10
--distributed_tls_max_attempts=3
--distributed_tls_read_endpoint=/distributed/read
--distributed_tls_write_endpoint=/distributed/write
--logger_plugin=tls
--logger_tls_endpoint=/log
--logger_tls_period=5
--tls_hostname=Doorman IP:5000
--tls_server_certs=C:\ProgramData\osquery\certificate.crt
--log_result_events=false
--pack_delimiter=/
--utc
--verbose

@s-frostick
Copy link

s-frostick commented Jan 18, 2019

@PremaPrems I was running into a similar issue following the same guide but it does work. The issue i believe is caused by osquery/osquery#4548.

$config | Out-File -FilePath C:\Program Data\osquery\osquery.flags

Writing the flags with this caused me the issues. If you just copy the flag settings to notepad and then save (C:\Program Data\osquery\osquery.flags) this resolves the issue.

You can open a powershell as administrator and run

C:\ProgramData\osquery\osqueryd\osqueryd.exe --flagfile C:\ProgramData\osquery\osquery.flags

To actually see whats happening.

@javuto
Copy link
Contributor

javuto commented Jan 21, 2019

Just add -Encoding ASCII to your Out-File powershell and it works, effectively it does the same as opening the file with Notepad and saving it. Your line would be:

$config | Out-File -FilePath C:\Program Data\osquery\osquery.flags -Encoding ASCII

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants