Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/spec/app/finders/interesting_findings_spec.rb
486 views
1
# frozen_string_literal: true
2
3
describe WPScan::Finders::InterestingFindings::Base do
4
subject(:files) { described_class.new(target) }
5
let(:target) { WPScan::Target.new(url) }
6
let(:url) { 'http://ex.lo/' }
7
8
describe '#finders' do
9
let(:expected) do
10
%w[
11
Readme DebugLog FullPathDisclosure
12
Multisite MuPlugins Registration UploadDirectoryListing TmmDbMigrate
13
UploadSQLDump PHPDisabled
14
]
15
end
16
17
it 'contains the expected finders' do
18
expect(files.finders.map { |f| f.class.to_s.demodulize }).to include(*expected)
19
end
20
end
21
end
22
23