Skip to content

Commit 53530b3

Browse files
committed
Bug fixes
1 parent b81e9a4 commit 53530b3

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/msf/core/db_manager/http/servlet_helper.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def parse_json_request(request, strict = false)
2727
end
2828

2929
hash = JSON.parse(body)
30-
hash.symbolize_keys
30+
hash.deep_symbolize_keys
3131
end
3232

3333
def exec_report_job(request, &job)
@@ -39,9 +39,10 @@ def exec_report_job(request, &job)
3939
exec_async = opts.delete(:exec_async)
4040
if (exec_async)
4141
JobProcessor.instance.submit_job(opts, &job)
42+
return set_empty_response()
4243
else
4344
data = job.call(opts)
44-
set_json_response(data)
45+
return set_json_response(data)
4546
end
4647

4748
rescue Exception => e

lib/msf/core/db_manager/vuln.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def report_vuln(opts)
105105
opts[:refs].each do |r|
106106
if (r.respond_to?(:ctx_id)) and (r.respond_to?(:ctx_val))
107107
r = "#{r.ctx_id}-#{r.ctx_val}"
108-
elsif (r.is_a?(Hash) and r['ctx_id'] and r['ctx_val'])
108+
elsif (r.is_a?(Hash) and r[:ctx_id] and r[:ctx_val])
109109
r = "#{r[:ctx_id]}-#{r[:ctx_val]}"
110110
end
111111
rids << find_or_create_ref(:name => r)

lib/msf/ui/console/command_dispatcher/db.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def cmd_set_data_service(service_id)
9292
end
9393

9494
def cmd_list_data_services()
95-
data_service_manager = Metasploit::Framework::DataService::DataProxy..instance
95+
data_service_manager = Metasploit::Framework::DataService::DataProxy.instance
9696
data_service_manager.print_data_services
9797
end
9898

0 commit comments

Comments
 (0)