Class: TurboRex::Fuzzer::COMFuzzer
- Inherits:
-
FuzzerBase
- Object
- FuzzerBase
- TurboRex::Fuzzer::COMFuzzer
- Defined in:
- lib/turborex/fuzzer.rb
Defined Under Namespace
Classes: Config, Input, ParamBuilder, Parameter, Target, TargetBuilder
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(config) ⇒ COMFuzzer
constructor
A new instance of COMFuzzer.
Constructor Details
#initialize(config) ⇒ COMFuzzer
Returns a new instance of COMFuzzer.
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/turborex/fuzzer.rb', line 149 def initialize(config) @config = config @input = Input.new(config) @growth_medium = [] params = config.fuzzer_configure.target.params params.each do |p| if p.fixed p.container.fixed = p.fixed end TurboRex::Fuzzer::SeedGroup.new() @growth_medium << p.container end params.map {|p| p.seed } end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
147 148 149 |
# File 'lib/turborex/fuzzer.rb', line 147 def config @config end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
146 147 148 |
# File 'lib/turborex/fuzzer.rb', line 146 def input @input end |
Instance Method Details
#generate ⇒ Object
167 168 169 |
# File 'lib/turborex/fuzzer.rb', line 167 def generate @growth_medium.map {|c| c.padding } end |