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


19
20
21
# File 'lib/msf/core/post/windows/file_system.rb', line 19

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

#snapshotObject


23
24
25
# File 'lib/msf/core/post/windows/file_system.rb', line 23

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