wpscan 3.6.0 → 3.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/wpscan/db/updater.rb +3 -2
- data/lib/wpscan/helper.rb +6 -4
- data/lib/wpscan/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 459148fa0c668df5a304b762d29083116206143351b769300d518500a9a87e3b
|
4
|
+
data.tar.gz: 4a641fb29db8caf1a5dd33b48112bc167683b5d508416f5843e7d40a2a729884
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96783cf55c79ff8221d20a8c55f8a29ccd1032e8ca83d55a16aebeae2fd791bd6c02e695a6ddbc03afe80a143dfe0b3bc213f93c8345bf39396a43d1baef6b12
|
7
|
+
data.tar.gz: 0f6dfee9fc37092b97fdc5976d170bb6126683ee640a3ae3ab244a7b8c6d3767d61f5338427c489f72592e317c844cb1bdfcf6ff23599274332ca878bf205f23
|
data/README.md
CHANGED
@@ -17,7 +17,6 @@
|
|
17
17
|
<a href="https://badge.fury.io/rb/wpscan" target="_blank"><img src="https://badge.fury.io/rb/wpscan.svg"></a>
|
18
18
|
<a href="https://travis-ci.org/wpscanteam/wpscan" target="_blank"><img src="https://travis-ci.org/wpscanteam/wpscan.svg?branch=master"></a>
|
19
19
|
<a href="https://codeclimate.com/github/wpscanteam/wpscan" target="_blank"><img src="https://codeclimate.com/github/wpscanteam/wpscan/badges/gpa.svg"></a>
|
20
|
-
<a href="https://www.patreon.com/wpscan" target="_blank"><img src="https://img.shields.io/badge/patreon-donate-green.svg"></a>
|
21
20
|
</p>
|
22
21
|
|
23
22
|
# INSTALL
|
data/lib/wpscan/db/updater.rb
CHANGED
@@ -64,11 +64,12 @@ module WPScan
|
|
64
64
|
# @return [ Hash ] The params for Typhoeus::Request
|
65
65
|
# @note Those params can't be overriden by CLI options
|
66
66
|
def request_params
|
67
|
-
{
|
67
|
+
@request_params ||= {
|
68
68
|
timeout: 600,
|
69
69
|
connecttimeout: 300,
|
70
70
|
accept_encoding: 'gzip, deflate',
|
71
|
-
cache_ttl: 0
|
71
|
+
cache_ttl: 0,
|
72
|
+
headers: { 'User-Agent' => Browser.instance.default_user_agent }
|
72
73
|
}
|
73
74
|
end
|
74
75
|
|
data/lib/wpscan/helper.rb
CHANGED
@@ -6,12 +6,14 @@ rescue StandardError => e
|
|
6
6
|
raise "JSON parsing error in #{file} #{e}"
|
7
7
|
end
|
8
8
|
|
9
|
-
#
|
9
|
+
# Sanitize and classify a slug
|
10
10
|
# @note As a class can not start with a digit or underscore, a D_ is
|
11
|
-
#
|
12
|
-
#
|
11
|
+
# put as a prefix in such case. Ugly but well :x
|
12
|
+
# Not only used to classify slugs though, but Dynamic Finder names as well
|
13
|
+
#
|
14
|
+
# @return [ Symbol ]
|
13
15
|
def classify_slug(slug)
|
14
|
-
classified = slug.to_s.
|
16
|
+
classified = slug.to_s.gsub(/[^a-z\d\-]/i, '-').gsub(/\-{1,}/, '_').camelize.to_s
|
15
17
|
classified = "D_#{classified}" if classified[0] =~ /\d/
|
16
18
|
|
17
19
|
classified.to_sym
|
data/lib/wpscan/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wpscan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WPScanTeam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cms_scanner
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.73.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
124
|
+
version: 0.73.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop-performance
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|