Sha256: 655f1405924a1cbea32acf6ab22df02276cdcc5314521f12a782b37312f334e3

Contents?: true

Size: 513 Bytes

Versions: 7

Compression:

Stored size: 513 Bytes

Contents

require 'sinatra'

get '/' do
    'Stuff'
end

get '/true' do
    wait = params[:sleep].to_f
    wait /= 1000.0 if params[:mili] == 'true'

    sleep( wait )

<<-EOHTML
    <a href='?sleep=0&mili=#{params[:mili]}'>Inject here</a>
EOHTML
end

get '/add' do
    sleep( params[:sleep].to_f - 1 ).to_s
    'Stuff'
end

get '/sleep' do
    sleep 10
    'Stuff'
end

get '/verification_fail' do
    @@called ||= false

    if !@@called
        sleep params[:sleep].to_f
        @@called = true
    end

    'Stuff'
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arachni-1.0.6 spec/support/servers/arachni/element/capabilities/analyzable/timeout.rb
arachni-1.0.5 spec/support/servers/arachni/element/capabilities/analyzable/timeout.rb
arachni-1.0.4 spec/support/servers/arachni/element/capabilities/analyzable/timeout.rb
arachni-1.0.3 spec/support/servers/arachni/element/capabilities/analyzable/timeout.rb
arachni-1.0.2 spec/support/servers/arachni/element/capabilities/analyzable/timeout.rb
arachni-1.0.1 spec/support/servers/arachni/element/capabilities/analyzable/timeout.rb
arachni-1.0 spec/support/servers/arachni/element/capabilities/analyzable/timeout.rb