Class: TurboRex::Fuzzer::COMFuzzer::Input

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

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Input

Returns a new instance of Input.



123
124
125
126
127
128
129
130
131
132
133
# File 'lib/turborex/fuzzer.rb', line 123

def initialize(config)
  configure = config.fuzzer_configure
  target = configure.target
  @clsid = target.clsid
  @interface = target.interface
  @method = target.method
  @method_name = @method.name.to_sym

  @client = TurboRex::Windows::COM::Client.new(@clsid)
  @client.create_instance cls_context: target.context, interface: @interface
end

Instance Method Details

#feed(*args) ⇒ Object



135
136
137
138
139
# File 'lib/turborex/fuzzer.rb', line 135

def feed(*args)
  #raw_args = args.map {|a| a.buf}
  #feed_raw(*raw_args)
  @interface.send(@method_name, *args)
end