Properly store quake service info
parent
8d640a0c8f
commit
fd0b42be4a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue