mirror of
https://github.com/Velocidex/velociraptor.git
synced 2026-10-12 02:09:59 +00:00
Implemented persistent Bash, Powershell, CMD and VQL shells Added full screen and transcript download. The transcript allows the user to download a textual transcript of the interactive session.
20 lines
279 B
Go
20 lines
279 B
Go
package utils
|
|
|
|
import (
|
|
"context"
|
|
|
|
"www.velocidex.com/golang/vfilter"
|
|
)
|
|
|
|
func SendToOutput(
|
|
ctx context.Context,
|
|
output_chan chan vfilter.Row,
|
|
event interface{}) bool {
|
|
select {
|
|
case <-ctx.Done():
|
|
return false
|
|
case output_chan <- vfilter.Row(event):
|
|
return true
|
|
}
|
|
}
|