Sha256: 068fabafbc50ec83bd4f3ef4cfec734edeede97bfe48a71d717c01352a79ee21

Contents?: true

Size: 430 Bytes

Versions: 12

Compression:

Stored size: 430 Bytes

Contents

require 'yaml'
require 'sinatra'
set :logging, false

get '/' do
    params.to_s
end

get '/submit' do
    params.to_hash.to_yaml
end

get '/sleep' do
    sleep 2
    <<-EOHTML
    <a href='?input=blah'>Inject here</a>
    #{params[:input]}
    EOHTML
end

get '/refreshable' do
    <<HTML
    <a href="/refreshable?param_name=stuff">Irrelevant</a>
    <a href="/link?param_name=stuff&nonce=#{rand(999)}">Refreshable</a>
HTML
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
arachni-0.4.5.2 spec/support/servers/arachni/element/link.rb
arachni-0.4.5.1 spec/support/servers/arachni/element/link.rb
arachni-0.4.5 spec/support/servers/arachni/element/link.rb
arachni-0.4.4 spec/support/servers/arachni/element/link.rb
arachni-0.4.3.2 spec/support/servers/arachni/element/link.rb
arachni-0.4.3.1 spec/support/servers/arachni/element/link.rb
arachni-0.4.3 spec/support/servers/arachni/element/link.rb
arachni-0.4.2 spec/servers/arachni/element/link.rb
arachni-0.4.1.3 spec/servers/arachni/element/link.rb
arachni-0.4.1.2 spec/servers/arachni/element/link.rb
arachni-0.4.1.1 spec/servers/arachni/element/link.rb
arachni-0.4.1 spec/servers/arachni/element/link.rb