Sha256: bc7a5884ec869b0ac4ef2b8a9eada74583b4c65ebd86de152dad596bccf25dbd

Contents?: true

Size: 734 Bytes

Versions: 8

Compression:

Stored size: 734 Bytes

Contents

require 'sinatra'
require 'sinatra/contrib'
set :logging, false

get '/' do
    cookies[:cookie1] = 'foo'
   <<HTML
    <a href='?foo=bar'>Link</a>
    <form>
        <input name='input1' />
    </form>
HTML
end

get '/non_text_content_type' do
    headers 'Content-Type' => "foo"
end

get '/new_form' do
    <<HTML
    <form>
        <input name='input2' />
    </form>
HTML
end

get '/new_link' do
    <<HTML
    <a href='?link_param=bar2'>Link</a>
HTML
end

get '/new_cookie' do
    cookies[:new_cookie] = 'hua!'
    ''
end

get '/redirect' do
    ''
end

get '/elems' do
    <<-EOHTML
    <a href='/stuff'></a>
    EOHTML
end

get '/train/redirect' do
    redirect '/train/redirected?msg=blah'
end

get '/train/redirected' do
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
arachni-0.4.5.2 spec/support/servers/arachni/trainer.rb
arachni-0.4.5.1 spec/support/servers/arachni/trainer.rb
arachni-0.4.5 spec/support/servers/arachni/trainer.rb
arachni-0.4.4 spec/support/servers/arachni/trainer.rb
arachni-0.4.3.2 spec/support/servers/arachni/trainer.rb
arachni-0.4.3.1 spec/support/servers/arachni/trainer.rb
arachni-0.4.3 spec/support/servers/arachni/trainer.rb
arachni-0.4.2 spec/servers/arachni/trainer.rb