Skip to content

Commit

Permalink
fix DonutShellCodeFromPE call for Windows by passing through EntryPoi…
Browse files Browse the repository at this point in the history
…nt parameter
  • Loading branch information
tothi committed Jul 31, 2022
1 parent d1cf558 commit 4e8e254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/rpc/rpc-tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (rpc *Server) Sideload(ctx context.Context, req *sliverpb.SideloadReq) (*sl
}

if getOS(session, beacon) == "windows" {
shellcode, err := generate.DonutShellcodeFromPE(req.Data, arch, false, req.Args, "", "", req.IsDLL)
shellcode, err := generate.DonutShellcodeFromPE(req.Data, arch, false, req.Args, "", req.EntryPoint, req.IsDLL)
if err != nil {
tasksLog.Errorf("Sideload failed: %s", err)
return nil, err
Expand Down

0 comments on commit 4e8e254

Please sign in to comment.