Sha256: 03fdff60dcc2f22af71dc788831399921372b03dd470659327ccd08250493a55

Contents?: true

Size: 798 Bytes

Versions: 4

Compression:

Stored size: 798 Bytes

Contents

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

get '/true' do
    out = case params[:rdiff]
        when 'blahbad'
            'Could not find any results, bugger off!'
        when 'blahgood', 'blah'
            '1 item found: Blah blah blah...'
        else
            'No idea what you want mate...'
    end

    <<-EOHTML
    #{rand(9999999)}
    <a href='?rdiff=blah'>Inject here</a>
    #{out}
EOHTML

end

get '/false' do
    out = case params[:rdiff]
        when 'blahgood', 'blahbad'
            'Could not find any results, bugger off!'
        when 'blah'
            '1 item found: Blah blah blah...'
        else
            'No idea what you want mate...'
    end

    <<-EOHTML
    #{rand(9999999)}
    <a href='?rdiff=blah'>Inject here</a>
    #{out}
EOHTML
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
arachni-0.4.5.2 spec/support/servers/arachni/element/capabilities/auditable/rdiff.rb
arachni-0.4.5.1 spec/support/servers/arachni/element/capabilities/auditable/rdiff.rb
arachni-0.4.5 spec/support/servers/arachni/element/capabilities/auditable/rdiff.rb
arachni-0.4.4 spec/support/servers/arachni/element/capabilities/auditable/rdiff.rb