Skip to content

Commit 5bc3820

Browse files
committed
Few more loot bugs
1 parent 0dfc10b commit 5bc3820

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/metasploit/framework/data_service/remote/http/remote_loot_data_service.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def report_loots(loot)
3232
end
3333

3434
def update_loot(opts)
35-
$stderr.puts "RemoteLootDataService.update_host(): opts = #{opts}" # TODO: remove
3635
path = LOOT_API_PATH
3736
if opts && opts[:id]
3837
id = opts.delete(:id)

lib/msf/core/db_manager/http/servlet/loot_servlet.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def self.update_loot
5151
lambda {
5252
begin
5353
opts = parse_json_request(request, false)
54+
tmp_params = params.symbolize_keys
55+
opts[:id] = tmp_params[:id] if tmp_params[:id]
5456
data = get_db().update_loot(opts)
5557
set_json_response(data)
5658
rescue Exception => e

0 commit comments

Comments
 (0)