Sha256: 551ea58a66b0bb2e5eaa89127ac10b4313d18980d26aa2eb747d96d02b7f5d8b
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
require 'sinatra' set :logging, false get '/vulnerable' do params.values.to_s end get '/' do html = '' 50.times do |i| html << <<-EOHTML <a href='/#{i}'>Stuff</a> EOHTML end html end get %r{^/(\d+)$} do |id| html = '' 10.times do |i| html << <<-EOHTML <a href='/#{id}/#{i}'>Stuff</a> EOHTML end html end get %r{^/(\d+)/(\d+)$} do |id, id2| html = '' 50.times do |i| html << <<-EOHTML <a href='/#{id}/#{id2}/#{id}'>Stuff</a> EOHTML end html end get %r{^/(\d+)/(\d+)/(\d+)$} do |id, id2, id3| "<a href='/vulnerable?#{id2}_vulnerable_#{id3}=stuff#{id}'>Vulnerable</a>" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
arachni-0.4.2 | spec/servers/arachni/rpc/server/framework_hpg.rb |