feat(bsr/ssh): Support decoding chunks
This adds a function for decoding all of the SSH Chunk types and registers the function with the chunk types so that the bsr.ChunkDecode can be used to decode SSH Chunks.
This commit is contained in:
21 files changed
+1023
-41
No files matched your search
@@ -18,7 +18,7 @@ const ShellRequestType = "shell"
|
||||
|
||||
// ShellRequest is a chunk to contain data for an SSH Shell request
|
||||
type ShellRequest struct {
|
||||
bsr.BaseChunk
|
||||
*bsr.BaseChunk
|
||||
*pssh.ShellRequest
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ func NewShellRequest(ctx context.Context, d bsr.Direction, t *bsr.Timestamp, r *
|
||||
}
|
||||
|
||||
reqData := &ShellRequest{
|
||||
BaseChunk: *baseChunk,
|
||||
BaseChunk: baseChunk,
|
||||
ShellRequest: &pssh.ShellRequest{
|
||||
RequestType: r.Type,
|
||||
WantReply: r.WantReply,
|
||||
|
||||
Reference in new issue
Block a user