Sha256: ce7a22fa383d7c77fa3e6472782d94157e42f01b51c9def423cb50da2b24350b

Contents?: true

Size: 646 Bytes

Versions: 14

Compression:

Stored size: 646 Bytes

Contents

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

get '/' do
    cookies.map { |k, v| k.to_s + v.to_s }.join( "\n" )
end

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

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

get '/set_cookie' do
    cookies['my-cookie'] = 'my-val'
    ''
end

get '/with_other_elements' do
    cookies['mycookie'] ||= 'cookie val'
    <<HTML
    <a href='?link_name=link_val'>A link</a>

    <form action='?form_name=form_val'>
        <input name='input' />
        <input name='input2' />
    </form>
HTML
end

Version data entries

14 entries across 14 versions & 1 rubygems

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