Skip to content

Commit 7fce102

Browse files
committed
remove batch size for scan queue, just scan everything
1 parent 5ae14c5 commit 7fce102

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ from cron every hour to to perform a constant audit.
5656
$ ./ssh-auditor addcredential admin admin
5757
$ ./ssh-auditor addcredential guest guest --scan-interval 1 #check this once per day
5858

59-
### Try credentials against discovered hosts in a batch of 20000
59+
### Try credentials against discovered hosts
6060

6161
$ ./ssh-auditor scan
6262

sshauditor/store.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func (s *SQLiteStore) getScanQueue() ([]ScanRequest, error) {
350350
where hosts.hostport = host_creds.hostport and
351351
last_tested < datetime('now', 'localtime', -scan_interval || ' day') and
352352
hosts.fingerprint != '' and
353-
seen_last > datetime('now', 'localtime', '-7 day') order by last_tested ASC limit 20000`
353+
seen_last > datetime('now', 'localtime', '-7 day') order by last_tested ASC`
354354
return s.getScanQueueHelper(q)
355355
}
356356
func (s *SQLiteStore) getScanQueueSize() (int, error) {
@@ -365,7 +365,7 @@ func (s *SQLiteStore) getScanQueueSize() (int, error) {
365365
return cnt, errors.Wrap(err, "getScanQueueSize")
366366
}
367367
func (s *SQLiteStore) getRescanQueue() ([]ScanRequest, error) {
368-
q := `select * from host_creds where result !='' order by last_tested ASC limit 20000`
368+
q := `select * from host_creds where result !='' order by last_tested ASC`
369369
return s.getScanQueueHelper(q)
370370
}
371371

0 commit comments

Comments
 (0)