-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrrp.go
58 lines (54 loc) · 2.15 KB
/
rrp.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// The rrp package implements the RRP client protocol.
//
// # Introduction
//
// The Windows Remote Registry Protocol is a remote procedure call (RPC)–based client/server
// protocol that is used for remotely managing a hierarchical Data Store such as the
// Windows registry. For more information, see [MSWINREG].
//
// # Overview
//
// The Windows Remote Registry Protocol is a client/server protocol that is used for
// remotely managing a hierarchical Data Store with lightly typed elements. The layout
// and specifics of such a store is specified in section 3.1.1.
//
// A remote registry management session begins with the client initiating the connection
// request to the server. If the server grants the request, the connection is established.
// The client can then make multiple requests to read or modify the registry on the
// server by using the same session until the session is terminated.
//
// A typical remote registry session involves the client connecting to the server and
// requesting to open a registry key on the server. If the server accepts the request,
// it responds with an RPC context handle that refers to the key. The client uses this
// RPC context handle to operate on that key. This usually involves sending another
// request to the server specifying the type of operation to perform and any specific
// parameters that are associated with that operation. If the server accepts this request,
// it attempts to change the state of the key based on the request and responds to the
// client with the result of the operation. When the client is finished operating on
// the server keys, it terminates the protocol by sending a request to close the RPC
// context handle.
package rrp
import (
"context"
"fmt"
"strings"
"unicode/utf16"
dcerpc "github.com/oiweiwei/go-msrpc/dcerpc"
errors "github.com/oiweiwei/go-msrpc/dcerpc/errors"
uuid "github.com/oiweiwei/go-msrpc/midl/uuid"
ndr "github.com/oiweiwei/go-msrpc/ndr"
)
var (
_ = context.Background
_ = fmt.Errorf
_ = utf16.Encode
_ = strings.TrimPrefix
_ = ndr.ZeroString
_ = (*uuid.UUID)(nil)
_ = (*dcerpc.SyntaxID)(nil)
_ = (*errors.Error)(nil)
)
var (
// import guard
GoPackage = "rrp"
)