Sha256: c1cb064e70c6301d8207e2356d58e3c9bec2326f03943213c3d9b08c6906350c
Contents?: true
Size: 841 Bytes
Versions: 14
Compression:
Stored size: 841 Bytes
Contents
Factory.define :vector do |type = :Form| Arachni::Element.const_get( type ).new( url: 'http://test.com', inputs: { stuff: 1 } ) end Factory.alias :passive_vector, :vector Factory.define :active_vector do v = Factory[:vector] v.affected_input_name = :stuff v.affected_input_value = 2 v.seed = 2 v end Factory.define :unique_active_vector do |type = :Form| v = Factory.create(:vector, type) v.affected_input_name = rand(9999).to_s + rand(9999).to_s v.affected_input_value = 2 v.seed = 2 v end Factory.define :body_vector do Arachni::Element::Body.new Factory[:page].url end Factory.define :server_vector do Arachni::Element::Server.new Factory[:response].url end Factory.define :path_vector do Arachni::Element::Path.new Factory[:response].url end
Version data entries
14 entries across 14 versions & 1 rubygems