risu 1.7.4 → 1.7.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.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS.markdown +35 -0
  3. data/README.markdown +1 -1
  4. data/lib/risu.rb +3 -3
  5. data/lib/risu/base/host_template_helper.rb +3 -2
  6. data/lib/risu/base/schema.rb +6 -0
  7. data/lib/risu/base/template_helper.rb +8 -7
  8. data/lib/risu/base/template_manager.rb +5 -4
  9. data/lib/risu/cli.rb +2 -2
  10. data/lib/risu/cli/application.rb +1 -3
  11. data/lib/risu/exceptions.rb +2 -2
  12. data/lib/risu/exceptions/invaliddocument.rb +2 -2
  13. data/lib/risu/models.rb +2 -2
  14. data/lib/risu/models/host.rb +7 -1
  15. data/lib/risu/models/item.rb +32 -15
  16. data/lib/risu/models/pluginspreference.rb +2 -2
  17. data/lib/risu/models/policy.rb +2 -2
  18. data/lib/risu/models/reference.rb +2 -2
  19. data/lib/risu/models/report.rb +2 -2
  20. data/lib/risu/models/serverpreference.rb +2 -2
  21. data/lib/risu/models/version.rb +2 -2
  22. data/lib/risu/parsers.rb +2 -2
  23. data/lib/risu/parsers/nessus/nessus_sax_listener.rb +5 -2
  24. data/lib/risu/parsers/nessus/postprocess/adobe_acrobat.rb +87 -0
  25. data/lib/risu/parsers/nessus/postprocess/adobe_air.rb +21 -3
  26. data/lib/risu/parsers/nessus/postprocess/adobe_reader.rb +10 -2
  27. data/lib/risu/parsers/nessus/postprocess/apache.rb +8 -4
  28. data/lib/risu/parsers/nessus/postprocess/apple_quicktime.rb +56 -0
  29. data/lib/risu/parsers/nessus/postprocess/blackberry_enterprise_server.rb +61 -0
  30. data/lib/risu/parsers/nessus/postprocess/db2.rb +4 -3
  31. data/lib/risu/parsers/nessus/postprocess/downgrade_plugins.rb +79 -0
  32. data/lib/risu/parsers/nessus/postprocess/filezilla.rb +53 -0
  33. data/lib/risu/parsers/nessus/postprocess/firefox.rb +83 -0
  34. data/lib/risu/parsers/nessus/postprocess/flash_player.rb +63 -41
  35. data/lib/risu/parsers/nessus/postprocess/flexnet.rb +2 -2
  36. data/lib/risu/parsers/nessus/postprocess/foxit_reader.rb +58 -0
  37. data/lib/risu/parsers/nessus/postprocess/google_chrome.rb +30 -3
  38. data/lib/risu/parsers/nessus/postprocess/hp_system_mgt_homepage.rb +12 -2
  39. data/lib/risu/parsers/nessus/postprocess/java.rb +24 -9
  40. data/lib/risu/parsers/nessus/postprocess/openssh.rb +6 -4
  41. data/lib/risu/parsers/nessus/postprocess/openssl.rb +33 -3
  42. data/lib/risu/parsers/nessus/postprocess/oracle_database.rb +2 -2
  43. data/lib/risu/parsers/nessus/postprocess/php.rb +47 -1
  44. data/lib/risu/parsers/nessus/postprocess/post_process.rb +2 -2
  45. data/lib/risu/parsers/nessus/postprocess/root_cause.rb +35 -1
  46. data/lib/risu/parsers/nessus/postprocess/shockwave.rb +1 -0
  47. data/lib/risu/parsers/nessus/postprocess/sigplus_pro.rb +55 -0
  48. data/lib/risu/parsers/nessus/postprocess/symantec_pcanywhere.rb +56 -0
  49. data/lib/risu/parsers/nessus/postprocess/vlc.rb +58 -0
  50. data/lib/risu/parsers/nessus/postprocess/vmware_esxi.rb +9 -2
  51. data/lib/risu/parsers/nessus/postprocess/vmware_player.rb +51 -0
  52. data/lib/risu/parsers/nessus/postprocess/vmware_vcenter.rb +62 -0
  53. data/lib/risu/parsers/nessus/postprocess/vmware_vsphere_client.rb +53 -0
  54. data/lib/risu/parsers/nessus/postprocess/windows.rb +688 -0
  55. data/lib/risu/parsers/nessus/postprocess/winscp.rb +57 -0
  56. data/lib/risu/parsers/nessus/postprocess/wireshark.rb +13 -1
  57. data/lib/risu/parsers/nexpose/nexpose_document.rb +2 -2
  58. data/lib/risu/parsers/nexpose/simple_nexpose.rb +2 -2
  59. data/lib/risu/renderers.rb +2 -2
  60. data/lib/risu/renderers/csvrenderer.rb +2 -2
  61. data/lib/risu/renderers/nilrenderer.rb +2 -2
  62. data/lib/risu/renderers/pdfrenderer.rb +2 -2
  63. data/lib/risu/templates/executive_summary_detailed.rb +2 -2
  64. data/lib/risu/templates/exploitablity_summary.rb +2 -2
  65. data/lib/risu/templates/finding_statistics.rb +2 -2
  66. data/lib/risu/templates/graphs.rb +2 -2
  67. data/lib/risu/templates/host_findings_csv.rb +3 -3
  68. data/lib/risu/templates/host_summary.rb +2 -2
  69. data/lib/risu/templates/ms_patch_summary.rb +2 -2
  70. data/lib/risu/templates/top_25.rb +2 -2
  71. metadata +16 -2
