Skip to content

Commit

Permalink
Fix migrate too
Browse files Browse the repository at this point in the history
  • Loading branch information
rkervella committed Dec 2, 2020
1 parent c70ea89 commit 4524e44
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/rpc/rpc-tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ func (rpc *Server) Migrate(ctx context.Context, req *clientpb.MigrateReq) (*sliv
name := path.Base(req.Config.GetName())
shellcode, err := getSliverShellcode(name)
if err != nil {
_, config := generate.ImplantConfigFromProtobuf(req.Config)
name, config := generate.ImplantConfigFromProtobuf(req.Config)
if name == "" {
name, err = generate.GetCodename()
if err != nil {
return nil, err
}
}
config.Format = clientpb.ImplantConfig_SHELLCODE
config.ObfuscateSymbols = false
shellcodePath, err := generate.SliverShellcode(name, config)
Expand Down

0 comments on commit 4524e44

Please sign in to comment.