Testing Plugin Location Detection System in WPScan
This test suite validates the KnownLocations plugin finder functionality in WPScan, focusing on aggressive scanning capabilities. It establishes the foundation for testing plugin detection through known filesystem locations and URL patterns. The tests ensure accurate WordPress plugin discovery through predefined location checks.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
wpscanteam/wpscan
spec/app/finders/plugins/known_locations_spec.rb
# frozen_string_literal: true
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