@@ -42,7 +42,7 @@ module Risu
42
42
  osvdb cert edb-id rhsa secunia suse dsa
43
43
  owasp cwe iavb iavt cisco-sa ics-alert
44
44
  cisco-bug-id cisco-sr cert-vu vmsa apple-sa
45
- icsa cert-cc msvr usn hp glsa freebsd
45
+ icsa cert-cc msvr usn hp glsa freebsd tra
46
46
  ])
47
47
 
48
48
  # An array of valid host properties
@@ -58,6 +58,7 @@ module Risu
58
58
  pcidss:insecure_http_methods LastUnauthenticatedResults LastAuthenticatedResults cpe-0 cpe-1
59
59
  cpe-2 cpe-3 Credentialed_Scan policy-used UnsupportedProduct:microsoft:windows_xp::sp2
60
60
  UnsupportedProduct:microsoft:windows_xp UnsupportedProduct:microsoft:windows_2000 UnsupportedProduct
61
+ mcafee-epo-guid
61
62
  ])
62
63
 
63
64
  # An array of all valid elements expected during parsing
@@ -76,6 +77,7 @@ module Risu
76
77
  cm:compliance-audit-file cm:compliance-check-name cm:compliance-result cm:compliance-output policyOwner
77
78
  visibility script_version attachment policy_comments d2_elliot_name exploit_framework_d2_elliot
78
79
  exploited_by_malware compliance cm:compliance-reference cm:compliance-see-also cm:compliance-solution
80
+ agent potential_vulnerability in_the_news exploited_by_nessus unsupported_by_vendor default_account
79
81
  ])
80
82
 
81
83
  # TODO: documentation. These are never used in the class
@@ -406,7 +408,8 @@ module Risu
406
408
  :always_run => @vals["always_run"],
407
409
  :script_version => @vals["script_version"],
408
410
  :exploited_by_malware => @vals["exploited_by_malware"],
409
- :compliance => @vals["compliance"]
411
+ :compliance => @vals["compliance"],
412
+ :agent => @vals["agent"]
410
413
  )
411
414
  end
412
415
 
