wpscan 3.8.16 → 3.8.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/enumeration/cli_options.rb +6 -0
- data/app/finders/users.rb +14 -0
- data/app/finders/wp_version.rb +1 -1
- data/lib/wpscan/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8fd0e8ef31b7a0ec70d1b93c3c70a2e2d62278e7f8e1fd5bdf01ddcc86056a34
|
|
4
|
+
data.tar.gz: c6309c4e33474ad9b8f27db9c8fe7ac11439dbd131bf5931fd21457b8477e390
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d647b59ec39d73f08bd72cf090ae324c91a28e9799d6e65070f3c97bdd279f007ccf561bd23787553770bd49957ddc133592484a79cac9bc99b53049f8e4d90
|
|
7
|
+
data.tar.gz: ac0aa133d13b5365b25714222fa46684a6380cd9dc25832ba90c27e28303d18d133adf768f11777af9eb653e4ee4fbd945e56982943798135a77cf232e218802
|
|
@@ -170,6 +170,12 @@ module WPScan
|
|
|
170
170
|
['--users-detection MODE',
|
|
171
171
|
'Use the supplied mode to enumerate Users, instead of the global (--detection-mode) mode.'],
|
|
172
172
|
choices: %w[mixed passive aggressive], normalize: :to_sym, advanced: true
|
|
173
|
+
),
|
|
174
|
+
OptRegexp.new(
|
|
175
|
+
[
|
|
176
|
+
'--exclude-usernames REGEXP_OR_STRING',
|
|
177
|
+
'Exclude usernames matching the Regexp/string (case insensitive). Regexp delimiters are not required.'
|
|
178
|
+
], options: Regexp::IGNORECASE
|
|
173
179
|
)
|
|
174
180
|
]
|
|
175
181
|
end
|
data/app/finders/users.rb
CHANGED
|
@@ -11,6 +11,16 @@ require_relative 'users/yoast_seo_author_sitemap'
|
|
|
11
11
|
|
|
12
12
|
module WPScan
|
|
13
13
|
module Finders
|
|
14
|
+
# Specific Finders container to filter the usernames found
|
|
15
|
+
# and remove the ones matching ParsedCli.exclude_username if supplied
|
|
16
|
+
class UsersFinders < SameTypeFinders
|
|
17
|
+
def filter_findings
|
|
18
|
+
findings.delete_if { |user| ParsedCli.exclude_usernames.match?(user.username) } if ParsedCli.exclude_usernames
|
|
19
|
+
|
|
20
|
+
findings
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
14
24
|
module Users
|
|
15
25
|
# Users Finder
|
|
16
26
|
class Base
|
|
@@ -28,6 +38,10 @@ module WPScan
|
|
|
28
38
|
Users::AuthorIdBruteForcing.new(target) <<
|
|
29
39
|
Users::LoginErrorMessages.new(target)
|
|
30
40
|
end
|
|
41
|
+
|
|
42
|
+
def finders
|
|
43
|
+
@finders ||= Finders::UsersFinders.new
|
|
44
|
+
end
|
|
31
45
|
end
|
|
32
46
|
end
|
|
33
47
|
end
|
data/app/finders/wp_version.rb
CHANGED
|
@@ -10,7 +10,7 @@ module WPScan
|
|
|
10
10
|
module Finders
|
|
11
11
|
# Specific Finders container to filter the version detected
|
|
12
12
|
# and remove the one with low confidence to avoid false
|
|
13
|
-
# positive when there is not
|
|
13
|
+
# positive when there is not enough information to accurately
|
|
14
14
|
# determine it.
|
|
15
15
|
class WpVersionFinders < UniqueFinders
|
|
16
16
|
def filter_findings
|
data/lib/wpscan/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wpscan
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.8.
|
|
4
|
+
version: 3.8.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- WPScanTeam
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.13.
|
|
19
|
+
version: 0.13.3
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.13.
|
|
26
|
+
version: 0.13.3
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|