Module: Msf::Util::DotNetDeserialization::Formatters::BinaryFormatter

Defined in:
lib/msf/util/dot_net_deserialization/formatters/binary_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/binary_formatter.rb', line 7

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

  stream.to_binary_s
end