@@ -0,0 +1,87 @@
1
+ # Copyright (c) 2010-2015 Arxopia LLC.
2
+ # All rights reserved.
3
+ #
4
+ # Redistribution and use in source and binary forms, with or without
5
+ # modification, are permitted provided that the following conditions are met:
6
+ #
7
+ # * Redistributions of source code must retain the above copyright
8
+ # notice, this list of conditions and the following disclaimer.
9
+ # * Redistributions in binary form must reproduce the above copyright
10
+ # notice, this list of conditions and the following disclaimer in the
11
+ # documentation and/or other materials provided with the distribution.
12
+ # * Neither the name of the Arxopia LLC nor the names of its contributors
13
+ # may be used to endorse or promote products derived from this software
14
+ # without specific prior written permission.
15
+ #
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ # DISCLAIMED. IN NO EVENT SHALL ARXOPIA LLC BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21
+ # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22
+ # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23
+ # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24
+ # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
25
+ # OF THE POSSIBILITY OF SUCH DAMAGE.
26
+
27
+ module Risu
28
+ module Parsers
29
+ module Nessus
30
+ module PostProcess
31
+ class AdobeAcrobat < Risu::Base::PostProcessBase
32
+
33
+ #
34
+ def initialize
35
+ @info =
36
+ {
37
+ :description => "Adobe Acrobat Patch Rollup",
38
+ :plugin_id => -99975,
39
+ :plugin_name => "Update to the latest Adobe Acrobat",
40
+ :item_name => "Update to the latest Adobe Acrobat",
41
+ :plugin_ids => [
42
+ 79855,
43
+ 83470,
44
+ 40803,
45
+ 40804,
46
+ 40805,
47
+ 40806,
48
+ 42119,
49
+ 43875,
50
+ 44643,
51
+ 45504,
52
+ 47164,
53
+ 48374,
54
+ 49172,
55
+ 50613,
56
+ 51924,
57
+ 52671,
58
+ 53450,
59
+ 55143,
60
+ 56197,
61
+ 57042,
62
+ 77813,
63
+ 57483,
64
+ 58682,
65
+ 61561,
66
+ 64785,
67
+ 63453,
68
+ 66409,
69
+ 74011,
70
+ 84801,
71
+ 84800,
72
+ 77176,
73
+ 77711,
74
+ 69845,
75
+ 71946,
76
+
77
+
78
+
79
+
80
+ ]
81
+ }
82
+ end
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
@@ -21,8 +21,8 @@
21
21
  # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22
22
  # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23
23
  # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24
- #OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
25
- #OF THE POSSIBILITY OF SUCH DAMAGE.
24
+ # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
25
+ # OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
 
27
27
  module Risu
28
28
  module Parsers
@@ -32,7 +32,7 @@ module Risu
32
32
 
33
33
  #
34
34
  def initialize
35
- @info =
35
+ @info =
36
36
  {
37
37
  :description => "Adobe Air Patch Rollup",
38
38
  :plugin_id => -99994,
@@ -69,6 +69,24 @@ module Risu
69
69
  66444,
70
70
  66871,
71
71
  63241,
72
+ 77171,
73
+ 77576,
74
+ 78440,
75
+ 79139,
76
+ 80483,
77
+ 34815,
78
+ 40447,
79
+ 43069,
80
+ 46858,
81
+ 48299,
82
+ 50604,
83
+ 44595,
84
+ 84155,
85
+ 84156,
86
+ 84157,
87
+ 84158,
88
+ 84641,
89
+ 85325,
72
90
 
73
91
  ]
74
92
 
@@ -21,8 +21,8 @@
21
21
  # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22
22
  # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23
23
  # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24
- #OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
25
- #OF THE POSSIBILITY OF SUCH DAMAGE.
24
+ # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
25
+ # OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
 
27
27
  module Risu
28
28
  module Parsers
@@ -75,7 +75,15 @@ module Risu
75
75
  52672,
76
76
  53451,
77
77
  21698,
78
+ 77712,
79
+ 79856,
80
+ 77175,
81
+ 83471,
82
+ 40494,
83
+ 27584,
78
84
 
85
+
86
+
79
87
  ]
80
88
  }
81
89
  end
@@ -21,8 +21,8 @@
21
21
  # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22
22
  # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23
23
  # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24
- #OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
25
- #OF THE POSSIBILITY OF SUCH DAMAGE.
24
+ # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
25
+ # OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
 
