Skip to content

Commit

Permalink
Sleep before shutting down beacon instead of after
Browse files Browse the repository at this point in the history
When using a windows implant + wireguard it looks like the beacon registration message is never recieved by the server because the session is closed too quickly.

Fixes #670
  • Loading branch information
jamesgol committed Sep 15, 2022
1 parent 70b0667 commit 4748f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion implant/sliver/sliver.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ func beaconMainLoop(beacon *transports.Beacon) error {
Register: register,
NextCheckin: int64(beacon.Duration().Seconds()),
}))
beacon.Close()
time.Sleep(time.Second)
beacon.Close()

// BeaconMain - Is executed in it's own goroutine as the function will block
// until all tasks complete (in success or failure), if a task handler blocks
Expand Down

0 comments on commit 4748f61

Please sign in to comment.