File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
modules/auxiliary/scanner/quake Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,13 @@ def decode_stuff(response)
55
55
stuff = decode_info ( response )
56
56
when 'status'
57
57
stuff = decode_status ( response )
58
+ else
59
+ stuff = { }
58
60
end
59
61
60
62
if datastore [ 'VERBOSE' ]
61
- stuff . inspect
63
+ # get everything
64
+ stuff
62
65
else
63
66
# try to get the host name, game name and version
64
67
stuff . select { |k , _ | %w( hostname sv_hostname gamename com_gamename version ) . include? ( k ) }
@@ -68,9 +71,9 @@ def decode_stuff(response)
68
71
def scanner_process ( response , src_host , src_port )
69
72
stuff = decode_stuff ( response )
70
73
return unless stuff
71
- @results [ src_host ] ||= [ ]
74
+ @results [ src_host ] ||= { }
72
75
print_good ( "#{ src_host } :#{ src_port } found '#{ stuff } '" )
73
- @results [ src_host ] << stuff
76
+ @results [ src_host ] . merge! ( stuff )
74
77
end
75
78
76
79
def scanner_postscan ( _batch )
@@ -81,7 +84,7 @@ def scanner_postscan(_batch)
81
84
proto : 'udp' ,
82
85
port : rport ,
83
86
name : 'Quake' ,
84
- info : stuff
87
+ info : stuff . inspect
85
88
)
86
89
end
87
90
end
You can’t perform that action at this time.
0 commit comments