Skip to content

Commit

Permalink
Fix scan interval option (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ullaakut authored Nov 16, 2019
1 parent 4aabf47 commit 3f05737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions attack.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ func (s *Scanner) AttackCredentials(targets []Stream) []Stream {
// TODO: Perf Improvement: Skip cameras with no auth type detected, and set their
// CredentialsFound value to true.
go s.attackCameraCredentials(targets[i], resChan)
time.Sleep(s.attackInterval)
}

attackResults := []Stream{}
Expand All @@ -105,7 +104,6 @@ func (s *Scanner) AttackRoute(targets []Stream) []Stream {

for i := range targets {
go s.attackCameraRoute(targets[i], resChan)
time.Sleep(s.attackInterval)
}

attackResults := []Stream{}
Expand Down Expand Up @@ -157,6 +155,7 @@ func (s *Scanner) attackCameraCredentials(target Stream, resChan chan<- Stream)
resChan <- target
return
}
time.Sleep(s.attackInterval)
}
}

Expand All @@ -173,6 +172,7 @@ func (s *Scanner) attackCameraRoute(target Stream, resChan chan<- Stream) {
resChan <- target
return
}
time.Sleep(s.attackInterval)
}

target.RouteFound = false
Expand Down

0 comments on commit 3f05737

Please sign in to comment.