https://github.com/osquery/osquery logo
#general
Title
# general
m

Mystery Incorporated

07/01/2022, 3:24 PM
Has anyone built an extension in C#? I think it is possible as Thrift supports it from my reading, but then I can see that it says the extension must import the core code which is c++ so can it be done?
s

seph

07/01/2022, 3:40 PM
You can write an extension in any language that only communicates over thrift. (including c, c++, c#….)
There are some fragments of support for building “extensions” in c languages that use some of the core libraries. I’m not sure it’s common, and it’s probably just confusing,
I’m not sure there’s an SDK for c#. There’s a go SDK, and a python SDK. But thrift is thrift, and I’ve certainly done things from ruby.
I think you can ignore anything about importing core code, and write a standalone extension that uses the thrift socket.
❤️ 1
g

Gavin

07/01/2022, 5:39 PM
You may wish to start here https://github.com/noghte/osquery-csharp
m

Mystery Incorporated

07/01/2022, 8:56 PM
thanks guys!
27 Views