Sha256: 1f0402f6de1dda1058c4047a99e23fe0ea26e3fb8260a51bf24d0fdaa2951679

Contents?: true

Size: 954 Bytes

Versions: 1

Compression:

Stored size: 954 Bytes

Contents

require_relative '../../../spec_helper'

describe name_from_filename do
    include_examples 'plugin'

    before( :all ) do
        options.url = url
        options.audit :forms

        # this module uses the least amount of seeds, should save us some time
        framework.modules.load :os_cmd_injection_timing
    end

    def results
        framework.auditstore.issues.map.with_index do |issue, idx|
            next if issue.var != 'untrusted_input'

            issue.variations.map( &:verification ).uniq == [true]
            issue.variations.first.remarks[:meta_analysis].should be_true

            {
                'hash'   => issue.digest,
                'index'  => idx + 1,
                'url'    => issue.url,
                'name'   => issue.name,
                'var'    => issue.var,
                'elem'   => issue.elem,
                'method' => issue.method
            }
        end.compact
    end

    easy_test
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
arachni-0.4.2 spec/plugins/meta/remedies/timing_attacks_spec.rb