package main
import (
"fmt"
"os"
winacl "github.com/kgoins/go-winacl/pkg"
)
func main() {
rawNTSD, _ := os.ReadFile("testdata.bin")
ntsd, _ := winacl.NewNtSecurityDescriptor(rawNTSD)
fmt.Println(ntsd.ToSDDL())
}
This repo was forked from https://github.com/rvazarkar/go-winacl, who did the hard work of figuring out the models and parsers.