We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99ab722 commit 752ae33Copy full SHA for 752ae33
lib/msf/core/auxiliary/udp_scanner.rb
@@ -118,15 +118,12 @@ def scanner_recv(timeout=0.1)
118
next if not (res[0] and res[0].length > 0)
119
120
# Trim the IPv6-compat prefix off if needed
121
- shost = res[1].gsub(/^::ffff:/, '')
122
-
123
- # Store the source port
124
- sport = res[2]
+ shost = res[1].sub(/^::ffff:/, '')
125
126
# Ignore the response if we have a boundary
127
next unless inside_workspace_boundary?(shost)
128
129
- queue << [res[0], shost, sport]
+ queue << [res[0], shost, res[2]]
130
131
if queue.length > datastore['ScannerRecvQueueLimit']
132
break
0 commit comments