Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/spec/app/finders/medias/attachment_brute_forcing_spec.rb
1483 views
1
# frozen_string_literal: true
2
3
describe WPScan::Finders::Medias::AttachmentBruteForcing do
4
subject(:finder) { described_class.new(target) }
5
let(:target) { WPScan::Target.new(url) }
6
let(:url) { 'http://ex.lo/' }
7
let(:fixtures) { FINDERS_FIXTURES.join('medias', 'attachment_brute_forcing') }
8
9
describe '#aggressive' do
10
xit
11
end
12
13
describe '#target_urls' do
14
it 'returns the expected urls' do
15
expect(finder.target_urls(range: (1..2))).to eql(
16
"#{url}?attachment_id=1" => 1,
17
"#{url}?attachment_id=2" => 2
18
)
19
end
20
end
21
end
22
23