Minor tweak (kill useless variable, fix gsub)

bug/bundler_fix
HD Moore 2012-11-04 01:18:40 -05:00
parent 99ab722aca
commit 752ae33135
1 changed files with 2 additions and 5 deletions

View File

@ -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