Class: Msf::Post::Windows::FileSystem::String16

Inherits:
BinData::String
  • Object
show all
Defined in:
lib/msf/core/post/windows/file_system.rb

Instance Method Summary collapse

Instance Method Details

#assign(val) ⇒ Object



32
33
34
# File 'lib/msf/core/post/windows/file_system.rb', line 32

def assign(val)
  super(val.encode('utf-16le'))
end

#snapshotObject



36
37
38
# File 'lib/msf/core/post/windows/file_system.rb', line 36

def snapshot
  super.force_encoding('utf-16le')
end