cms_scanner 0.0.41.8 → 0.0.41.9
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/lib/cms_scanner.rb +1 -1
- data/lib/cms_scanner/browser/options.rb +4 -5
- data/lib/cms_scanner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f8a08db554fc79d30135e3250569454f9b4d07b2899a436ae8065a5e9dc029d
|
|
4
|
+
data.tar.gz: 45a05783fdac31c93a69a988e26759f6854a9d0b58c6c0a77d23ccbee3d6902d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '08d4b7c12c8bec00e255f83a8049cdc4ace640d6bd6c15b86d7bf2a372efe417719a0f717de1d40c06a02008b440066bb4dabfd3ff2189ce4c1bded5a8551d1a'
|
|
7
|
+
data.tar.gz: 16a1e0fec3dcff040189de7dbb33e50710fa4cb762da49debaadfd626bb743579bd18c41561b108a166a583ff270b391e988d60a2e6b3df304765d2ccb9adaa5
|
data/lib/cms_scanner.rb
CHANGED
|
@@ -27,8 +27,9 @@ module CMSScanner
|
|
|
27
27
|
"#{NS} v#{NS::VERSION}"
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
# @return [ Typhoeus::Hydra ]
|
|
30
31
|
def hydra
|
|
31
|
-
|
|
32
|
+
Typhoeus::Hydra.new(max_concurrency: max_threads || 1)
|
|
32
33
|
end
|
|
33
34
|
|
|
34
35
|
# @param [ Hash ] options
|
|
@@ -38,16 +39,14 @@ module CMSScanner
|
|
|
38
39
|
end
|
|
39
40
|
end
|
|
40
41
|
|
|
41
|
-
# Set the threads attribute
|
|
42
|
-
# the max_concurrency of Typhoeus::Hydra
|
|
43
|
-
#
|
|
42
|
+
# Set the threads attribute
|
|
44
43
|
# If the throttle attribute is > 0, max_threads will be forced to 1
|
|
45
44
|
#
|
|
46
45
|
# @param [ Integer ] number
|
|
47
46
|
def max_threads=(number)
|
|
48
47
|
@max_threads = number.to_i.positive? && throttle.zero? ? number.to_i : 1
|
|
49
48
|
|
|
50
|
-
hydra.max_concurrency = @max_threads
|
|
49
|
+
# hydra.max_concurrency = @max_threads
|
|
51
50
|
end
|
|
52
51
|
|
|
53
52
|
# @return [ String ] The user agent
|
data/lib/cms_scanner/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cms_scanner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.41.
|
|
4
|
+
version: 0.0.41.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- WPScanTeam
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-03-
|
|
11
|
+
date: 2019-03-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|