Skip to content

Commit

Permalink
Merge pull request #1378 from BishopFox/fix/kill
Browse files Browse the repository at this point in the history
Fix kill for sessions
  • Loading branch information
moloch-- authored Nov 16, 2023
2 parents 5efd05f + ee2a72f commit 699b9bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions implant/sliver/sliver.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ func sessionStartup() {
if connection != nil {
err := sessionMainLoop(connection)
if err != nil {
if err == ErrTerminate {
connection.Cleanup()
return
}
connectionErrors++
if transports.GetMaxConnectionErrors() < connectionErrors {
return
Expand Down

0 comments on commit 699b9bb

Please sign in to comment.