Class: WPScan::Finders::UsersFinders

Inherits:
SameTypeFinders
  • Object
show all
Defined in:
app/finders/users.rb

Overview

Specific Finders container to filter the usernames found and remove the ones matching ParsedCli.exclude_username if supplied

Instance Method Summary collapse

Instance Method Details

#filter_findingsObject



17
18
19
20
21
# File 'app/finders/users.rb', line 17

def filter_findings
  findings.delete_if { |user| ParsedCli.exclude_usernames.match?(user.username) } if ParsedCli.exclude_usernames

  findings
end