Include hosts when returning services

GSoC/Meterpreter_Web_Console
James Barnett 2018-03-02 16:32:02 -06:00
parent fd4032928e
commit b0012d6f36
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ module ServiceServlet
begin
opts = params.symbolize_keys
data = get_db.services(opts)
set_json_response(data)
includes = [:host]
set_json_response(data, includes)
rescue Exception => e
set_error_on_response(e)
end