Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to rpc_plugin to use HashWithIndifferentAccess #18606

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/msf/core/rpc/v10/rpc_plugin.rb
@@ -1,4 +1,6 @@
# -*- coding: binary -*-
require 'active_support/hash_with_indifferent_access'

module Msf
module RPC
class RPC_Plugin < RPC_Base
Expand All @@ -17,7 +19,7 @@ class RPC_Plugin < RPC_Base
# # Load the nexpose plugin
# rpc.call('plugin.load', 'nexpose')
def rpc_load(path, xopts = {})
opts = {}
opts = ActiveSupport::HashWithIndifferentAccess.new

xopts.each do |k, v|
if k.class == String
Expand Down