Module: Msf::Util::DotNetDeserialization::Formatters::JsonNetFormatter

Defined in:
lib/msf/util/dot_net_deserialization/formatters/json_net_formatter.rb

Class Method Summary collapse

Class Method Details

.generate(stream) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/msf/util/dot_net_deserialization/formatters/json_net_formatter.rb', line 7

def self.generate(stream)
  unless stream.is_a?(GadgetChains::ObjectDataProvider)
    raise ::NotImplementedError, 'Stream is not supported by this formatter'
  end

  stream.object.to_json
end