From 752ae33135a0e5155d3ab1190901bf41800dc008 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sun, 4 Nov 2012 01:18:40 -0500 Subject: [PATCH] Minor tweak (kill useless variable, fix gsub) --- lib/msf/core/auxiliary/udp_scanner.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/msf/core/auxiliary/udp_scanner.rb b/lib/msf/core/auxiliary/udp_scanner.rb index 1f19506a7d..c684947281 100644 --- a/lib/msf/core/auxiliary/udp_scanner.rb +++ b/lib/msf/core/auxiliary/udp_scanner.rb @@ -118,15 +118,12 @@ module Auxiliary::UDPScanner next if not (res[0] and res[0].length > 0) # Trim the IPv6-compat prefix off if needed - shost = res[1].gsub(/^::ffff:/, '') - - # Store the source port - sport = res[2] + shost = res[1].sub(/^::ffff:/, '') # Ignore the response if we have a boundary next unless inside_workspace_boundary?(shost) - queue << [res[0], shost, sport] + queue << [res[0], shost, res[2]] if queue.length > datastore['ScannerRecvQueueLimit'] break