File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
ui/console/command_dispatcher Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def parse_json_request(request, strict = false)
27
27
end
28
28
29
29
hash = JSON . parse ( body )
30
- hash . symbolize_keys
30
+ hash . deep_symbolize_keys
31
31
end
32
32
33
33
def exec_report_job ( request , &job )
@@ -39,9 +39,10 @@ def exec_report_job(request, &job)
39
39
exec_async = opts . delete ( :exec_async )
40
40
if ( exec_async )
41
41
JobProcessor . instance . submit_job ( opts , &job )
42
+ return set_empty_response ( )
42
43
else
43
44
data = job . call ( opts )
44
- set_json_response ( data )
45
+ return set_json_response ( data )
45
46
end
46
47
47
48
rescue Exception => e
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ def report_vuln(opts)
105
105
opts [ :refs ] . each do |r |
106
106
if ( r . respond_to? ( :ctx_id ) ) and ( r . respond_to? ( :ctx_val ) )
107
107
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] )
109
109
r = "#{ r [ :ctx_id ] } -#{ r [ :ctx_val ] } "
110
110
end
111
111
rids << find_or_create_ref ( :name => r )
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def cmd_set_data_service(service_id)
92
92
end
93
93
94
94
def cmd_list_data_services ( )
95
- data_service_manager = Metasploit ::Framework ::DataService ::DataProxy .. instance
95
+ data_service_manager = Metasploit ::Framework ::DataService ::DataProxy . instance
96
96
data_service_manager . print_data_services
97
97
end
98
98
You can’t perform that action at this time.
0 commit comments