From 43299ad95e7c62eb802281960a35b946ea60e39f Mon Sep 17 00:00:00 2001 From: Jonathan Claudius Date: Sun, 26 Mar 2017 01:03:48 -0400 Subject: [PATCH] Scope fingerprints DB to a single scan --- bin/ssh_scan | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/ssh_scan b/bin/ssh_scan index 9447f661..cbead01a 100755 --- a/bin/ssh_scan +++ b/bin/ssh_scan @@ -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