Testing Plugin Query Parameter Detection in WPScan
This test suite evaluates the QueryParameter plugin finder functionality in WPScan, focusing on passive and aggressive detection methods. The tests verify the behavior of plugin version detection through query parameter analysis, ensuring reliable WordPress plugin discovery.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
wpscanteam/wpscan
spec/app/finders/plugins/query_parameter_spec.rb
# frozen_string_literal: true
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
describe '#aggressive' do
xit
end
end