27
27
  module Risu
28
28
  module Parsers
@@ -62,8 +62,12 @@ module Risu
62
62
  48205,
63
63
  50070,
64
64
  53896,
65
-
66
-
65
+ 69014,
66
+ 76622,
67
+ 81126,
68
+ 73081,
69
+ 84959,
70
+ 40467,
67
71
 
68
72
  ]
69
73
  }
@@ -0,0 +1,56 @@
1
+ # Copyright (c) 2010-2015 Arxopia LLC.
2
+ # All rights reserved.
3
+ #
4
+ # Redistribution and use in source and binary forms, with or without
5
+ # modification, are permitted provided that the following conditions are met:
6
+ #
7
+ # * Redistributions of source code must retain the above copyright
8
+ # notice, this list of conditions and the following disclaimer.
9
+ # * Redistributions in binary form must reproduce the above copyright
10
+ # notice, this list of conditions and the following disclaimer in the
11
+ # documentation and/or other materials provided with the distribution.
12
+ # * Neither the name of the Arxopia LLC nor the names of its contributors
13
+ # may be used to endorse or promote products derived from this software
14
+ # without specific prior written permission.
15
+ #
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ # DISCLAIMED. IN NO EVENT SHALL ARXOPIA LLC BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21
+ # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22
+ # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23
+ # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24
+ # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
25
+ # OF THE POSSIBILITY OF SUCH DAMAGE.
26
+
27
+ module Risu
28
+ module Parsers
29
+ module Nessus
30
+ module PostProcess
31
+ class AppleQuicktime < Risu::Base::PostProcessBase
32
+
33
+ #
34
+ def initialize
35
+ @info =
36
+ {
37
+ :description => "Apple QuickTime Patch Rollup",
38
+ :plugin_id => -99973,
39
+ :plugin_name => "Update to the latest Apple QuickTime",
40
+ :item_name => "Update to the latest Apple QuickTime",
41
+ :plugin_ids => [
42
+ 66636,
43
+ 72706,
44
+ 78678,
45
+ 62890,
46
+
47
+
48
+
49
+ ]
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,61 @@
1
+ # Copyright (c) 2010-2015 Arxopia LLC.
2
+ # All rights reserved.
3
+ #
4
+ # Redistribution and use in source and binary forms, with or without
5
+ # modification, are permitted provided that the following conditions are met:
6
+ #
7
+ # * Redistributions of source code must retain the above copyright
8
+ # notice, this list of conditions and the following disclaimer.
9
+ # * Redistributions in binary form must reproduce the above copyright
10
+ # notice, this list of conditions and the following disclaimer in the
11
+ # documentation and/or other materials provided with the distribution.
12
+ # * Neither the name of the Arxopia LLC nor the names of its contributors
13
+ # may be used to endorse or promote products derived from this software
14
+ # without specific prior written permission.
15
+ #
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ # DISCLAIMED. IN NO EVENT SHALL ARXOPIA LLC BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21
+ # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22
+ # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23
+ # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24
+ # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
25
+ # OF THE POSSIBILITY OF SUCH DAMAGE.
26
+
27
+ module Risu
28
+ module Parsers
29
+ module Nessus
30
+ module PostProcess
31
+ class BlackBerryEnterpriseServerRollups < Risu::Base::PostProcessBase
32
+
33
+ #
34
+ def initialize
35
+ @info =
36
+ {
37
+ :description => "Black Berry Enterprise Server Patch Rollup",
38
+ :plugin_id => -99968,
39
+ :plugin_name => "Update to the latest Black Berry Enterprise Server",
40
+ :item_name => "Update to the latest Black Berry Enterprise Server",
41
+ :plugin_ids => [
42
+ 50071,
43
+ 51191,
44
+ 51527,
45
+ 55819,
46
+ 55670,
47
+ 53829,
48
+ 72583,
49
+ 77327,
50
+
51
+
52
+
53
+
54
+ ]
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -42,9 +42,10 @@ module Risu
42
42
  62701,
43
43
  71519,
44
44
  76114,
45
- 76116
46
-
47
-
45
+ 76116,
46
+ 84828
47
+
48
+
48
49
  ]
49
50
  }
