Skip to content

Commit

Permalink
Delay closing to all coroutines to complete
Browse files Browse the repository at this point in the history
Wireguard beacons could connect, but results of commands weren't making it back.

This is a bit hacky.  It works, but it would be better if there was a way to wait till everything has been transmitted.
  • Loading branch information
jamesgol committed Sep 15, 2022
1 parent 4748f61 commit 577a373
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions implant/sliver/sliver.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ func beaconMain(beacon *transports.Beacon, nextCheckin time.Time) error {
// {{if .Config.Debug}}
log.Printf("[beacon] closing ...")
// {{end}}
time.Sleep(time.Second)
beacon.Close()
}()
// {{if .Config.Debug}}
Expand Down

0 comments on commit 577a373

Please sign in to comment.