cms_scanner 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cms_scanner/references.rb +4 -34
- data/lib/cms_scanner/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: 89a9a8926786633c33826a0b17aba20f0969b30d88c08db2b188050ad07a57c1
|
4
|
+
data.tar.gz: d9a07649b204329b5bd12665fafb7b6074e46eedb37f9a8ca2bde30b41a7ea0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32da62d1914178ecdedf5f869501d60909a0cfab65755f54f2c349a561c762ba69207818ece75ca159fe8a4ad7b1c8d5ba8812ace2bf5da938dcfcdc872df8f4
|
7
|
+
data.tar.gz: 855753f004bfa699f241fbe78bf095e841eb405ad601187c2b09d8d1c4bdb93e39dcf2b4f33088fe5fa8c4b0a30d048accec34b357ffc8190d23508d83af37f9
|
@@ -9,7 +9,7 @@ module CMSScanner
|
|
9
9
|
module ClassMethods
|
10
10
|
# @return [ Array<Symbol> ]
|
11
11
|
def references_keys
|
12
|
-
@references_keys ||= %i[cve
|
12
|
+
@references_keys ||= %i[cve exploitdb url metasploit packetstorm securityfocus]
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
@@ -29,7 +29,7 @@ module CMSScanner
|
|
29
29
|
|
30
30
|
# @return [ Array<String> ] All the references URLs
|
31
31
|
def references_urls
|
32
|
-
cve_urls +
|
32
|
+
cve_urls + exploitdb_urls + urls + msf_urls +
|
33
33
|
packetstorm_urls + securityfocus_urls
|
34
34
|
end
|
35
35
|
|
@@ -48,36 +48,6 @@ module CMSScanner
|
|
48
48
|
"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-#{cve}"
|
49
49
|
end
|
50
50
|
|
51
|
-
# @return [ Array<String> ] The Secunia IDs
|
52
|
-
def secunia_ids
|
53
|
-
references[:secunia] || []
|
54
|
-
end
|
55
|
-
|
56
|
-
# @return [ Array<String> ]
|
57
|
-
def secunia_urls
|
58
|
-
secunia_ids.reduce([]) { |acc, elem| acc << secunia_url(elem) }
|
59
|
-
end
|
60
|
-
|
61
|
-
# @return [ String ] The URL to the Secunia advisory
|
62
|
-
def secunia_url(id)
|
63
|
-
"https://secuniaresearch.flexerasoftware.com/advisories/#{id}/"
|
64
|
-
end
|
65
|
-
|
66
|
-
# @return [ Array<String> ] The OSVDB IDs
|
67
|
-
def osvdb_ids
|
68
|
-
references[:osvdb] || []
|
69
|
-
end
|
70
|
-
|
71
|
-
# @return [ Array<String> ]
|
72
|
-
def osvdb_urls
|
73
|
-
osvdb_ids.reduce([]) { |acc, elem| acc << osvdb_url(elem) }
|
74
|
-
end
|
75
|
-
|
76
|
-
# @return [ String ] The URL to the ExploitDB advisory
|
77
|
-
def osvdb_url(id)
|
78
|
-
"http://osvdb.org/show/osvdb/#{id}"
|
79
|
-
end
|
80
|
-
|
81
51
|
# @return [ Array<String> ] The ExploitDB ID
|
82
52
|
def exploitdb_ids
|
83
53
|
references[:exploitdb] || []
|
@@ -125,7 +95,7 @@ module CMSScanner
|
|
125
95
|
|
126
96
|
# @return [ String ]
|
127
97
|
def packetstorm_url(id)
|
128
|
-
"
|
98
|
+
"https://packetstormsecurity.com/files/#{id}/"
|
129
99
|
end
|
130
100
|
|
131
101
|
# @return [ Array<String> ] The Security Focus IDs
|
@@ -140,7 +110,7 @@ module CMSScanner
|
|
140
110
|
|
141
111
|
# @return [ String ]
|
142
112
|
def securityfocus_url(id)
|
143
|
-
"
|
113
|
+
"https://www.securityfocus.com/bid/#{id}/"
|
144
114
|
end
|
145
115
|
end
|
146
116
|
end
|
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.5.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WPScanTeam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.10.
|
19
|
+
version: 1.10.4
|
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: 1.10.
|
26
|
+
version: 1.10.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: opt_parse_validator
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|