mirror of
https://github.com/oiweiwei/go-msrpc
synced 2026-06-08 16:28:58 +00:00
fix: add full ext-caps for drsr secrets dump
This commit is contained in:
@@ -85,7 +85,8 @@ func main() {
|
||||
}
|
||||
|
||||
clientCaps := drsuapi.ExtensionsInt{
|
||||
Flags: drsuapi.ExtGetNCChangesRequestV8 | drsuapi.ExtStrongEncryption | drsuapi.ExtGetNCChangesReplyV6,
|
||||
Flags: drsuapi.ExtGetNCChangesRequestV8 | drsuapi.ExtStrongEncryption | drsuapi.ExtGetNCChangesReplyV6,
|
||||
ExtCaps: 0xFFFFFFFF,
|
||||
}
|
||||
|
||||
b, err := ndr.Marshal(&clientCaps, ndr.Opaque)
|
||||
|
||||
@@ -77,7 +77,8 @@ func main() {
|
||||
}
|
||||
|
||||
clientCaps := drsuapi.ExtensionsInt{
|
||||
Flags: drsuapi.ExtGetNCChangesRequestV8 | drsuapi.ExtStrongEncryption | drsuapi.ExtGetNCChangesReplyV6,
|
||||
Flags: drsuapi.ExtGetNCChangesRequestV8 | drsuapi.ExtStrongEncryption | drsuapi.ExtGetNCChangesReplyV6,
|
||||
ExtCaps: 0xFFFFFFFF,
|
||||
}
|
||||
|
||||
b, err := ndr.Marshal(&clientCaps, ndr.Opaque)
|
||||
@@ -94,6 +95,17 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
var serverCaps drsuapi.ExtensionsInt
|
||||
|
||||
if err := ndr.Unmarshal(resp.Server.Data, &serverCaps, ndr.Opaque); err != nil {
|
||||
fmt.Fprintln(os.Stderr, "unmarshal_server_caps", err)
|
||||
return
|
||||
}
|
||||
|
||||
if cfg.Debug {
|
||||
fmt.Println(J(serverCaps))
|
||||
}
|
||||
|
||||
// get the id using the provided name.
|
||||
cracked, err := cli.CrackNames(ctx, &drsuapi.CrackNamesRequest{
|
||||
Handle: resp.DRS,
|
||||
|
||||
Reference in New Issue
Block a user