Skip to content

Commit

Permalink
remove batch size for scan queue, just scan everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Azoff committed Jun 19, 2021
1 parent 5ae14c5 commit 7fce102
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -56,7 +56,7 @@ from cron every hour to to perform a constant audit.
$ ./ssh-auditor addcredential admin admin
$ ./ssh-auditor addcredential guest guest --scan-interval 1 #check this once per day

### Try credentials against discovered hosts in a batch of 20000
### Try credentials against discovered hosts

$ ./ssh-auditor scan

Expand Down
4 changes: 2 additions & 2 deletions sshauditor/store.go
Expand Up @@ -350,7 +350,7 @@ func (s *SQLiteStore) getScanQueue() ([]ScanRequest, error) {
where hosts.hostport = host_creds.hostport and
last_tested < datetime('now', 'localtime', -scan_interval || ' day') and
hosts.fingerprint != '' and
seen_last > datetime('now', 'localtime', '-7 day') order by last_tested ASC limit 20000`
seen_last > datetime('now', 'localtime', '-7 day') order by last_tested ASC`
return s.getScanQueueHelper(q)
}
func (s *SQLiteStore) getScanQueueSize() (int, error) {
Expand All @@ -365,7 +365,7 @@ func (s *SQLiteStore) getScanQueueSize() (int, error) {
return cnt, errors.Wrap(err, "getScanQueueSize")
}
func (s *SQLiteStore) getRescanQueue() ([]ScanRequest, error) {
q := `select * from host_creds where result !='' order by last_tested ASC limit 20000`
q := `select * from host_creds where result !='' order by last_tested ASC`
return s.getScanQueueHelper(q)
}

Expand Down

0 comments on commit 7fce102

Please sign in to comment.