Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Scope fingerprints DB to a single scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Claudius committed Mar 26, 2017
1 parent 4d9f6b3 commit 43299ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/ssh_scan
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,11 @@ ssh_scan' to get the latest"
end
end

# Limit scope of fingerprints DB to (per scan)
if options["fingerprint_database"] && File.exists?(options["fingerprint_database"])
File.unlink(options["fingerprint_database"])
end

options["policy_file"] = SSHScan::Policy.from_file(options["policy"])

# Perform scan and get results
Expand Down

0 comments on commit 43299ad

Please sign in to comment.