Sha256: e4c2cdee7e6d256d1f3b9eed34fdb6df7cd082257eef8adc7191a4911de89b06
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
require 'spec_helper' describe name_from_filename do include_examples 'plugin' before( :all ) do options.plugins[name] = { 'username_list' => fixtures_path + 'usernames.txt', 'password_list' => fixtures_path + 'passwords.txt', } end def results results_for( name_from_filename ) end context "when given the right params" do it 'locates the form and login successfully' do options.url = web_server_url_for( name_from_filename ) run results.should == { username: 'admin', password: 'pass' } end end context "when being unable to login" do it 'logs nothing' do options.url = web_server_url_for( "#{name_from_filename}_secure" ) run results.should be_nil end end context "when the page isn't protected" do it 'logs nothing' do options.url = web_server_url_for( "#{name_from_filename}_unprotected" ) run results.should be_nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
arachni-0.4.3.2 | spec/plugins/http_dicattack_spec.rb |
arachni-0.4.3.1 | spec/plugins/http_dicattack_spec.rb |
arachni-0.4.3 | spec/plugins/http_dicattack_spec.rb |