MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / GetSID

Method GetSID

pkg/event/param_windows.go:183–189  ·  view source on GitHub ↗

GetSID returns the raw SID (Security Identifier) parameter as typed representation on which various operations can be performed, such as converting the SID to string or resolving username/domain.

()

Source from the content-addressed store, hash-verified

181// typed representation on which various operations can be performed,
182// such as converting the SID to string or resolving username/domain.
183func (pars Params) GetSID() (*windows.SID, error) {
184 par, err := pars.findParam(params.UserSID)
185 if err != nil {
186 return nil, err
187 }
188 return getSID(par)
189}
190
191func getSID(param *Param) (*windows.SID, error) {
192 sid, ok := param.Value.([]byte)

Callers 1

MustGetSIDMethod · 0.95

Calls 2

findParamMethod · 0.95
getSIDFunction · 0.85

Tested by

no test coverage detected