repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/collectors/metrics/cmd/metrics-collector/main.go | collectors/metrics/cmd/metrics-collector/main.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package main
import (
"context"
"errors"
"fmt"
stdlog "log"
"net/http"
"net/url"
"os"
"regexp"
"strings"
"time"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/parser.go | midl/parser.go | package midl
// parser.go contains the IDL parser implementation.
import (
"fmt"
"strings"
log "github.com/sirupsen/logrus"
)
func init() {
/*
_, p, _, ok := runtime.Caller(0)
if !ok {
panic("cannot determine current dir")
}
*/
// load global default.
_, err := NewFile("dcetypes.idl", "").Load()... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/file.go | midl/file.go | package midl
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"sort"
"strings"
"sync"
)
var (
fileStore = make(map[string]*File)
fileStoreMu = new(sync.Mutex)
)
// Load function loads the file content.
func (f *File) Load() (*File, error) {
fmt.Fprintln(os.Stderr, "loading...", f.Path)
var path, base s... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/expr_test.go | midl/expr_test.go | package midl
import (
"fmt"
"math/big"
"testing"
)
type tExprStore map[string]Expr
func (s tExprStore) LookupExpr(v string) (Expr, bool) {
e, ok := s[v]
return e, ok
}
func TestExprTreeResolve(t *testing.T) {
e := Expr{
reqParam: true,
Expr: &ExprTree{
Op: '*',
Rval: &ExprTree{
Value: big.NewIn... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/lexer.go | midl/lexer.go | package midl
// lexer.go implements the goyacc lexer interface.
import (
"errors"
"fmt"
"math/big"
"strings"
"unicode"
"github.com/oiweiwei/go-msrpc/midl/uuid"
)
var (
// ErrEOF ...
ErrEOF = errors.New("unexpected EOF")
)
// Lexer ...
type Lexer struct {
errLex error
pos, line int
sqb int
rb ... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/types.go | midl/types.go | package midl
import (
"fmt"
"sort"
"github.com/oiweiwei/go-msrpc/midl/uuid"
)
// TypeStore interface represents the type storage to
// resolve kind of TypeRef.
type TypeStore interface {
// LookupType function must resolve the type reference
// and return type or 'false'
LookupType(n string) (*Type, bool)
}
/... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/com.go | midl/com.go | package midl
type Library struct {
Name string `json:"name"`
Attrs *LibraryAttr `json:"attr,omitempty"`
Body LibraryBody `json:"body,omitempty"`
}
// LibraryBody ...
type LibraryBody struct {
ComClasses []*ComClass `json:"com_classes,omitempty"`
}
// ComClass structure ...
type ComClass struct {
Name ... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/keyword.go | midl/keyword.go | package midl
// keyword.go contains reserved keywords and keyword to string
// mappings.
var (
NameTok = map[string]int{}
TokName = map[int]string{
FLOAT: "float",
DOUBLE: "double",
UNSIGNED: "unsigned",
SIGNED: "signed",
LONG... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/parser_types.go | midl/parser_types.go | package midl
// parser_type.go contains definitions for parser helper types.
import (
"crypto/md5"
"encoding/hex"
"fmt"
"github.com/oiweiwei/go-msrpc/midl/uuid"
)
type pTagID struct {
Tag string
ID Expr
}
type pTagIDs []pTagID
type pDeclarator struct {
Name string
Type *Type
}
type pDeclarators []*pDecl... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/scopes.go | midl/scopes.go | package midl
import "math/big"
type Scope struct {
Attr *TypeAttr
Types []*ScopedType
}
type ScopedType struct {
*Type `json:"type"`
Dim Dim `json:"dim"`
Pointer int `json:"pointer"`
}
type Dim struct {
MinIs Expr
MaxIs Expr
SizeIs Expr
FirstIs Expr
LastIs ... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/expr.go | midl/expr.go | package midl
import (
"fmt"
"math/big"
)
type ExprStore interface {
LookupExpr(string) (Expr, bool)
}
type Args struct {
args []Expr
}
func NewArgs(args ...interface{}) ExprStore {
exprStore := &Args{}
for _, arg := range args {
exprStore.args = append(exprStore.args, NewValue(arg))
}
return exprStore
}
... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/parse.go | midl/parse.go | // Code generated by goyacc -v midl/y.out -o midl/parse.go -p RPC midl/parse.y. DO NOT EDIT.
//line midl/parse.y:2
package midl
import __yyfmt__ "fmt"
//line midl/parse.y:2
// parse.go contains the go-yacc definitions for the
// (M)IDL grammar parser.
import (
"fmt"
"math/big"
"github.com/oiweiwei/go-msrpc/mid... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | true |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/types_helper.go | midl/types_helper.go | package midl
import (
"bytes"
"encoding/json"
"fmt"
"hash/fnv"
"math/big"
"runtime"
"strings"
)
var json1 = struct {
Marshal func(v interface{}) ([]byte, error)
}{
Marshal: func(v interface{}) ([]byte, error) {
var (
b = bytes.NewBuffer(nil)
e = json.NewEncoder(b)
)
e.SetIndent("", " ")
e.Set... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/midl/uuid/uuid.go | midl/uuid/uuid.go | package uuid
import (
"bytes"
"encoding/binary"
"encoding/hex"
"fmt"
"io"
"strings"
)
type UUID struct {
TimeLow uint32
TimeMid uint16
TimeHiAndVersion uint16
ClockSeqHiAndReserved uint8
ClockSeqLow uint8
Node [6]byte
}
func (u *UUID) Equals(ou ... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/main.go | codegen/main.go | package main
import (
"encoding/json"
"flag"
"fmt"
"os"
"context"
"github.com/oiweiwei/go-msrpc/midl"
"github.com/oiweiwei/go-msrpc/codegen/gen"
)
var (
fn string
I string
j bool
dir string
frmt bool
trace bool
cache string
)
func init() {
flag.BoolVar(&frmt, "format", true, "use form... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/file.go | codegen/gen/file.go | package gen
import (
"bytes"
"path/filepath"
"strings"
)
type FileBuffer struct {
Out *bytes.Buffer
Path string
PackageName string
Imports []Import
FileName string
IsRoot bool
}
func (f *FileBuffer) Reset() []byte {
b := f.Out.Bytes()
f.Out = bytes.NewBuffer(nil)
return b
}
fu... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/type_unmarshal.go | codegen/gen/type_unmarshal.go | package gen
import (
"context"
"github.com/oiweiwei/go-msrpc/midl"
)
func (p *TypeGenerator) GenStructUnmarshalNDR(ctx context.Context) {
trailingField := len(p.Struct().Fields) - 1
if p.IsConformant() || p.IsVarying() {
trailingField--
}
p.Block("func", "(o *"+p.GoTypeName+")", "UnmarshalNDR(ctx context.C... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/string_len.go | codegen/gen/string_len.go | package gen
import (
"context"
"github.com/oiweiwei/go-msrpc/midl"
)
var (
// UTF16 String.
UTF16LenFunc = "ndr.UTF16Len"
// Char String.
ByteLenFunc = "ndr.CharLen"
// UTF16 Null-Terminated String.
UTF16NLenFunc = "ndr.UTF16NLen"
// Char Null-Terminated String.
ByteNLenFunc = "ndr.CharNLen"
// MultiSzLen... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/type_union_unmarshal.go | codegen/gen/type_union_unmarshal.go | package gen
import (
"context"
"strings"
"github.com/oiweiwei/go-msrpc/midl"
)
func (p *TypeGenerator) GenUnionUnmarshalNDR(ctx context.Context) {
p.P()
switchType := p.SwitchType(ctx, p.Scopes)
sw := p.Union().Switch
if sw != nil {
p.P("func", "(o *"+p.GoTypeName+")", "UnmarshalNDR(ctx context.Context,... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/type_union.go | codegen/gen/type_union.go | package gen
import (
"context"
"fmt"
"strings"
"github.com/oiweiwei/go-msrpc/midl"
)
func (p *TypeGenerator) GenUnion(ctx context.Context) {
sw := p.Union().Switch
if p.Scope().Parent != "" {
p.P("//", p.GoTypeName, "structure", "represents", RPCName(p.Scope().Parent), "union", "anonymous", "member.")
} e... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/interface.go | codegen/gen/interface.go | package gen
import (
"context"
"fmt"
"regexp"
"github.com/oiweiwei/go-msrpc/midl"
)
var (
notUsedOpRe = regexp.MustCompile("(NotUsedOnWire)|(NotImplemented)|(LSA_DP)|(LSA_TM)|(Unused)|(Opnum\\d+Reserved)|(Reserved_Opnum\\d+)|(Reserved\\d+)|(Opnum\\d+NotUsedByProtocol)")
)
func (p *Generator) IsUnusedOp(n strin... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/gen.go | codegen/gen/gen.go | package gen
import (
"context"
"fmt"
"go/format"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/oiweiwei/go-msrpc/codegen/doc"
"github.com/oiweiwei/go-msrpc/midl"
"github.com/oiweiwei/go-msrpc/midl/uuid"
)
func FieldName(i int, n string) string {
if n == "" {
return "Field" + strconv.Itoa(i)
}
r... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/scopes.go | codegen/gen/scopes.go | package gen
import (
"strings"
"github.com/oiweiwei/go-msrpc/midl"
)
// Scopes structure is a scope list iterator. Within single scope
// pointer default attributes are applied.
type Scopes struct {
scopePos, typePos int
scopes []*midl.Scope
prev *midl.Type
alias string
}
/... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/name.go | codegen/gen/name.go | package gen
import (
"context"
"fmt"
"path/filepath"
"strings"
"github.com/oiweiwei/go-msrpc/codegen/go_names"
"github.com/oiweiwei/go-msrpc/midl"
)
var (
GoName = go_names.GoName
GoNamePrivate = go_names.GoNamePrivate
GoNameNoReserved = go_names.GoNameNoReserved
GoMergeNames = go_names.Go... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/type.go | codegen/gen/type.go | package gen
import (
"context"
"fmt"
"math/big"
"strconv"
"strings"
"github.com/oiweiwei/go-msrpc/codegen/doc"
"github.com/oiweiwei/go-msrpc/midl"
)
type TypeGenerator struct {
*Generator
*Scopes
GoTypeName string
Doc *doc.TypeDoc
OrigType *midl.Type
}
func (p *Generator) NewTypeGenerator(ctx c... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/zero.go | codegen/gen/zero.go | package gen
import (
"context"
"github.com/oiweiwei/go-msrpc/midl"
)
func (p *TypeGenerator) GenZeroUnionFieldMarshalNDR(ctx context.Context, field *midl.Field, scopes *Scopes, index ...interface{}) {
name := p.VarName(ctx)
if name == "" {
name = p.O(p.IVar(p.GoFieldName(field), index...))
}
typeName := p.... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/operation.go | codegen/gen/operation.go | package gen
import (
"context"
"strings"
"github.com/oiweiwei/go-msrpc/midl"
)
type ParamGenerator struct {
*Generator
*TypeGenerator
}
func (p *Generator) NewParamGenerator(ctx context.Context, typ *midl.Type) *ParamGenerator {
return &ParamGenerator{
Generator: p,
TypeGenerator: p.NewTypeGenerator(c... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/helpers.go | codegen/gen/helpers.go | package gen
import (
"context"
"fmt"
"strings"
"github.com/oiweiwei/go-msrpc/midl"
)
type fileCtx struct{}
func WithFile(ctx context.Context, f *midl.File) context.Context {
return context.WithValue(ctx, fileCtx{}, f)
}
func File(ctx context.Context) *midl.File {
f, _ := ctx.Value(fileCtx{}).(*midl.File)
re... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/import.go | codegen/gen/import.go | package gen
import (
"context"
"fmt"
"sort"
"strings"
"github.com/oiweiwei/go-msrpc/midl"
)
func (p *Generator) GenPackageImportGuard(ctx context.Context) {
p.P("")
p.P("var (")
p.P("//", "import guard")
p.P("GoPackage", "=", p.Q(File(ctx).GoPkg))
p.P(")")
}
func (p *Generator) GetImports() []Import {
s... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/gen/interface_client_set.go | codegen/gen/interface_client_set.go | package gen
import (
"context"
"path/filepath"
"github.com/oiweiwei/go-msrpc/midl"
)
func (p *Generator) GenClientSet(ctx context.Context, f *midl.File) {
n := "Client"
if !f.PkgIs("dcom") {
p.AddImport(Import{
Name: "dcom_client",
Path: filepath.Join(p.ImportsPath, "dcom", "client"),
Guard: "dco... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/doc/index.go | codegen/doc/index.go | package doc
import (
"encoding/csv"
"encoding/json"
"fmt"
"os"
"path/filepath"
"regexp"
"runtime"
"strings"
"github.com/PuerkitoBio/goquery"
)
func init() {
_, p, _, ok := runtime.Caller(0)
if !ok {
panic("cannot determine current dir")
}
var err error
if indexes, err = readIndexURLs(filepath.Join... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/doc/utils.go | codegen/doc/utils.go | package doc
import (
"net/url"
"strings"
)
func String(v string) string {
s := strings.Split(v, "\n")
for i := range s {
s[i] = strings.TrimSpace(s[i])
}
return strings.TrimSpace(strings.Join(s, " "))
}
func MustURLJoinPath(base string, elem ...string) string {
u, err := url.JoinPath(base, elem...)
if er... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/doc/type_doc.go | codegen/doc/type_doc.go | package doc
import "strings"
type TypeDoc struct {
Ref string `json:"ref"`
Name string `json:"name"`
Doc []string `json:"doc"`
Fields []*FieldDoc `json:"fields"`
}
var (
ORPCThis = &FieldDoc{
Name: "This",
Doc: []string{"This: ORPCTHIS structure that is used to send ORPC extension data... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/doc/doc.go | codegen/doc/doc.go | package doc
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
"path/filepath"
"regexp"
"sort"
"strconv"
"strings"
"sync"
"time"
"golang.org/x/net/html"
"jaytaylor.com/html2text"
"github.com/PuerkitoBio/goquery"
)
var (
LogOutput = os.Stderr
)
const (
openSpecsURL = "https://learn.microsoft.com/en-us/ope... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/go_names/lex.go | codegen/go_names/lex.go | package go_names
import (
"strings"
"unicode"
)
func LexName(n string) []string {
return (Lexer{defaultConfig}).lexName(n)
}
type Lexer struct {
*Config
}
func (l Lexer) lookBehind(out []string, cur []rune) ([]string, []rune) {
if len(out) < 1 {
return out, cur
}
lb, ok := l.LookBehind[strings.ToLower(ou... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/go_names/config.go | codegen/go_names/config.go | package go_names
import (
"os"
"path/filepath"
"runtime"
"gopkg.in/yaml.v3"
)
var defaultConfig *Config
func init() { defaultConfig = LoadConfig() }
type Config struct {
Rename map[string][]string `yaml:"rename"`
Rotate map[string]string `yaml:"rotate"`
Abbr map[string]... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/codegen/go_names/go_names.go | codegen/go_names/go_names.go | package go_names
import (
"regexp"
"strings"
"golang.org/x/text/cases"
"golang.org/x/text/language"
)
var (
Title = cases.Title(language.English).String
)
func Escape(n string) string {
return "%" + n
}
func Unescape(n string) string {
return strings.TrimPrefix(n, "%")
}
type Namer struct {
*Config
}
fun... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/smb2/initiator.go | smb2/initiator.go | package smb2
import (
"context"
"encoding/asn1"
"github.com/oiweiwei/go-msrpc/ssp/gssapi"
)
func SecurtiyContextInitiator(opts ...gssapi.ContextOption) *Initiator {
i := Initiator{ctx: gssapi.NewSecurityContext(context.Background(), opts...)}
for _, opt := range opts {
if opt, ok := (any)(opt).(gssapi.Optio... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/smb2/smb2.go | smb2/smb2.go | package smb2
import (
"context"
"fmt"
"net"
"os"
"strconv"
"strings"
"time"
"github.com/oiweiwei/go-msrpc/ssp/gssapi"
"github.com/oiweiwei/go-smb2.fork"
"github.com/rs/zerolog"
)
type Dialect uint16
const (
// SMB2.0.2 dialects.
SMB202 Dialect = 0x0202
// SMB2.1 dialects.
SMB210 Dialect = 0x0210
// S... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ssp.go | ssp/ssp.go | // package ssp contains definitions for security service providers.
package ssp
import (
"context"
"github.com/oiweiwei/go-msrpc/ssp/gssapi"
"github.com/oiweiwei/go-msrpc/ssp/krb5"
"github.com/oiweiwei/go-msrpc/ssp/netlogon"
"github.com/oiweiwei/go-msrpc/ssp/ntlm"
"github.com/oiweiwei/go-msrpc/ssp/spnego"
)
v... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/spnego/authentifier.go | ssp/spnego/authentifier.go | package spnego
import (
"context"
"encoding/asn1"
"fmt"
"github.com/oiweiwei/go-msrpc/ssp/gssapi"
)
type Config struct {
// The services available.
Capabilities gssapi.Cap
// The list of negotiated mechanisms.
MechanismsList []gssapi.MechanismFactory
// Require mechanism list MIC.
RequireMechanismListMIC b... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/spnego/spnego.go | ssp/spnego/spnego.go | // spnego package implements the SPNEGO security service client.
//
// This package also contains client-side GSSAPI bindings (InitSecurityContext, Wrap, Unwrap and so on).
package spnego
import (
"context"
"encoding/asn1"
"fmt"
cb "golang.org/x/crypto/cryptobyte"
cb_asn1 "golang.org/x/crypto/cryptobyte/asn1"
)
... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/spnego/gssapi.go | ssp/spnego/gssapi.go | package spnego
import (
"context"
"encoding/asn1"
"errors"
"github.com/oiweiwei/go-msrpc/ssp/gssapi"
)
type Mechanism struct {
*Authentifier
}
var (
MechanismTypeSPNEGO = asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 2}
)
func (Mechanism) Type() gssapi.OID {
return (gssapi.OID)(MechanismTypeSPNEGO)
}
// The conf... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/spnego/spnego_test.go | ssp/spnego/spnego_test.go | package spnego
import (
"context"
"encoding/asn1"
"fmt"
"reflect"
"testing"
)
func TestNegTokenInit2(t *testing.T) {
negInit2 := &NegTokenInit{
MechTypes: []asn1.ObjectIdentifier{MechanismTypeSPNEGO},
HintName: HintName,
HintAddress: []byte{1, 2, 3},
MechToken: []byte{1, 2, 3, 4},
MechToke... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/gssapi/mechanism_store.go | ssp/gssapi/mechanism_store.go | package gssapi
import (
"context"
"fmt"
"sync"
)
type MechanismStore struct {
mu sync.Mutex
mechs []MechanismFactory
}
// AddMechanism function appends the mechanism to the mechanism store.
func (m *MechanismStore) AddMechanism(f MechanismFactory) {
m.mu.Lock()
defer m.mu.Unlock()
for _, mech := range m... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/gssapi/status.go | ssp/gssapi/status.go | package gssapi
import (
"errors"
)
// The security context status.
type Status int
const (
// GSS_S_NO_CONTEXT: no context. (initial state of the context.)
NoContext Status = iota
// GSS_S_COMPLETE: normal completion.
Complete
// GSS_S_CONTINUE_NEEDED: continuation call to routine required.
ContinueNeeded
//... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/gssapi/credential.go | ssp/gssapi/credential.go | package gssapi
import (
"context"
"sync"
)
type CredentialUsage int
const (
InitiateAndAccept CredentialUsage = 0
InitiateOnly CredentialUsage = 1
AcceptOnly CredentialUsage = 3
)
type Credential interface {
// The target name for the credential.
TargetName() string
// The list of supported mech... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/gssapi/gssapi.go | ssp/gssapi/gssapi.go | package gssapi
import (
"context"
"encoding/asn1"
)
// Cap is a capability used both for request and response.
type Cap int
// IsSet function returns true if provided capability is set.
func (c Cap) IsSet(cc Cap) bool {
return c&cc != 0
}
const (
// The deleg_req_flag requests delegation of access rights.
Dele... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/gssapi/mechanism.go | ssp/gssapi/mechanism.go | package gssapi
import (
"context"
"errors"
)
type MechanismConfig interface {
// The mechanism type object identifier.
Type() OID
// Copy must return copy of the configuration.
Copy() MechanismConfig
}
type MechanismFactory interface {
// New returns the mechanism instance.
New(context.Context) (Mechanism, e... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/gssapi/context.go | ssp/gssapi/context.go | package gssapi
import (
"context"
"fmt"
)
type ChannelBindings interface {
Marshal() ([]byte, error)
}
// The security context represents the GSS-API context entitiy that
// contains the selected mechanism, credentials and settings for the
// security services.
type SecurityContext struct {
// Status.
Status St... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/krb5.go | ssp/krb5/krb5.go | // This package implements the KRB5 security service client as described
// in https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-kile/190ab8de-dc42-49cf-bf1b-ea5705b7a087.
//
// This package also contains client-side GSSAPI bindings (InitSecurityContext, Wrap, Unwrap and so on).
package krb5
| go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/config.go | ssp/krb5/config.go | package krb5
import (
"os"
"strings"
"time"
v8_config "github.com/jcmturner/gokrb5/v8/config"
"github.com/oiweiwei/gokrb5.fork/v9/client"
"github.com/oiweiwei/gokrb5.fork/v9/config"
"github.com/oiweiwei/gokrb5.fork/v9/iana/etypeID"
"github.com/oiweiwei/gokrb5.fork/v9/service"
"github.com/oiweiwei/gokrb5.for... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/authentifier.go | ssp/krb5/authentifier.go | package krb5
import (
"context"
"fmt"
"os"
"github.com/oiweiwei/gokrb5.fork/v9/client"
"github.com/oiweiwei/gokrb5.fork/v9/credentials"
krb_crypto "github.com/oiweiwei/gokrb5.fork/v9/crypto"
"github.com/oiweiwei/gokrb5.fork/v9/iana/etypeID"
"github.com/oiweiwei/gokrb5.fork/v9/iana/nametype"
"github.com/oiwei... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/gssapi.go | ssp/krb5/gssapi.go | package krb5
import (
"bytes"
"context"
"github.com/oiweiwei/gokrb5.fork/v9/iana/flags"
"github.com/oiweiwei/go-msrpc/ssp/gssapi"
)
var (
MechanismType = gssapi.OID{1, 2, 840, 113554, 1, 2, 2}
)
type Mechanism struct {
*Authentifier
}
func (Config) Type() gssapi.OID {
return MechanismType
}
func (c *Confi... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/crypto/rc4_hmac.go | ssp/krb5/crypto/rc4_hmac.go | package crypto
import (
"context"
"crypto/rand"
"fmt"
"github.com/oiweiwei/go-msrpc/ssp/gssapi"
"github.com/oiweiwei/go-msrpc/ssp/krb5/crypto/rfc4757"
)
type RC4HMAC struct {
setting CipherSetting
}
func NewRC4Cipher(ctx context.Context, setting CipherSetting) (Cipher, error) {
return &RC4HMAC{setting: setti... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/crypto/asn1.go | ssp/krb5/crypto/asn1.go | package crypto
import (
"encoding/asn1"
"fmt"
)
var (
KRB5OID = asn1.ObjectIdentifier{1, 2, 840, 113554, 1, 2, 2}
)
// IsASN1Value function returns true if the given byte slice is an ASN.1 value
// with application tag.
func IsASN1Value(b []byte) bool {
return len(b) > 0 && b[0] == 0x60
}
// EncodeASN1Value fun... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/crypto/aes_cts_hmac_sha1.go | ssp/krb5/crypto/aes_cts_hmac_sha1.go | package crypto
import (
"bytes"
"context"
"crypto/hmac"
"crypto/rand"
"encoding/binary"
"fmt"
"hash"
"github.com/oiweiwei/go-msrpc/ssp/crypto"
"github.com/oiweiwei/gokrb5.fork/v9/crypto/common"
"github.com/oiweiwei/gokrb5.fork/v9/crypto/etype"
"github.com/oiweiwei/gokrb5.fork/v9/iana/keyusage"
)
var (
CF... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/crypto/crypto.go | ssp/krb5/crypto/crypto.go | package crypto
import (
"context"
"fmt"
"github.com/oiweiwei/gokrb5.fork/v9/crypto/etype"
"github.com/oiweiwei/gokrb5.fork/v9/iana/etypeID"
"github.com/oiweiwei/gokrb5.fork/v9/types"
)
type Cipher interface {
Wrap(context.Context, uint64, [][]byte, [][]byte) ([]byte, error)
Unwrap(context.Context, uint64, [][... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/crypto/des.go | ssp/krb5/crypto/des.go | package crypto
import (
"context"
"crypto/rand"
"fmt"
"github.com/oiweiwei/go-msrpc/ssp/gssapi"
"github.com/oiweiwei/go-msrpc/ssp/krb5/crypto/rfc1964"
)
type DES struct {
setting CipherSetting
}
func NewDESCipher(ctx context.Context, setting CipherSetting) (Cipher, error) {
return &DES{setting: setting}, nil... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/crypto/rfc1964/des_mac_md5.go | ssp/krb5/crypto/rfc1964/des_mac_md5.go | package rfc1964
import (
"crypto/md5"
"hash"
ssp_crypto "github.com/oiweiwei/go-msrpc/ssp/crypto"
"github.com/oiweiwei/gokrb5.fork/v9/crypto"
"github.com/oiweiwei/gokrb5.fork/v9/crypto/etype"
"github.com/oiweiwei/gokrb5.fork/v9/types"
)
type DesMacMd5 struct {
key []byte
etype etype.EType
hash hash.Hash... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/crypto/rfc1964/token.go | ssp/krb5/crypto/rfc1964/token.go | package rfc1964
import (
"bytes"
"encoding/binary"
"errors"
)
var ErrInvalidToken = errors.New("invalid token")
const (
// MICTokenID is the token ID for MIC.
MICTokenID = 0x0101
// WrapTokenID is the token ID for wrapping.
WrapTokenID = 0x0201
)
const (
// Signature algorithm DES MAC MD5.
SignAlgorithmDES... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/crypto/rfc1964/des.go | ssp/krb5/crypto/rfc1964/des.go | package rfc1964
import (
"bytes"
"fmt"
"github.com/oiweiwei/gokrb5.fork/v9/crypto"
"github.com/oiweiwei/gokrb5.fork/v9/crypto/rfc3961"
"github.com/oiweiwei/gokrb5.fork/v9/types"
)
type DESCipher struct {
key types.EncryptionKey
buf bytes.Buffer
buffers [][]byte
}
func NewCipher(key types.EncryptionK... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/crypto/rfc4757/key_derivation.go | ssp/krb5/crypto/rfc4757/key_derivation.go | package rfc4757
import (
"crypto/rc4"
"errors"
"github.com/oiweiwei/go-msrpc/ssp/crypto"
)
func DeriveEncryptionKey(key []byte, seqNum []byte) ([]byte, error) {
if len(seqNum) < 4 {
return nil, errors.New("sequence number must be at least 4 bytes")
}
// for (i = 0; i < 16; i++) Klocal[i] = Kss[i] ^ 0xF0;
... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/crypto/rfc4757/token.go | ssp/krb5/crypto/rfc4757/token.go | package rfc4757
import (
"encoding/binary"
"github.com/oiweiwei/go-msrpc/ssp/krb5/crypto/rfc1964"
)
const (
// HMAC signature algorithm.
SignAlgorithmHMAC = 0x1100
// RC4 seal algorithm.
SealAlgorithmRC4 = 0x1000
)
// MICToken is a token used for MIC.
type MICToken rfc1964.MICToken
// Equals returns true if ... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/krb5/crypto/rfc4757/checksum.go | ssp/krb5/crypto/rfc4757/checksum.go | package rfc4757
import "github.com/oiweiwei/go-msrpc/ssp/crypto"
const (
KeySaltWrap = int32(13)
KeySaltMIC = int32(15)
)
func ComputeWrapChecksum(key []byte, data ...any) ([]byte, error) {
return ComputeChecksum(key, KeySaltWrap, data...)
}
func ComputeMICChecksum(key []byte, data ...any) ([]byte, error) {
re... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/cipher.go | ssp/ntlm/cipher.go | package ntlm
import (
"bytes"
"context"
"encoding/binary"
"hash"
"hash/crc32"
"crypto/hmac"
"crypto/md5"
"crypto/rc4"
)
// The HMAC-MD5 checksum.
func HMACMD5(key []byte) func(uint32) hash.Hash {
return func(seqNum uint32) hash.Hash {
h := hmac.New(md5.New, key)
binary.Write(h, binary.LittleEndian, seq... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/attr_value.go | ssp/ntlm/attr_value.go | package ntlm
import (
"context"
"encoding/binary"
"github.com/oiweiwei/go-msrpc/ssp/ntlm/internal"
"github.com/oiweiwei/go-msrpc/text/encoding/utf16le"
)
// AttrValues represents the map of attribute-value pairs.
type AttrValues map[AttrValueID]*Value
func (avl AttrValues) ToValue() *Value {
val := Value{}
... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/v2.go | ssp/ntlm/v2.go | package ntlm
import (
"context"
"errors"
"fmt"
"time"
"strings"
"github.com/oiweiwei/go-msrpc/ssp/credential"
"github.com/oiweiwei/go-msrpc/ssp/crypto"
"github.com/oiweiwei/go-msrpc/ssp/ntlm/internal"
"github.com/oiweiwei/go-msrpc/text/encoding/utf16le"
)
// The LMv2Response structure defines the NTLM v2 a... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/config.go | ssp/ntlm/config.go | package ntlm
import (
"context"
"errors"
"time"
"github.com/oiweiwei/go-msrpc/ssp/credential"
)
const (
NTLMv1 = 1
NTLMv2 = 2
)
// The authentication level.
type AuthLevel int
const (
// Client devices use LM and NTLM authentication, and they
// never use NTLMv2 session security.
LMv1AndNTLMv1 AuthLevel =... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/authentifier.go | ssp/ntlm/authentifier.go | package ntlm
import (
"bytes"
"context"
"fmt"
"hash"
"github.com/oiweiwei/go-msrpc/ssp/crypto"
)
// The NTLM Authentifier.
type Authentifier struct {
// The authentifier configuration.
Config *Config
// The list of messages for MIC computation.
mic bytes.Buffer
// The cryptographic state of the NTLM.
stat... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/gssapi.go | ssp/ntlm/gssapi.go | package ntlm
import (
"bytes"
"context"
"errors"
"time"
"github.com/oiweiwei/go-msrpc/ssp/gssapi"
)
var (
MechanismType = gssapi.OID{1, 3, 6, 1, 4, 1, 311, 2, 2, 10}
)
// The NTLMSSP GSS API Mechanism.
type Mechanism struct {
*Authentifier
}
// Config binding for GSS.
func (Config) Type() gssapi.OID {
retu... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/ntlm_test.go | ssp/ntlm/ntlm_test.go | package ntlm
import (
"context"
"encoding/hex"
"fmt"
"reflect"
"testing"
)
func TestNegotiateMessage(t *testing.T) {
m := &NegotiateMessage{
Negotiate: NegotiateVersion | NegotiateOEM | NegotiateUnicode | NegotiateOEMDomainSupplied | NegotiateOEMWorkstationSupplied,
DomainName: "MSAD.COM",
Workstation... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/version.go | ssp/ntlm/version.go | package ntlm
const (
WindowsMajorVersion5 = 0x05
WindowsMajorVersion6 = 0x06
WindowsMajorVersion10 = 0x0a
WindowsMinorVersion0 = 0x00
WindowsMinorVersion1 = 0x01
WindowsMinorVersion2 = 0x02
WindowsMinorVersion3 = 0x03
)
type ProductVersion struct {
// An 8-bit unsigned integer that SHOULD contain the major... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/ntlm.go | ssp/ntlm/ntlm.go | // package ntlm implements the NTLM client security service as described in
// MS-NLMP (https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp).
//
// This package also contains client-side GSSAPI bindings (InitSecurityContext, Wrap, Unwrap and so on).
package ntlm
import (
"bytes"
"context"
"errors"... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/v2_test.go | ssp/ntlm/v2_test.go | package ntlm
import (
"context"
"encoding/hex"
"fmt"
"testing"
"github.com/oiweiwei/go-msrpc/ssp/credential"
)
func TestNTOWF(t *testing.T) {
// https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-nlmp/7795bd0e-fd5e-43ec-bd9c-994704d8ee26
v2 := &V2{Config: &Config{}}
ret, err := v2.NTOWF(cont... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/v1.go | ssp/ntlm/v1.go | package ntlm
import (
"bytes"
"context"
"errors"
"fmt"
"strings"
"github.com/oiweiwei/go-msrpc/ssp/credential"
"github.com/oiweiwei/go-msrpc/ssp/crypto"
"github.com/oiweiwei/go-msrpc/ssp/ntlm/internal"
"github.com/oiweiwei/go-msrpc/text/encoding/utf16le"
)
// The LMv1Respons structure defines the NTLM v1 au... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/signature.go | ssp/ntlm/signature.go | package ntlm
import (
"context"
"github.com/oiweiwei/go-msrpc/ssp/ntlm/internal"
)
type Signature struct {
Version uint32
Checksum []byte
SeqNum uint32
}
func (s *Signature) Marshal(ctx context.Context) ([]byte, error) {
e := internal.NewCodec(ctx, nil)
// version.
e.WriteData(ctx, s.Version)
// check... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/ntlm/internal/codec.go | ssp/ntlm/internal/codec.go | package internal
import (
"bytes"
"context"
"encoding/binary"
"fmt"
"io"
"github.com/oiweiwei/go-msrpc/text/encoding/oem"
)
type StringCodec = oem.Encoding
// CodecValue implements the marshaling/unmarshaling methods.
type CodecValue interface {
Marshal(context.Context) ([]byte, error)
Unmarshal(context.Con... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/netlogon/config.go | ssp/netlogon/config.go | package netlogon
import "github.com/oiweiwei/go-msrpc/ssp/credential"
// The generic credential.
type Credential = credential.Credential
type Config struct {
ServerName string
Capabilities Cap
Credential Credential
ClientChallenge []byte
ServerChallenge []byte
IsServer bool
}
func NewConfi... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/netlogon/authentifier.go | ssp/netlogon/authentifier.go | package netlogon
import (
"context"
"fmt"
"strings"
"github.com/oiweiwei/go-msrpc/ssp/netlogon/crypto"
)
type Authentifier struct {
Config *Config
state *SecurityService
}
type SecurityService struct {
Key []byte
InboundSequenceNumber uint64
OutboundSequenceNumber uint64
OutboundCiphe... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/netlogon/credentials.go | ssp/netlogon/credentials.go | package netlogon
import (
"context"
"encoding/binary"
"fmt"
"github.com/oiweiwei/go-msrpc/ssp/credential"
"github.com/oiweiwei/go-msrpc/ssp/crypto"
"github.com/oiweiwei/go-msrpc/text/encoding/utf16le"
)
func IsValidCredential(cred any) bool {
switch cred := cred.(type) {
case credential.Password:
return tr... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/netlogon/gssapi.go | ssp/netlogon/gssapi.go | package netlogon
import (
"bytes"
"context"
"fmt"
"github.com/oiweiwei/go-msrpc/ssp/gssapi"
)
var (
MechanismType = gssapi.OID{1, 2, 752, 43, 14, 2}
)
type Mechanism struct {
*Authentifier
}
func (Config) Type() gssapi.OID {
return MechanismType
}
func (c *Config) Copy() gssapi.MechanismConfig {
cp := *c... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/netlogon/secure_credential.go | ssp/netlogon/secure_credential.go | package netlogon
import (
"bytes"
"context"
"encoding/binary"
"encoding/hex"
"fmt"
"github.com/oiweiwei/go-msrpc/ssp/crypto"
)
type SecureCredential struct {
caps Cap
key []byte
cred []byte
}
func NewSecureCredential(ctx context.Context, cfg *Config) (*SecureCredential, error) {
key, err := ComputeSessi... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/netlogon/netlogon.go | ssp/netlogon/netlogon.go | // package netlogon implements the Netlogon secure channel client security
// service client as described in
// https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-nrpc/fb50db72-7f71-478d-a180-12eb0ca3b36b.
//
// This package also contains client-side GSSAPI bindings (InitSecurityContext, Wrap, Unwrap and ... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/netlogon/crypto/aes_sha2.go | ssp/netlogon/crypto/aes_sha2.go | package crypto
import (
"bytes"
"context"
"crypto/hmac"
"crypto/rand"
"crypto/sha256"
"github.com/oiweiwei/go-msrpc/ssp/crypto"
"github.com/oiweiwei/go-msrpc/ssp/gssapi"
)
type AESSHA2 struct {
key []byte
isClient bool
}
var (
aesMICHeader = [...]byte{0x13, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00}
... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/netlogon/crypto/rc4_hmac.go | ssp/netlogon/crypto/rc4_hmac.go | package crypto
import (
"context"
"crypto/hmac"
"crypto/md5"
"crypto/rand"
"crypto/rc4"
"github.com/oiweiwei/go-msrpc/ssp/crypto"
"github.com/oiweiwei/go-msrpc/ssp/gssapi"
)
type RC4MD5 struct {
key []byte
isClient bool
}
var (
rc4Sign = [...]byte{0x77, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00}
rc4S... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/netlogon/crypto/crypto.go | ssp/netlogon/crypto/crypto.go | package crypto
import "context"
type Cipher interface {
Size(context.Context, bool) int
Wrap(context.Context, uint64, [][]byte, [][]byte) ([]byte, error)
Unwrap(context.Context, uint64, [][]byte, [][]byte, []byte) ([]byte, error)
MakeSignature(context.Context, uint64, [][]byte) ([]byte, error)
}
type etype int
... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/crypto/cfb8.go | ssp/crypto/cfb8.go | package crypto
import "crypto/cipher"
// CFB stream with 8 bit segment size
// See http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf
type cfb8 struct {
b cipher.Block
blockSize int
in []byte
out []byte
decrypt bool
}
func (x *cfb8) XORKeyStream(dst, src []byte) {
for i := r... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/crypto/des_ecb_lm.go | ssp/crypto/des_ecb_lm.go | package crypto
import "encoding/binary"
// DES_ECB_LM encrypts the data using the algorithm specified in
// https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-samr/b1b0094f-2546-431f-b06d-582158a9f2bb
func DES_ECB_LM(k uint32, b []byte) ([]byte, error) {
key := binary.LittleEndian.AppendUint32(nil, k)... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/crypto/crypto.go | ssp/crypto/crypto.go | package crypto
import (
"encoding/binary"
"errors"
"fmt"
"hash"
"io"
"math/bits"
"crypto/aes"
"crypto/cipher"
"crypto/des"
"crypto/hmac"
"crypto/md5"
"crypto/rand"
"crypto/rc4"
"crypto/sha256"
"hash/crc32"
"golang.org/x/crypto/md4"
)
var (
_ = fmt.Sprintf("")
)
var (
ECBSize = 7
)
func AES_CFB(k... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/credential/ccache.go | ssp/credential/ccache.go | package credential
import (
"fmt"
"github.com/oiweiwei/gokrb5.fork/v9/credentials"
"github.com/oiweiwei/gokrb5.fork/v9/types"
v8_credentials "github.com/jcmturner/gokrb5/v8/credentials"
)
type CCacheV8 interface {
Credential
// CCache V8.
CCache() *v8_credentials.CCache
}
type CCache interface {
Credential... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/credential/credential.go | ssp/credential/credential.go | package credential
import "strings"
// Generic credential.
type Credential interface {
// User name.
UserName() string
// Domain name.
DomainName() string
// Workstation.
Workstation() string
}
func parseUser(un string, opts ...Option) userCred {
dn, un, wkst := parseDomainUserWorkstation(un, opts...)
return... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/credential/keytab.go | ssp/credential/keytab.go | package credential
import (
"fmt"
"github.com/oiweiwei/gokrb5.fork/v9/keytab"
"github.com/oiweiwei/gokrb5.fork/v9/types"
v8_keytab "github.com/jcmturner/gokrb5/v8/keytab"
)
type KeytabV8 interface {
Credential
// Keytab.
Keytab() *v8_keytab.Keytab
}
// Keytab interface defines the Kerberos 5 Keytab credenti... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/credential/encryption_key.go | ssp/credential/encryption_key.go | package credential
import (
"encoding/hex"
)
// EncryptionKey interface represents the encryption key credentials.
// The KeyType represents the Kerberos 5 IANA assigned number for the
// key.
type EncryptionKey interface {
Credential
// Encryption key value.
KeyValue() []byte
// Key type.
KeyType() int
}
// e... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/credential/nt_hash.go | ssp/credential/nt_hash.go | package credential
import (
"encoding/hex"
)
type NTHash interface {
// Credential. (UserName / DomainName).
Credential
// NT Hash.
NTHash() []byte
}
type ntHashCred struct {
userCred
hash []byte
hashErr error
}
// NT Hash.
func (cred *ntHashCred) NTHash() []byte {
if cred != nil {
return cred.hash
}... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/credential/options.go | ssp/credential/options.go | package credential
type Option interface {
is_CredentialOption()
}
type wkstOpt string
func (wkstOpt) is_CredentialOption() {}
// Workstation option.
func Workstation(s string) Option {
return wkstOpt(s)
}
type allowEmptyPassword struct{}
func (allowEmptyPassword) is_CredentialOption() {}
// Allow empty passwo... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/credential/password.go | ssp/credential/password.go | package credential
import (
"errors"
)
// Password credential.
type Password interface {
// Credential. (UserName / DomainName).
Credential
// Password.
Password() string
}
// Password implementation.
type passwordCred struct {
userCred
password string
allowEmpty bool
}
// Password.
func (cred *passwordCr... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/ssp/credential/user.go | ssp/credential/user.go | package credential
type userCred struct {
userName string
domainName string
workstation string
}
// User name.
func (n *userCred) UserName() string {
if n != nil {
return n.userName
}
return ""
}
// Domain name.
func (n *userCred) DomainName() string {
if n != nil {
return n.domainName
}
return ""
}... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/msrpc/msrpc.go | msrpc/msrpc.go | // package msrpc contains various stubs generated by codegen.
//
// Read the github.com/oiweiwei/go-msrpc/dcerpc documentation
// for usage.
package msrpc
| go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
oiweiwei/go-msrpc | https://github.com/oiweiwei/go-msrpc/blob/6f89ec8889c9e3408ffdc71c45f01e61ce95ce78/msrpc/binxml/types.go | msrpc/binxml/types.go | package binxml
import (
"fmt"
"github.com/oiweiwei/go-msrpc/midl/uuid"
)
// An event query or subscription returns multiple events in the result set.
// The result set is a buffer containing one or more variable length
// EVENT_DESCRIPTOR structures, as specified in [MS-DTYP] section 2.3.1.
// Methods that return ... | go | MIT | 6f89ec8889c9e3408ffdc71c45f01e61ce95ce78 | 2026-01-07T09:45:59.650381Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.