50
51
  end
@@ -0,0 +1,79 @@
1
+ # Copyright (c) 2010-2015 Arxopia LLC.
2
+ # All rights reserved.
3
+ #
4
+ # Redistribution and use in source and binary forms, with or without
5
+ # modification, are permitted provided that the following conditions are met:
6
+ #
7
+ # * Redistributions of source code must retain the above copyright
8
+ # notice, this list of conditions and the following disclaimer.
9
+ # * Redistributions in binary form must reproduce the above copyright
10
+ # notice, this list of conditions and the following disclaimer in the
11
+ # documentation and/or other materials provided with the distribution.
12
+ # * Neither the name of the Arxopia LLC nor the names of its contributors
13
+ # may be used to endorse or promote products derived from this software
14
+ # without specific prior written permission.
15
+ #
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ # DISCLAIMED. IN NO EVENT SHALL ARXOPIA LLC BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21
+ # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22
+ # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23
+ # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24
+ # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
25
+ # OF THE POSSIBILITY OF SUCH DAMAGE.
26
+
27
+ module Risu
28
+ module Parsers
29
+ module Nessus
30
+ module PostProcess
31
+ class DowngradePlugins < Risu::Base::PostProcessBase
32
+
33
+ #
34
+ def initialize
35
+ @info =
36
+ {
37
+ :description => "Downgrades the Severity of Certain Plugins",
38
+ :plugin_id => 0
39
+ }
40
+
41
+ #0 - informational
42
+ #1 - low
43
+ #2 - medium
44
+ #3 - high
45
+ #4 - critical
46
+
47
+ @plugins_to_severity = {
48
+ 41028 => 0, #SNMP Agent Default Community Name (public) - 41028
49
+ 10264 => 0, #SNMP Agent Default Community Names - 10264
50
+ 10081 => 0, #FTP Privileged Port Bounce Scan - 10081
51
+
52
+ }
53
+ end
54
+
55
+ #
56
+ def run
57
+ @plugins_to_severity.each do |k, v|
58
+ items = Item.where(:plugin_id => k)
59
+
60
+ if items == nil
61
+ next
62
+ end
63
+
64
+ items.each do |item|
65
+ if item == nil
66
+ next
67
+ end
68
+
69
+ item.severity = v
70
+ item.save
71
+ end
72
+
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,53 @@
1
+ # Copyright (c) 2010-2015 Arxopia LLC.
2
+ # All rights reserved.
3
+ #
4
+ # Redistribution and use in source and binary forms, with or without
5
+ # modification, are permitted provided that the following conditions are met:
6
+ #
7
+ # * Redistributions of source code must retain the above copyright
8
+ # notice, this list of conditions and the following disclaimer.
9
+ # * Redistributions in binary form must reproduce the above copyright
10
+ # notice, this list of conditions and the following disclaimer in the
11
+ # documentation and/or other materials provided with the distribution.
12
+ # * Neither the name of the Arxopia LLC nor the names of its contributors
13
+ # may be used to endorse or promote products derived from this software
14
+ # without specific prior written permission.
15
+ #
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ # DISCLAIMED. IN NO EVENT SHALL ARXOPIA LLC BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21
+ # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22
+ # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23
+ # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
24
+ # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
25
+ # OF THE POSSIBILITY OF SUCH DAMAGE.
26
+
27
+ module Risu
28
+ module Parsers
29
+ module Nessus
30
+ module PostProcess
31
+ class FileZillaClient < Risu::Base::PostProcessBase
32
+
33
+ #
34
+ def initialize
35
+ @info =
36
+ {
37
+ :description => "FileZilla Client Patch Rollup",
38
+ :plugin_id => -99974,
39
+ :plugin_name => "Update to the latest FileZilla Client",
40
+ :item_name => "Update to the latest FileZilla Client",
41
+ :plugin_ids => [
42
+ 69476,
43
+ 69494,
44
+
45
+
46
+ ]
47
+ }
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end