Skip to content

Commit

Permalink
Reorder code
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch-- committed Oct 1, 2022
1 parent 4ecf42b commit 338b622
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/command/exec/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ func MigrateCmd(ctx *grumble.Context, con *console.SliverConsoleClient) {

pid := ctx.Args.Uint("pid")
config := con.GetActiveSessionConfig()
ctrl := make(chan bool)
con.SpinUntil(fmt.Sprintf("Migrating into %d ...", pid), ctrl)
encoder := clientpb.ShellcodeEncoder_SHIKATA_GA_NAI
if ctx.Flags.Bool("disable-sgn") {
encoder = clientpb.ShellcodeEncoder_NONE
}

ctrl := make(chan bool)
con.SpinUntil(fmt.Sprintf("Migrating into %d ...", pid), ctrl)

migrate, err := con.Rpc.Migrate(context.Background(), &clientpb.MigrateReq{
Pid: uint32(pid),
Config: config,
Expand Down

0 comments on commit 338b622

Please sign in to comment.