cms_scanner 0.0.41.8 → 0.0.41.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6ead32d39d99e93ca222b6218def157b9df959333c9ad037e2ccb5c4436fbad
4
- data.tar.gz: daa4e8c9fbc85bf84e4c7dbba305e1949332e80ae0c08cafb87d62d0dc38157c
3
+ metadata.gz: 2f8a08db554fc79d30135e3250569454f9b4d07b2899a436ae8065a5e9dc029d
4
+ data.tar.gz: 45a05783fdac31c93a69a988e26759f6854a9d0b58c6c0a77d23ccbee3d6902d
5
5
  SHA512:
6
- metadata.gz: 061f694d11e45aea18399bcf8227078fa09e9ca2d2c43170432572e6cbf31194834cdbbb8d01b96dbd14cfa375907d7016f58dc48047dd00096a3c22d677f0a0
7
- data.tar.gz: ef230472af7a5fa455ff40e633fa17a537c38a6b43f2e4f8a42531228711cd11a3aa6511d7d2f7f8ba8f0c4fe01988b1949fb4f801265083a353cb6f0bd6fbb2
6
+ metadata.gz: '08d4b7c12c8bec00e255f83a8049cdc4ace640d6bd6c15b86d7bf2a372efe417719a0f717de1d40c06a02008b440066bb4dabfd3ff2189ce4c1bded5a8551d1a'
7
+ data.tar.gz: 16a1e0fec3dcff040189de7dbb33e50710fa4cb762da49debaadfd626bb743579bd18c41561b108a166a583ff270b391e988d60a2e6b3df304765d2ccb9adaa5
@@ -149,7 +149,7 @@ module CMSScanner
149
149
  verbose: controllers.first.parsed_options[:verbose] ||
150
150
  run_error_exit_code == NS::ExitCode::EXCEPTION)
151
151
  ensure
152
- Browser.instance.hydra.abort
152
+ # Browser.instance.hydra.abort
153
153
 
154
154
  formatter.beautify
155
155
  end
@@ -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
- @hydra ||= Typhoeus::Hydra.new(max_concurrency: max_threads || 1)
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 and update
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
@@ -1,4 +1,4 @@
1
1
  # Version
2
2
  module CMSScanner
3
- VERSION = '0.0.41.8'.freeze
3
+ VERSION = '0.0.41.9'.freeze
4
4
  end
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.8
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-16 00:00:00.000000000 Z
11
+ date: 2019-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri