Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@kl:~/wpscan# bundle install && rake install
- Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root
- users on this machine.
- Using rake 12.3.2
- Using concurrent-ruby 1.1.4
- Using i18n 1.5.3
- Using minitest 5.11.3
- Using thread_safe 0.3.6
- Using tzinfo 1.2.5
- Using activesupport 5.2.2
- Using public_suffix 3.0.3
- Using addressable 2.5.2
- Using ast 2.4.0
- Using bundler 2.0.1
- Using mini_portile2 2.4.0
- Using nokogiri 1.10.1
- Using opt_parse_validator 0.0.16.6
- Using ruby-progressbar 1.10.0
- Using ffi 1.10.0
- Using ethon 0.12.0
- Using typhoeus 1.3.1
- Using xmlrpc 0.3.0
- Using yajl-ruby 1.4.1
- Using cms_scanner 0.0.41.3
- Using json 2.1.0
- Using docile 1.3.1
- Using simplecov-html 0.10.2
- Using simplecov 0.16.1
- Using tins 1.20.2
- Using term-ansicolor 1.7.1
- Using thor 0.19.4
- Using coveralls 0.8.22
- Using safe_yaml 1.0.4
- Using crack 0.4.3
- Using diff-lcs 1.3
- Using hashdiff 0.3.8
- Using jaro_winkler 1.5.2
- Using parallel 1.13.0
- Using parser 2.6.0.0
- Using powerpack 0.1.2
- Using rainbow 3.0.0
- Using rspec-support 3.8.0
- Using rspec-core 3.8.0
- Using rspec-expectations 3.8.2
- Using rspec-mocks 3.8.0
- Using rspec 3.8.0
- Using rspec-its 1.2.0
- Using unicode-display_width 1.4.1
- Using rubocop 0.64.0
- Using webmock 3.5.1
- Using wpscan 3.4.4 from source at `.`
- Bundle complete! 9 Gemfile dependencies, 48 gems now installed.
- Use `bundle info [gemname]` to see where a bundled gem is installed.
- Running RuboCop...
- Inspecting 253 files
- .............................................................................................................................................................................................................................................................
- 253 files inspected, no offenses detected
- /usr/bin/ruby2.5 -I/var/lib/gems/2.5.0/gems/rspec-support-3.8.0/lib:/var/lib/gems/2.5.0/gems/rspec-core-3.8.0/lib /var/lib/gems/2.5.0/gems/rspec-core-3.8.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
- An error occurred while loading spec_helper.
- Failure/Error: require 'active_support/all'
- LoadError:
- /var/lib/gems/2.5.0/gems/bigdecimal-1.4.3/lib/bigdecimal/util.so: undefined symbol: rmpd_util_str_to_d - /var/lib/gems/2.5.0/gems/bigdecimal-1.4.3/lib/bigdecimal/util.so
- # /var/lib/gems/2.5.0/gems/bigdecimal-1.4.3/lib/bigdecimal/util.rb:9:in `<top (required)>'
- # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/big_decimal/conversions.rb:4:in `<top (required)>'
- # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/numeric/conversions.rb:3:in `<top (required)>'
- # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext/numeric.rb:6:in `<top (required)>'
- # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext.rb:4:in `block in <top (required)>'
- # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext.rb:3:in `each'
- # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/core_ext.rb:3:in `<top (required)>'
- # /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/all.rb:5:in `<top (required)>'
- # ./lib/wpscan.rb:5:in `<top (required)>'
- # ./spec/spec_helper.rb:45:in `<top (required)>'
- # ------------------
- # --- Caused by: ---
- # LoadError:
- # cannot load such file -- active_support/all
- # ./lib/wpscan.rb:5:in `<top (required)>'
- An error occurred while loading ./spec/app/controllers/aliases_spec.rb.
- Failure/Error:
- describe WPScan::Controller::Aliases do
- subject(:controller) { described_class.new }
- let(:target_url) { 'http://ex.lo/' }
- let(:parsed_options) { rspec_parsed_options(cli_args) }
- let(:cli_args) { "--url #{target_url}" }
- before do
- WPScan::Browser.reset
- described_class.parsed_options = parsed_options
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/controllers/aliases_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/controllers/core_spec.rb.
- Failure/Error:
- describe WPScan::Controller::Core do
- subject(:core) { described_class.new }
- let(:target_url) { 'http://ex.lo/' }
- let(:parsed_options) { rspec_parsed_options(cli_args) }
- let(:cli_args) { "--url #{target_url}" }
- before do
- WPScan::Browser.reset
- described_class.reset
- described_class.parsed_options = parsed_options
- NameError:
- uninitialized constant WPScan
- # ./spec/app/controllers/core_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/controllers/custom_directories_spec.rb.
- Failure/Error:
- describe WPScan::Controller::CustomDirectories do
- subject(:controller) { described_class.new }
- let(:target_url) { 'http://ex.lo/' }
- let(:parsed_options) { rspec_parsed_options(cli_args) }
- let(:cli_args) { "--url #{target_url}" }
- before do
- WPScan::Browser.reset
- described_class.parsed_options = parsed_options
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/controllers/custom_directories_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/controllers/enumeration_spec.rb.
- Failure/Error:
- describe WPScan::Controller::Enumeration do
- subject(:controller) { described_class.new }
- let(:target_url) { 'http://wp.lab/' }
- let(:parsed_options) { rspec_parsed_options(cli_args) }
- let(:cli_args) { "--url #{target_url}" }
- before do
- WPScan::Browser.reset
- ## For the --passwords options
- NameError:
- uninitialized constant WPScan
- # ./spec/app/controllers/enumeration_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/controllers/password_attack_spec.rb.
- Failure/Error:
- describe WPScan::Controller::PasswordAttack do
- subject(:controller) { described_class.new }
- let(:target_url) { 'http://ex.lo/' }
- let(:parsed_options) { rspec_parsed_options(cli_args) }
- let(:cli_args) { "--url #{target_url}" }
- before do
- WPScan::Browser.reset
- described_class.parsed_options = parsed_options
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/controllers/password_attack_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/controllers/wp_version_spec.rb.
- Failure/Error:
- describe WPScan::Finders::WpVersionFinders do
- subject(:finders) { described_class.new }
- describe 'filter_findings' do
- context 'when super returns false (nothing found)' do
- before do
- expect_any_instance_of(WPScan::Finders::UniqueFinders).to receive(:filter_findings).and_return(false)
- end
- its(:filter_findings) { should be false }
- NameError:
- uninitialized constant WPScan
- # ./spec/app/controllers/wp_version_spec.rb:8:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/config_backups/known_filenames_spec.rb.
- Failure/Error:
- describe WPScan::Finders::ConfigBackups::KnownFilenames do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('config_backups') }
- let(:opts) { { list: WPScan::DB_DIR.join('config_backups.txt').to_s } }
- describe '#aggressive' do
- before do
- expect(target).to receive(:sub_dir).at_least(1).and_return(false)
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/config_backups/known_filenames_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/config_backups_spec.rb.
- Failure/Error:
- describe WPScan::Finders::ConfigBackups::Base do
- subject(:config_backups) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- describe '#finders' do
- it 'contains the expected finders' do
- expect(config_backups.finders.map { |f| f.class.to_s.demodulize }).to eq %w[KnownFilenames]
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/config_backups_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/db_exports/known_locations_spec.rb.
- Failure/Error:
- describe WPScan::Finders::DbExports::KnownLocations do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/aa/' }
- let(:fixtures) { FINDERS_FIXTURES.join('db_exports') }
- let(:opts) { { list: WPScan::DB_DIR.join('db_exports.txt').to_s } }
- describe '#potential_urls' do
- before do
- expect(target).to receive(:sub_dir).at_least(1).and_return(false)
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/db_exports/known_locations_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/db_exports_spec.rb.
- Failure/Error:
- describe WPScan::Finders::DbExports::Base do
- subject(:db_exports) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- describe '#finders' do
- it 'contains the expected finders' do
- expect(db_exports.finders.map { |f| f.class.to_s.demodulize }).to eq %w[KnownLocations]
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/db_exports_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings/backup_db_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::BackupDB do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'backup_db') }
- let(:wp_content) { 'wp-content' }
- let(:dir_url) { target.url("#{wp_content}/backup-db/") }
- before { expect(target).to receive(:content_dir).at_least(1).and_return(wp_content) }
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings/backup_db_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings/debug_log_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::DebugLog do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'debug_log') }
- let(:wp_content) { 'wp-content' }
- let(:log_url) { target.url("#{wp_content}/debug.log") }
- before { expect(target).to receive(:content_dir).at_least(1).and_return(wp_content) }
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings/debug_log_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings/duplicator_installer_log_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::DuplicatorInstallerLog do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'duplicator_installer_log') }
- let(:filename) { 'installer-log.txt' }
- let(:log_url) { target.url(filename) }
- describe '#aggressive' do
- before do
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings/duplicator_installer_log_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings/emergency_pwd_reset_script_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::EmergencyPwdResetScript do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'emergency_pwd_reset_script') }
- describe '#aggressive' do
- xit
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings/emergency_pwd_reset_script_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings/full_path_disclosure_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::FullPathDisclosure do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'fpd') }
- let(:file_url) { target.url('wp-includes/rss-functions.php') }
- describe '#aggressive' do
- before do
- expect(target).to receive(:sub_dir).at_least(1).and_return(false)
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings/full_path_disclosure_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings/mu_plugins_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::MuPlugins do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'mu_plugins') }
- describe '#passive' do
- xit
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings/mu_plugins_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings/multisite_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::Multisite do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'multisite') }
- describe '#aggressive' do
- xit
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings/multisite_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings/readme_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::Readme do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'readme') }
- describe '#aggressive' do
- before do
- expect(target).to receive(:sub_dir).at_least(1).and_return(false)
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings/readme_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings/registration_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::Registration do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'registration') }
- describe '#aggressive' do
- xit
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings/registration_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings/tmm_db_migrate_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::TmmDbMigrate do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'tmm_db_migrate') }
- describe '#aggressive' do
- xit
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings/tmm_db_migrate_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings/upload_direcrory_listing_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::UploadDirectoryListing do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'upload_directory_listing') }
- let(:wp_content) { 'wp-content' }
- describe '#aggressive' do
- xit
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings/upload_direcrory_listing_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings/upload_sql_dump_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::UploadSQLDump do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('interesting_findings', 'upload_sql_dump') }
- let(:wp_content) { 'wp-content' }
- describe '#aggressive' do
- before { expect(target).to receive(:content_dir).at_least(1).and_return(wp_content) }
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings/upload_sql_dump_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/interesting_findings_spec.rb.
- Failure/Error:
- describe WPScan::Finders::InterestingFindings::Base do
- subject(:files) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- describe '#finders' do
- let(:expected) do
- %w[
- Readme DebugLog FullPathDisclosure
- Multisite MuPlugins Registration UploadDirectoryListing TmmDbMigrate
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/interesting_findings_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/main_theme/css_style_spec.rb.
- Failure/Error:
- describe WPScan::Finders::MainTheme::CssStyle do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { FINDERS_FIXTURES.join('main_theme', 'css_style') }
- describe '#passive' do
- after do
- stub_request(:get, url).to_return(body: File.read(fixtures.join(fixture)))
- expect(finder.passive).to eql @expected
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/main_theme/css_style_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/main_theme/urls_in_homepage_spec.rb.
- Failure/Error:
- describe WPScan::Finders::MainTheme::UrlsInHomepage do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { FINDERS_FIXTURES.join('main_theme', 'urls_in_homepage') }
- it_behaves_like 'App::Finders::WpItems::URLsInHomepage' do
- let(:type) { 'themes' }
- let(:uniq_links) { false }
- let(:uniq_codes) { false }
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/main_theme/urls_in_homepage_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/main_theme/woo_framework_meta_generator_spec.rb.
- Failure/Error:
- describe WPScan::Finders::MainTheme::WooFrameworkMetaGenerator do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { FINDERS_FIXTURES.join('main_theme', 'woo_framework_meta_generator') }
- describe '#passive' do
- after do
- stub_request(:get, url).to_return(body: File.read(fixtures.join(@file)))
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/main_theme/woo_framework_meta_generator_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/main_theme_spec.rb.
- Failure/Error:
- describe WPScan::Finders::MainTheme::Base do
- subject(:main_theme) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- describe '#finders' do
- it 'contains the expected finders' do
- expect(main_theme.finders.map { |f| f.class.to_s.demodulize })
- .to eq %w[CssStyle WooFrameworkMetaGenerator UrlsInHomepage]
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/main_theme_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/medias/attachment_brute_forcing_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Medias::AttachmentBruteForcing do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('medias', 'attachment_brute_forcing') }
- describe '#aggressive' do
- xit
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/medias/attachment_brute_forcing_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/medias_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Medias::Base do
- subject(:media) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- describe '#finders' do
- it 'contains the expected finders' do
- expect(media.finders.map { |f| f.class.to_s.demodulize }).to eq %w[AttachmentBruteForcing]
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/medias_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/plugin_version/readme_spec.rb.
- Failure/Error:
- describe WPScan::Finders::PluginVersion::Readme do
- subject(:finder) { described_class.new(plugin) }
- let(:plugin) { WPScan::Plugin.new('spec', target) }
- let(:target) { WPScan::Target.new('http://wp.lab/') }
- let(:fixtures) { FINDERS_FIXTURES.join('plugin_version', 'readme') }
- def version(number, found_by, confidence)
- WPScan::Version.new(
- number,
- found_by: format('Readme - %s (Aggressive Detection)', found_by),
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/plugin_version/readme_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/plugin_version_spec.rb.
- Failure/Error:
- describe WPScan::Finders::PluginVersion::Base do
- subject(:plugin_version) { described_class.new(plugin) }
- let(:plugin) { WPScan::Plugin.new(slug, target) }
- let(:target) { WPScan::Target.new('http://wp.lab/') }
- let(:default_finders) { %w[Readme] }
- describe '#finders' do
- after do
- expect(target).to receive(:content_dir).and_return('wp-content')
- expect(plugin_version.finders.map { |f| f.class.to_s.demodulize }).to match_array @expected
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/plugin_version_spec.rb:4:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/plugins/body_pattern_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Plugins::BodyPattern do
- it_behaves_like WPScan::Finders::DynamicFinder::WpItems::Finder do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
- let(:expected_all) { df_expected_all['plugins'] }
- let(:item_class) { WPScan::Plugin }
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/plugins/body_pattern_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/plugins/comment_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Plugins::Comment do
- it_behaves_like WPScan::Finders::DynamicFinder::WpItems::Finder do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
- let(:expected_all) { df_expected_all['plugins'] }
- let(:item_class) { WPScan::Plugin }
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/plugins/comment_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/plugins/config_parser_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Plugins::ConfigParser do
- xit
- # it_behaves_like WPScan::Finders::DynamicFinder::WpItems::Finder do
- # subject(:finder) { described_class.new(target) }
- # let(:target) { WPScan::Target.new(url) }
- # let(:url) { 'http://wp.lab/' }
- # let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
- #
- # let(:expected_all) { df_expected_all['plugins'] }
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/plugins/config_parser_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/plugins/header_pattern_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Plugins::HeaderPattern do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
- def plugin(slug)
- WPScan::Plugin.new(slug, target)
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/plugins/header_pattern_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/plugins/javascript_var_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Plugins::JavascriptVar do
- it_behaves_like WPScan::Finders::DynamicFinder::WpItems::Finder do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
- let(:expected_all) { df_expected_all['plugins'] }
- let(:item_class) { WPScan::Plugin }
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/plugins/javascript_var_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/plugins/known_locations_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Plugins::KnownLocations do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('plugins', 'known_locations') }
- describe '#aggressive' do
- xit
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/plugins/known_locations_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/plugins/query_parameter_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Plugins::QueryParameter do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
- describe '#passive' do
- its(:passive) { should be nil }
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/plugins/query_parameter_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/plugins/urls_in_homepage_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Plugins::UrlsInHomepage do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { FINDERS_FIXTURES.join('plugins', 'urls_in_homepage') }
- it_behaves_like 'App::Finders::WpItems::URLsInHomepage' do
- let(:type) { 'plugins' }
- let(:uniq_links) { true }
- let(:uniq_codes) { true }
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/plugins/urls_in_homepage_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/plugins/xpath_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Plugins::Xpath do
- it_behaves_like WPScan::Finders::DynamicFinder::WpItems::Finder do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
- let(:expected_all) { df_expected_all['plugins'] }
- let(:item_class) { WPScan::Plugin }
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/plugins/xpath_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/plugins_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Plugins::Base do
- subject(:plugins) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- describe '#finders' do
- it 'contains the expected finders' do
- expect(plugins.finders.map { |f| f.class.to_s.demodulize })
- .to eq %w[UrlsInHomepage HeaderPattern Comment Xpath BodyPattern JavascriptVar KnownLocations]
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/plugins_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/theme_version/style_spec.rb.
- Failure/Error:
- describe WPScan::Finders::ThemeVersion::Style do
- subject(:finder) { described_class.new(theme) }
- let(:theme) { WPScan::Theme.new('spec', target) }
- let(:target) { WPScan::Target.new('http://wp.lab/') }
- let(:fixtures) { FINDERS_FIXTURES.join('theme_version', 'style') }
- before :all do
- Typhoeus::Config.cache = WPScan::Cache::Typhoeus.new(SPECS.join('cache'))
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/theme_version/style_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/theme_version/woo_framework_meta_generator_spec.rb.
- Failure/Error:
- describe WPScan::Finders::ThemeVersion::WooFrameworkMetaGenerator do
- subject(:finder) { described_class.new(theme) }
- let(:theme) { WPScan::Theme.new(slug, target) }
- let(:target) { WPScan::Target.new('http://wp.lab/') }
- let(:fixtures) { FINDERS_FIXTURES.join('theme_version', 'woo_framework_meta_generator') }
- before do
- expect(target).to receive(:content_dir).and_return('wp-content')
- stub_request(:get, /\.css\z/)
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/theme_version/woo_framework_meta_generator_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/theme_version_spec.rb.
- Failure/Error:
- describe WPScan::Finders::ThemeVersion::Base do
- subject(:theme_version) { described_class.new(theme) }
- let(:theme) { WPScan::Plugin.new(slug, target) }
- let(:target) { WPScan::Target.new('http://wp.lab/') }
- let(:slug) { 'spec' }
- let(:default_finders) { %w[Style WooFrameworkMetaGenerator] }
- describe '#finders' do
- after do
- expect(target).to receive(:content_dir).and_return('wp-content')
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/theme_version_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/themes/known_locations_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Themes::KnownLocations do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('themes', 'known_locations') }
- describe '#aggressive' do
- xit
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/themes/known_locations_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/themes/urls_in_homepage_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Themes::UrlsInHomepage do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { FINDERS_FIXTURES.join('themes', 'urls_in_homepage') }
- it_behaves_like 'App::Finders::WpItems::URLsInHomepage' do
- let(:type) { 'themes' }
- let(:uniq_links) { true }
- let(:uniq_codes) { true }
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/themes/urls_in_homepage_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/themes_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Themes::Base do
- subject(:themes) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- describe '#finders' do
- it 'contains the expected finders' do
- expect(themes.finders.map { |f| f.class.to_s.demodulize })
- .to eq %w[UrlsInHomepage KnownLocations]
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/themes_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/timthumb_version/bad_request_spec.rb.
- Failure/Error:
- describe WPScan::Finders::TimthumbVersion::BadRequest do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Timthumb.new(url) }
- let(:url) { 'http://ex.lo/timthumb.php' }
- let(:fixtures) { FINDERS_FIXTURES.join('timthumb_version', 'bad_request') }
- describe '#aggressive' do
- before { stub_request(:get, url).to_return(body: File.read(fixtures.join(file))) }
- after { expect(finder.aggressive).to eql @expected }
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/timthumb_version/bad_request_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/timthumb_version_spec.rb.
- Failure/Error:
- describe WPScan::Finders::TimthumbVersion::Base do
- subject(:timthumb_version) { described_class.new(target) }
- let(:target) { WPScan::Timthumb.new(url) }
- let(:url) { 'http://ex.lo/timthumb.php' }
- describe '#finders' do
- it 'contains the expected finders' do
- expect(timthumb_version.finders.map { |f| f.class.to_s.demodulize }).to eq %w[BadRequest]
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/timthumb_version_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/timthumbs/known_locations_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Timthumbs::KnownLocations do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('timthumbs', 'known_locations') }
- describe '#aggressive' do
- xit
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/timthumbs/known_locations_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/timthumbs_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Timthumbs::Base do
- subject(:timthumb) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- describe '#finders' do
- it 'contains the expected finders' do
- expect(timthumb.finders.map { |f| f.class.to_s.demodulize }).to eq %w[KnownLocations]
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/timthumbs_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/users/author_id_brute_forcing_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Users::AuthorIdBruteForcing do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { FINDERS_FIXTURES.join('users', 'author_id_brute_forcing') }
- describe '#aggressive' do
- xit
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/users/author_id_brute_forcing_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/users/author_posts_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Users::AuthorPosts do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { FINDERS_FIXTURES.join('users', 'author_posts') }
- describe '#passive' do
- xit
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/users/author_posts_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/users/login_error_messages_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Users::LoginErrorMessages do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { FINDERS_FIXTURES.join('users', 'login_error_messages') }
- describe '#aggressive' do
- xit
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/users/login_error_messages_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/users/oembed_api_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Users::OembedApi do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { FINDERS_FIXTURES.join('users', 'oembed_api') }
- describe '#aggressive' do
- before do
- allow(target).to receive(:sub_dir).and_return(false)
- stub_request(:get, finder.api_url).to_return(body: body)
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/users/oembed_api_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/users/rss_generator_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Users::RSSGenerator do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('users', 'rss_generator') }
- let(:rss_fixture) { File.read(fixtures.join('feed.xml')) }
- describe '#passive, #aggressive' do
- before do
- allow(target).to receive(:sub_dir).and_return(false)
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/users/rss_generator_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/users/wp_json_api_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Users::WpJsonApi do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { FINDERS_FIXTURES.join('users', 'wp_json_api') }
- describe '#aggressive' do
- before { allow(target).to receive(:sub_dir).and_return(false) }
- context 'when only one page of results' do
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/users/wp_json_api_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/users/yoast_seo_author_sitemap_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Users::YoastSeoAuthorSitemap do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:fixtures) { FINDERS_FIXTURES.join('users', 'yoast_seo_author_sitemap') }
- describe '#aggressive' do
- before do
- allow(target).to receive(:sub_dir).and_return(false)
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/users/yoast_seo_author_sitemap_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/users_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Users::Base do
- subject(:user) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- describe '#finders' do
- it 'contains the expected finders' do
- expect(user.finders.map { |f| f.class.to_s.demodulize })
- .to eq %w[AuthorPosts WpJsonApi OembedApi RSSGenerator YoastSeoAuthorSitemap
- AuthorIdBruteForcing LoginErrorMessages]
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/users_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/wp_version/atom_generator_spec.rb.
- Failure/Error:
- describe WPScan::Finders::WpVersion::AtomGenerator do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('wp_version', 'atom_generator') }
- let(:atom_fixture) { File.read(fixtures.join('feed', 'atom')) }
- describe '#passive, #aggressive' do
- before do
- allow(target).to receive(:sub_dir).and_return(false)
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/wp_version/atom_generator_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/wp_version/rdf_generator_spec.rb.
- Failure/Error:
- describe WPScan::Finders::WpVersion::RDFGenerator do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('wp_version', 'rdf_generator') }
- xit
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/wp_version/rdf_generator_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/wp_version/readme_spec.rb.
- Failure/Error:
- describe WPScan::Finders::WpVersion::Readme do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('wp_version', 'readme') }
- let(:readme_url) { url + 'readme.html' }
- describe '#aggressive' do
- before { stub_request(:get, readme_url).to_return(body: File.read(fixtures.join(file))) }
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/wp_version/readme_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/wp_version/rss_generator_spec.rb.
- Failure/Error:
- describe WPScan::Finders::WpVersion::RSSGenerator do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('wp_version', 'rss_generator') }
- xit
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/wp_version/rss_generator_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/wp_version/unique_fingerprinting_spec.rb.
- Failure/Error:
- describe WPScan::Finders::WpVersion::UniqueFingerprinting do
- subject(:finder) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url).extend(CMSScanner::Target::Server::Apache) }
- let(:url) { 'http://ex.lo/' }
- let(:fixtures) { FINDERS_FIXTURES.join('wp_version', 'unique_fingerprinting') }
- xit
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/wp_version/unique_fingerprinting_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/finders/wp_version_spec.rb.
- Failure/Error:
- describe WPScan::Finders::WpVersion::Base do
- subject(:wp_version) { described_class.new(target) }
- let(:target) { WPScan::Target.new(url) }
- let(:url) { 'http://ex.lo/' }
- describe '#finders' do
- let(:expected) { %w[RSSGenerator AtomGenerator RDFGenerator Readme UniqueFingerprinting] }
- let(:expected_dynamic_finders) { WPScan::DB::DynamicFinders::Wordpress.versions_finders_configs.keys }
- NameError:
- uninitialized constant WPScan
- # ./spec/app/finders/wp_version_spec.rb:4:in `<top (required)>'
- An error occurred while loading ./spec/app/models/interesting_finding_spec.rb.
- Failure/Error:
- describe WPScan::InterestingFinding do
- it_behaves_like WPScan::References do
- subject(:finding) { described_class.new('http://e.org/file.php', opts) }
- let(:opts) { { references: references } }
- let(:references) { {} }
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/models/interesting_finding_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/models/media_spec.rb.
- Failure/Error:
- describe WPScan::Media do
- subject(:media) { described_class.new(url) }
- let(:url) { 'http://e.oeg/?attachment_id=2' }
- describe '#new' do
- its(:url) { should eql url }
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/models/media_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/models/plugin_spec.rb.
- Failure/Error:
- describe WPScan::Plugin do
- subject(:plugin) { described_class.new(slug, blog, opts) }
- let(:slug) { 'spec' }
- let(:blog) { WPScan::Target.new('http://wp.lab/') }
- let(:opts) { {} }
- before { expect(blog).to receive(:content_dir).and_return('wp-content') }
- describe '#new' do
- its(:url) { should eql 'http://wp.lab/wp-content/plugins/spec/' }
- NameError:
- uninitialized constant WPScan
- # ./spec/app/models/plugin_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/models/theme_spec.rb.
- Failure/Error:
- describe WPScan::Theme do
- subject(:theme) { described_class.new(slug, blog, opts) }
- let(:slug) { 'spec' }
- let(:blog) { WPScan::Target.new('http://wp.lab/') }
- let(:opts) { {} }
- let(:fixtures) { FIXTURES.join('models', 'theme') }
- before { expect(blog).to receive(:content_dir).at_least(1).and_return('wp-content') }
- describe '#new' do
- NameError:
- uninitialized constant WPScan
- # ./spec/app/models/theme_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/models/timthumb_spec.rb.
- Failure/Error:
- describe WPScan::Timthumb do
- subject(:timthumb) { described_class.new(url, opts) }
- let(:url) { 'http://wp.lab/wp-content/timthumb.php' }
- let(:fixtures) { FIXTURES.join('models', 'timthumb') }
- let(:opts) { {} }
- describe '#new' do
- its(:url) { should eql url }
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/models/timthumb_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/models/wp_item_spec.rb.
- Failure/Error:
- describe WPScan::WpItem do
- subject(:wp_item) { described_class.new(slug, blog, opts) }
- let(:slug) { 'test_item' }
- let(:blog) { WPScan::Target.new(url) }
- let(:url) { 'http://wp.lab/' }
- let(:opts) { {} }
- its(:blog) { should eql blog }
- describe '#new' do
- NameError:
- uninitialized constant WPScan
- # ./spec/app/models/wp_item_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/models/wp_version_spec.rb.
- Failure/Error:
- describe WPScan::WpVersion do
- describe '#new' do
- context 'when invalid number' do
- it 'raises an error' do
- expect { described_class.new('aa') }.to raise_error WPScan::InvalidWordPressVersion
- end
- end
- context 'when valid number' do
- it 'create the instance' do
- NameError:
- uninitialized constant WPScan
- # ./spec/app/models/wp_version_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/models/xml_rpc_spec.rb.
- Failure/Error:
- describe WPScan::XMLRPC do
- subject(:xml_rpc) { described_class.new('http//e.org/xmlrpc.php') }
- describe '#references' do
- its(:references) { should_not be_empty }
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/app/models/xml_rpc_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/app/views_spec.rb.
- Failure/Error: it_behaves_like 'App::Views::WpVersion'
- ArgumentError:
- Could not find shared examples "App::Views::WpVersion"
- # ./spec/app/views_spec.rb:10:in `block (3 levels) in <top (required)>'
- # ./spec/app/views_spec.rb:9:in `block (2 levels) in <top (required)>'
- # ./spec/app/views_spec.rb:8:in `each'
- # ./spec/app/views_spec.rb:8:in `block in <top (required)>'
- # ./spec/app/views_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/browser_spec.rb.
- Failure/Error:
- describe WPScan::Browser do
- subject(:browser) { described_class.instance(options) }
- before { described_class.reset }
- let(:options) { {} }
- describe '#user_agents_list' do
- context 'when not set' do
- its(:user_agents_list) { should eql WPScan::DB_DIR.join('user-agents.txt').to_s }
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/browser_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/db/dynamic_finders/base_spec.rb.
- Failure/Error:
- describe WPScan::DB::DynamicFinders::Base do
- subject(:dynamic_finders) { described_class }
- # Handled in spec/lib/db/dynamic_finders/plugin and wordpress
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/db/dynamic_finders/base_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/db/dynamic_finders/plugin_spec.rb.
- Failure/Error:
- describe WPScan::DB::DynamicFinders::Plugin do
- subject(:dynamic_finders) { described_class }
- describe '.finders_configs' do
- context 'when the given class is not allowed' do
- it 'returns an empty hash' do
- expect(subject.finder_configs('aaaa')).to eql({})
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/db/dynamic_finders/plugin_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/db/dynamic_finders/theme_spec.rb.
- Failure/Error:
- describe WPScan::DB::DynamicFinders::Theme do
- subject(:dynamic_finders) { described_class }
- xit
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/db/dynamic_finders/theme_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/db/dynamic_finders/wordpress_spec.rb.
- Failure/Error:
- describe WPScan::DB::DynamicFinders::Wordpress do
- subject(:dynamic_finders) { described_class }
- xit
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/db/dynamic_finders/wordpress_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/db/fingerprints_spec.rb.
- Failure/Error:
- describe WPScan::DB::Fingerprints do
- describe '#unique_fingerprints' do
- # Handled in #wp_unique_fingerprints
- end
- describe '.wp_fingerprints' do
- it 'returns the expected value' do
- expect(described_class.wp_fingerprints).to eql(
- 'path-1' => {
- 'hash-1' => %w[4.0 3.8],
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/db/fingerprints_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/db/plugin_spec.rb.
- Failure/Error:
- describe WPScan::DB::Plugin do
- describe '#vulnerabilities' do
- # Handled in spec/app/models/plugin_spec
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/db/plugin_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/db/plugins_spec.rb.
- Failure/Error:
- describe WPScan::DB::Plugins do
- subject(:plugins) { described_class }
- describe '#all_slugs' do
- its(:all_slugs) { should eql %w[no-vulns-popular vulnerable-not-popular] }
- end
- describe '#popular_slugs' do
- its(:popular_slugs) { should eql %w[no-vulns-popular] }
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/db/plugins_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/db/theme_spec.rb.
- Failure/Error:
- describe WPScan::DB::Theme do
- describe '#vulnerabilities' do
- # Handled in spec/app/models/theme_spec
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/db/theme_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/db/themes_spec.rb.
- Failure/Error:
- describe WPScan::DB::Themes do
- subject(:themes) { described_class }
- describe '#all_slugs' do
- its(:all_slugs) { should eql %w[no-vulns-popular dignitas-themes yaaburnee-themes] }
- end
- describe '#popular_slugs' do
- its(:popular_slugs) { should eql %w[no-vulns-popular dignitas-themes] }
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/db/themes_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/db/wp_item_spec.rb.
- Failure/Error:
- describe WPScan::DB::WpItem do
- describe '#vulnerabilities' do
- # Handled in spec/app/models/plugin_spec
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/db/wp_item_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/db/wp_items_spec.rb.
- Failure/Error:
- describe WPScan::DB::WpItems do
- # Handled in plugins_spec & themes_spec
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/db/wp_items_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/db/wp_version_spec.rb.
- Failure/Error:
- describe WPScan::DB::Version do
- describe '#vulnerabilities' do
- # Handled in spec/app/models/wp_version_spec
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/db/wp_version_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/finders/dynamic_finder/plugin_version_spec.rb.
- Failure/Error: YAML.safe_load(File.read(DYNAMIC_FINDERS_FIXTURES.join('expected.yml')))
- NameError:
- uninitialized constant DYNAMIC_FINDERS_FIXTURES
- # ./spec/spec_helper.rb:26:in `df_expected_all'
- # ./spec/lib/finders/dynamic_finder/plugin_version_spec.rb:15:in `<top (required)>'
- An error occurred while loading ./spec/lib/finders/dynamic_finder/version/body_pattern_spec.rb.
- Failure/Error:
- describe WPScan::Finders::DynamicFinder::Version::BodyPattern do
- module WPScan
- module Finders
- module Version
- # Needed to be able to test the below
- module Rspec
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/finders/dynamic_finder/version/body_pattern_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/finders/dynamic_finder/version/comment_spec.rb.
- Failure/Error:
- describe WPScan::Finders::DynamicFinder::Version::Comment do
- module WPScan
- module Finders
- module Version
- # Needed to be able to test the below
- module Rspec
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/finders/dynamic_finder/version/comment_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/finders/dynamic_finder/version/config_parser_spec.rb.
- Failure/Error:
- describe WPScan::Finders::DynamicFinder::Version::ConfigParser do
- module WPScan
- module Finders
- module Version
- # Needed to be able to test the below
- module Rspec
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/finders/dynamic_finder/version/config_parser_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/finders/dynamic_finder/version/header_pattern_spec.rb.
- Failure/Error:
- describe WPScan::Finders::DynamicFinder::Version::HeaderPattern do
- module WPScan
- module Finders
- module Version
- # Needed to be able to test the below
- module Rspec
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/finders/dynamic_finder/version/header_pattern_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/finders/dynamic_finder/version/javascript_var_spec.rb.
- Failure/Error:
- describe WPScan::Finders::DynamicFinder::Version::JavascriptVar do
- module WPScan
- module Finders
- module Version
- # Needed to be able to test the below
- module Rspec
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/finders/dynamic_finder/version/javascript_var_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/finders/dynamic_finder/version/query_parameter_spec.rb.
- Failure/Error:
- describe WPScan::Finders::DynamicFinder::Version::QueryParameter do
- module WPScan
- module Finders
- module Version
- # Needed to be able to test the below
- module Rspec
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/finders/dynamic_finder/version/query_parameter_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/finders/dynamic_finder/version/xpath_spec.rb.
- Failure/Error:
- describe WPScan::Finders::DynamicFinder::Version::Xpath do
- module WPScan
- module Finders
- module Version
- # Needed to be able to test the below
- module Rspec
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/finders/dynamic_finder/version/xpath_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/finders/dynamic_finder/wp_items/finder_spec.rb.
- Failure/Error:
- describe WPScan::Finders::DynamicFinder::WpItems::Finder do
- # Handled in spec/shared_examples/dynamic_finders/wp_items.rb
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/finders/dynamic_finder/wp_items/finder_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/finders/dynamic_finder/wp_version_spec.rb.
- Failure/Error: YAML.safe_load(File.read(DYNAMIC_FINDERS_FIXTURES.join('expected.yml')))
- NameError:
- uninitialized constant DYNAMIC_FINDERS_FIXTURES
- # ./spec/spec_helper.rb:26:in `df_expected_all'
- # ./spec/lib/finders/dynamic_finder/wp_version_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/finders/finder/wp_version/smart_url_checker_spec.rb.
- Failure/Error:
- describe WPScan::Finders::Finder::WpVersion::SmartURLChecker do
- xit
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/finders/finder/wp_version/smart_url_checker_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/target_spec.rb.
- Failure/Error:
- describe WPScan::Target do
- subject(:target) { described_class.new(url) }
- let(:url) { 'http://ex.lo' }
- it_behaves_like WPScan::Target::Platform::WordPress
- describe 'xmlrpc' do
- before do
- allow(target).to receive(:sub_dir)
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/target_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/vulnerability_spec.rb.
- Failure/Error:
- describe WPScan::Vulnerability do
- subject(:vuln) { described_class.new(title, references) }
- let(:title) { 'Test Vuln' }
- let(:references) { {} }
- it_behaves_like WPScan::References
- describe '#load_from_json' do
- # Handled in spec/app/models/wp_version_spec#vulnerabilities
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/vulnerability_spec.rb:1:in `<top (required)>'
- An error occurred while loading ./spec/lib/wpscan_spec.rb.
- Failure/Error:
- describe WPScan do
- it 'has a version number' do
- expect(WPScan::VERSION).not_to be nil
- end
- describe '#app_name' do
- it 'returns the overriden string' do
- expect(WPScan.app_name).to eql 'wpscan'
- end
- end
- NameError:
- uninitialized constant WPScan
- # ./spec/lib/wpscan_spec.rb:1:in `<top (required)>'
- No examples found.
- Finished in 0.00052 seconds (files took 7.42 seconds to load)
- 0 examples, 0 failures, 102 errors occurred outside of examples
- Coverage report generated for RSpec to /root/wpscan/coverage. 1 / 28 LOC (3.57%) covered.
- /usr/bin/ruby2.5 -I/var/lib/gems/2.5.0/gems/rspec-support-3.8.0/lib:/var/lib/gems/2.5.0/gems/rspec-core-3.8.0/lib /var/lib/gems/2.5.0/gems/rspec-core-3.8.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed
- root@kl:~/wpscan#
- root@kl:~/wpscan#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement