From 9d343ea1c1610223f2613aadcbe7b9b954abd375 Mon Sep 17 00:00:00 2001 From: David Maloney Date: Thu, 8 Mar 2012 11:03:33 -0600 Subject: [PATCH] Fix to dividie by zero issue in scannenr progress method --- lib/msf/core/auxiliary/scanner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/auxiliary/scanner.rb b/lib/msf/core/auxiliary/scanner.rb index 90112518da..8c91818d51 100644 --- a/lib/msf/core/auxiliary/scanner.rb +++ b/lib/msf/core/auxiliary/scanner.rb @@ -39,7 +39,7 @@ def run @show_percent = datastore['ShowProgressPercent'].to_i ar = Rex::Socket::RangeWalker.new(datastore['RHOSTS']) - @range_count = ar.length + @range_count = ar.length || 0 @range_done = 0 @range_percent = 0