dradis-nikto 3.16.0 → 3.17.0

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: dfbcd92f614e92ac1589cefa31ef1fe9c767957485d6ff477912ebba6cab11fa
4
- data.tar.gz: a78a85b6ed6041fb7ff67a80603ae6bdf50309654a3c5efd1693734e0d21764e
3
+ metadata.gz: e83648d390d40489dbe3db7ad9deba0a2c1ee1965d24b81ef9d602e279d8e9e0
4
+ data.tar.gz: ad1c2cb958232d815f73da812669fab6d39a706fe0fccacda2d743bfdad7e7d7
5
5
  SHA512:
6
- metadata.gz: 031fb0753ed570bf2c0b3808a6facf792314ad1cfedf3bab1e4677c049e1dbe9ff0cfa9c4088ec8546ef9f721df17e853d97e9748417d215ddc27462b9ce222d
7
- data.tar.gz: dfd343cbbe205fca13dc4fd6c666078dc26cc45e2ea58e2c79e10c9797d477af768b03c0b1ac89a2eeb9b9c3ec3011c8b7520af394b99c15893be905b56c503f
6
+ metadata.gz: afb78af915f5120768699c83ba13c6b4945e2e0c137b9eeff81bcf0827a72d018fab26756664e239c5f686760fd76bed9c7283e1b0e3d0e3607ff91659152b64
7
+ data.tar.gz: 0a6e1f7d2ff389fe9ad6e250952d5999fc891b447c8b2f5c020172b64bd35d7b95f4999025f93d7a9a2dde1d644ba9b7c73f6b17f320e0dbaa456ba267ab3f96
@@ -1,3 +1,7 @@
1
+ ## Dradis Framework 3.17 (May 2020) ##
2
+
3
+ * Added an extra set of `<niktoscan>` tags after a change in Nikto XML structure.
4
+
1
5
  ## Dradis Framework 3.16 (February, 2020) ##
2
6
 
3
7
  * No changes.
@@ -8,7 +8,7 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 3
11
- MINOR = 16
11
+ MINOR = 17
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
@@ -18,14 +18,14 @@ module Dradis::Plugins::Nikto
18
18
  doc = Nokogiri::XML(xml)
19
19
  logger.info{ 'Done.' }
20
20
 
21
- if doc.xpath('/nikto/niktoscan/scandetails').empty?
21
+ if doc.xpath('//niktoscan/scandetails').empty?
22
22
  error = "No scan results were detected in the uploaded file (/nikto/niktoscan/scandetails). Ensure you uploaded a Nikto XML report."
23
23
  logger.fatal{ error }
24
24
  content_service.create_note text: error
25
25
  return false
26
26
  end
27
27
 
28
- doc.xpath('/nikto/niktoscan/scandetails').each do |xml_scan|
28
+ doc.xpath('//niktoscan/scandetails').each do |xml_scan|
29
29
  host_label = xml_scan['targetip']
30
30
 
31
31
  # Hack to include the file name in the xml
@@ -1,5 +1,6 @@
1
1
  <?xml version="1.0" ?>
2
2
  <!DOCTYPE niktoscan SYSTEM "docs/nikto.dtd">
3
+ <niktoscan>
3
4
  <niktoscan hoststest="0" options="-h localhost -p 80 -out /tmp/localhost.xml" version="2.1.4" scanstart="Sun Jul 17 19:54:10 2011" scanend="Thu Jan 1 01:00:00 1970" scanelapsed=" seconds" nxmlversion="1.1">
4
5
  <scandetails targetip="127.0.0.1" targethostname="localhost" targetport="80" targetbanner="Apache/2.2.16 (Debian)" starttime="2011-07-18 19:54:10" sitename="http://localhost:80/" siteip="http://127.0.0.1:80/" hostheader="localhost">
5
6
  <ssl ciphers="DHE-RSA-AES256-SHA" issuers="/C=GB/ST=Berks/L=Ruscombe/O=XXXXXX/OU=XXXX/CN=asdf.com/emailAddress=someoneatasdf.com" info="/C=GB/ST=Berkshire/L=Ruscombe/O=Company/OU=UK/CN=vmx098" />
@@ -35,5 +36,6 @@
35
36
  <statistics elapsed="10" itemsfound="44" itemstested="6456" endtime="2011-07-18 19:54:20" />
36
37
  </scandetails>
37
38
 
38
-
39
+ </niktoscan>
40
+
39
41
  </niktoscan>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dradis-nikto
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.16.0
4
+ version: 3.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-26 00:00:00.000000000 Z
11
+ date: 2020-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins