Class: WPScan::Finders::InterestingFindings::Registration
- Defined in:
- app/finders/interesting_findings/registration.rb
Overview
Registration Enabled checker
Constant Summary
Constants inherited from Finder
Instance Attribute Summary
Attributes inherited from Finder
Instance Method Summary collapse
Methods inherited from Finder
#browser, #create_progress_bar, #found_by, #hydra, #initialize, #titleize
Constructor Details
This class inherits a constructor from WPScan::Finders::Finder
Instance Method Details
#aggressive(_opts = {}) ⇒ InterestingFinding
14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/finders/interesting_findings/registration.rb', line 14 def aggressive(_opts = {}) res = Browser.get_and_follow_location(target.registration_url) return unless res.code == 200 return if res.html.css('form#setupform').empty? && res.html.css('form#registerform').empty? target.registration_enabled = true Model::Registration.new(res.effective_url, confidence: 100, found_by: DIRECT_ACCESS) end |
#passive(_opts = {}) ⇒ InterestingFinding
9 10 11 |
# File 'app/finders/interesting_findings/registration.rb', line 9 def passive(_opts = {}) # Maybe check in the homepage if there is the registration url ? end |