odle 0.0.4 → 0.0.5
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/parsers/msfv5.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e15dc1834afd0c14ece78e25c9eddd2448fd705
|
|
4
|
+
data.tar.gz: 964f409508c99a3932aaa9152c6b9193d43e4a07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d7c0dce7adce994fc69a55fdcac0d33ac60e91f2548f940faacce7025b9437747a9b9e5cb0d8490e51a16527e71c6d862f60dacf190fcdc18cdc5cdb658cd58
|
|
7
|
+
data.tar.gz: e219faefb359620e23f021bfef6d89f605d5fa93c487b805eda4ed52721954213f452ab2b2fb575b1252afa44cb8373fa7dca7078d94da006c5e8079219d7e93
|
data/lib/parsers/msfv5.rb
CHANGED
|
@@ -10,13 +10,16 @@ class Metasploit
|
|
|
10
10
|
doc.css('//hosts/host').each do |hostnode|
|
|
11
11
|
findings = Array.new
|
|
12
12
|
|
|
13
|
-
host = hostnode.css(
|
|
13
|
+
host = hostnode.css('/name').text.to_s
|
|
14
14
|
|
|
15
|
-
hostnode.css(
|
|
15
|
+
hostnode.css('/vulns/vuln').each do |issue|
|
|
16
16
|
# create a temporary finding object
|
|
17
17
|
finding = Finding.new()
|
|
18
18
|
finding.title = issue.css('name').text.to_s()
|
|
19
19
|
finding.overview = issue.css('info').text.to_s()
|
|
20
|
+
finding.risk = 0 # this needs to be fixed
|
|
21
|
+
finding.remediation = ""
|
|
22
|
+
finding.id = issue.css('id').text.to_s()
|
|
20
23
|
findings << finding.to_hash
|
|
21
24
|
end
|
|
22
25
|
vulns[host] = findings
|