Class: TurboRex::Fuzzer::Container::OLESTRContainer

Inherits:
ContainerBase
  • Object
show all
Defined in:
lib/turborex/fuzzer/containers.rb

Instance Attribute Summary

Attributes inherited from ContainerBase

#buf

Instance Method Summary collapse

Methods inherited from ContainerBase

#fixed=, #mutate

Instance Method Details

#set_data(data) ⇒ Object



61
62
63
64
65
66
# File 'lib/turborex/fuzzer/containers.rb', line 61

def set_data(data)
  wchar = TurboRex::Windows::Utils.multibyte_to_widechar(data)
  @buf = TurboRex::Windows::Win32API.alloc_c_ary('WCHAR', @length / 2)
  @buf.str = wchar
  @buf
end