Sha256: 9b19b96abf04ee79f0164223cacb26a41a14f8557682b3afa150ddf8937ccbc2

Contents?: true

Size: 407 Bytes

Versions: 4

Compression:

Stored size: 407 Bytes

Contents

require 'sinatra'
set :logging, false

configure do
    @@paths ||= (0..50).to_a.map do |i|
        "/vulnerable?vulnerable_#{i.to_s}=stuff#{i.to_s}"
    end
end

@@paths.each.with_index do
    |path, i|
    get( "/#{i}"){ "<a href='#{path}'>Vulnerable</a>" }
end

get '/' do
    @@paths.map { |path| "<a href='#{path}'>Vulnerable</a>" }.join( '<br/>' )
end

get '/vulnerable' do
    params.values.to_s
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
arachni-0.4.1.3 spec/servers/arachni/rpc/server/framework_hpg.rb
arachni-0.4.1.2 spec/servers/arachni/rpc/server/framework_hpg.rb
arachni-0.4.1.1 spec/servers/arachni/rpc/server/framework_hpg.rb
arachni-0.4.1 spec/servers/arachni/rpc/server/framework_hpg.rb