Land #5539, Quake scanner fix

bug/bundler_fix
William Vu 2015-06-24 15:00:39 -05:00
commit 827d241482
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 7 additions and 4 deletions

View File

@ -55,10 +55,13 @@ class Metasploit3 < Msf::Auxiliary
stuff = decode_info(response)
when 'status'
stuff = decode_status(response)
else
stuff = {}
end
if datastore['VERBOSE']
stuff.inspect
# get everything
stuff
else
# try to get the host name, game name and version
stuff.select { |k, _| %w(hostname sv_hostname gamename com_gamename version).include?(k) }
@ -68,9 +71,9 @@ class Metasploit3 < Msf::Auxiliary
def scanner_process(response, src_host, src_port)
stuff = decode_stuff(response)
return unless stuff
@results[src_host] ||= []
@results[src_host] ||= {}
print_good("#{src_host}:#{src_port} found '#{stuff}'")
@results[src_host] << stuff
@results[src_host].merge!(stuff)
end
def scanner_postscan(_batch)
@ -81,7 +84,7 @@ class Metasploit3 < Msf::Auxiliary
proto: 'udp',
port: rport,
name: 'Quake',
info: stuff
info: stuff.inspect
)
end
end