diff options
author | Scott Ellis <scottellis.developer@gmail.com> | 2018-12-28 16:35:35 -0500 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-01-06 08:02:28 -0800 |
commit | b4441953a586910c6a30ef1218396d133d6bf14e (patch) | |
tree | 16e72bde014f6517443095cd72b210559ab04964 | |
parent | 15beceb2bda25c021c27ce08c18b28fe48ccf92f (diff) | |
download | meta-security-b4441953a586910c6a30ef1218396d133d6bf14e.tar.gz |
nikto: upgrade to 2.1.6 (v2)
Source now on github.
Signed-off-by: Scott Ellis <scott@jumpnowtek.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-security/nikto/files/CVE-2018-11652.patch | 106 | ||||
-rw-r--r-- | recipes-security/nikto/files/location.patch | 32 | ||||
-rw-r--r-- | recipes-security/nikto/nikto_2.1.5.bb | 108 | ||||
-rw-r--r-- | recipes-security/nikto/nikto_2.1.6.bb | 118 |
4 files changed, 134 insertions, 230 deletions
diff --git a/recipes-security/nikto/files/CVE-2018-11652.patch b/recipes-security/nikto/files/CVE-2018-11652.patch deleted file mode 100644 index 5ddb169..0000000 --- a/recipes-security/nikto/files/CVE-2018-11652.patch +++ /dev/null | |||
@@ -1,106 +0,0 @@ | |||
1 | From e759b3300aace5314fe3d30800c8bd83c81c29f7 Mon Sep 17 00:00:00 2001 | ||
2 | From: sullo <sullo@cirt.net> | ||
3 | Date: Thu, 31 May 2018 23:30:03 -0400 | ||
4 | Subject: [PATCH] Fix CSV injection issue if server responds with a malicious | ||
5 | Server string & CSV output is opened in Excel or other spreadsheet app. | ||
6 | Potentially malicious cell start characters are now prefaced with a ' mark. | ||
7 | Thanks to Adam (@bytesoverbombs) for letting me know! | ||
8 | |||
9 | Also fixed a crash in the outdated plugin if the $sepr field ends up being something that triggers a panic in split(). | ||
10 | |||
11 | CVE: CVE-2018-11652 | ||
12 | Upstream-Status: Backport | ||
13 | Signed-off-by: Nagalakshmi Veeramallu <nveeramallu@mvista.com> | ||
14 | --- | ||
15 | plugins/nikto_outdated.plugin | 2 +- | ||
16 | plugins/nikto_report_csv.plugin | 42 +++++++++++++++++++++++++++++------------ | ||
17 | 2 files changed, 31 insertions(+), 13 deletions(-) | ||
18 | |||
19 | diff --git a/plugins/nikto_outdated.plugin b/plugins/nikto_outdated.plugin | ||
20 | index 72379cc..eb1d889 100644 | ||
21 | --- a/plugins/nikto_outdated.plugin | ||
22 | +++ b/plugins/nikto_outdated.plugin | ||
23 | @@ -83,7 +83,7 @@ sub nikto_outdated { | ||
24 | $sepr = substr($sepr, (length($sepr) - 1), 1); | ||
25 | |||
26 | # break up ID string on $sepr | ||
27 | - my @T = split(/$sepr/, $mark->{'banner'}); | ||
28 | + my @T = split(/\\$sepr/, $mark->{'banner'}); | ||
29 | |||
30 | # assume last is version... | ||
31 | for ($i = 0 ; $i < $#T ; $i++) { $MATCHSTRING .= "$T[$i] "; } | ||
32 | diff --git a/plugins/nikto_report_csv.plugin b/plugins/nikto_report_csv.plugin | ||
33 | index d13acab..b942e78 100644 | ||
34 | --- a/plugins/nikto_report_csv.plugin | ||
35 | +++ b/plugins/nikto_report_csv.plugin | ||
36 | @@ -52,10 +52,12 @@ sub csv_open { | ||
37 | sub csv_host_start { | ||
38 | my ($handle, $mark) = @_; | ||
39 | $mark->{'banner'} =~ s/"/\\"/g; | ||
40 | - print OUT "\"$mark->{'hostname'}\"," | ||
41 | - . "\"$mark->{'ip'}\"," | ||
42 | - . "\"$mark->{'port'}\"," . "\"\"," . "\"\"," . "\"\"," | ||
43 | - . "\"$mark->{'banner'}\"\n"; | ||
44 | + print $handle "\"" . csv_safecell($hostname) . "\"," | ||
45 | + . "\"" . csv_safecell($mark->{'ip'}) . "\"," | ||
46 | + . "\"" . csv_safecell($mark->{'port'}) . "\"," . "\"\"," . "\"\"," . "\"\"," | ||
47 | + #. "\"" . $mark->{'banner'} . "\"\n"; | ||
48 | + . "\"" . csv_safecell($mark->{'banner'}) . "\"\n"; | ||
49 | + | ||
50 | return; | ||
51 | } | ||
52 | |||
53 | @@ -65,26 +67,42 @@ sub csv_item { | ||
54 | my ($handle, $mark, $item) = @_; | ||
55 | foreach my $uri (split(' ', $item->{'uri'})) { | ||
56 | my $line = ''; | ||
57 | - $line .= "\"$item->{'mark'}->{'hostname'}\","; | ||
58 | - $line .= "\"$item->{'mark'}->{'ip'}\","; | ||
59 | - $line .= "\"$item->{'mark'}->{'port'}\","; | ||
60 | + $line .= "\"" . csv_safecell($hostname) . "\","; | ||
61 | + $line .= "\"" . csv_safecell($item->{'mark'}->{'ip'}) . \","; | ||
62 | + $line .= "\"" . csv_safecell($item->{'mark'}->{'port'}) . "\","; | ||
63 | |||
64 | $line .= "\""; | ||
65 | if ($item->{'osvdb'} ne '') { $line .= "OSVDB-" . $item->{'osvdb'}; } | ||
66 | $line .= "\","; | ||
67 | |||
68 | $line .= "\""; | ||
69 | - if ($item->{'method'} ne '') { $line .= $item->{'method'}; } | ||
70 | + if ($item->{'method'} ne '') { $line .= csv_safecell($item->{'method'}); } | ||
71 | $line .= "\","; | ||
72 | |||
73 | $line .= "\""; | ||
74 | - if ($uri ne '') { $line .= $mark->{'root'} . $uri; } | ||
75 | + { $line .= csv_safecell($mark->{'root'}) . $uri; } | ||
76 | + else { $line .= csv_safecell($ur | ||
77 | $line .= "\","; | ||
78 | |||
79 | - $item->{'message'} =~ s/"/\\"/g; | ||
80 | - $line .= "\"$item->{'message'}\""; | ||
81 | - print $handle "$line\n"; | ||
82 | + my $msg = $item->{'message'}; | ||
83 | + $uri=quotemeta($uri); | ||
84 | + my $root = quotemeta($mark->{'root'}); | ||
85 | + $msg =~ s/^$uri:\s//; | ||
86 | + $msg =~ s/^$root$uri:\s//; | ||
87 | + $msg =~ s/"/\\"/g; | ||
88 | + $line .= "\"" . csv_safecell($msg) ."\""; | ||
89 | + print $handle "$line\n"; | ||
90 | + | ||
91 | } | ||
92 | } | ||
93 | |||
94 | +############################################################################### | ||
95 | +# prevent CSV injection attacks | ||
96 | +sub csv_safecell { | ||
97 | + my $celldata = $_[0] || return; | ||
98 | + if ($celldata =~ /^[=+@-]/) { $celldata = "'" . $celldata; } | ||
99 | + return $celldata; | ||
100 | +} | ||
101 | + | ||
102 | + | ||
103 | 1; | ||
104 | -- | ||
105 | 2.6.4 | ||
106 | |||
diff --git a/recipes-security/nikto/files/location.patch b/recipes-security/nikto/files/location.patch index a95b062..edaa204 100644 --- a/recipes-security/nikto/files/location.patch +++ b/recipes-security/nikto/files/location.patch | |||
@@ -1,36 +1,36 @@ | |||
1 | From e10b9b1f6704057ace39956ae1dc5c7caca07ff1 Mon Sep 17 00:00:00 2001 | 1 | From d1cb702d5147abea0d3208a4d554c61a6f2decd6 Mon Sep 17 00:00:00 2001 |
2 | From: Andrei Dinu <andrei.adrianx.dinu@intel.com> | 2 | From: Scott Ellis <scott@jumpnowtek.com> |
3 | Date: Mon, 8 Jul 2013 11:53:54 +0300 | 3 | Date: Fri, 28 Dec 2018 11:08:25 -0500 |
4 | Subject: [PATCH] Setting the location of nikto on the image | 4 | Subject: [PATCH] Set custom paths |
5 | 5 | ||
6 | Upstream Status: Inapropriate | 6 | Upstream Status: Inappropriate |
7 | 7 | ||
8 | Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> | 8 | Signed-off-by: Scott Ellis <scott@jumpnowtek.com> |
9 | --- | 9 | --- |
10 | nikto.conf | 10 +++++----- | 10 | nikto.conf | 10 +++++----- |
11 | 1 file changed, 5 insertions(+), 5 deletions(-) | 11 | 1 file changed, 5 insertions(+), 5 deletions(-) |
12 | 12 | ||
13 | diff --git a/nikto.conf b/nikto.conf | 13 | diff --git a/program/nikto.conf b/program/nikto.conf |
14 | index 25b784d..9577033 100644 | 14 | index bf36c58..8c55415 100644 |
15 | --- a/nikto.conf | 15 | --- a/nikto.conf |
16 | +++ b/nikto.conf | 16 | +++ b/nikto.conf |
17 | @@ -61,11 +61,11 @@ CIRT=174.142.17.165 | 17 | @@ -61,11 +61,11 @@ CIRT=107.170.99.251 |
18 | CHECKMETHODS=HEAD GET | 18 | CHECKMETHODS=HEAD GET |
19 | 19 | ||
20 | # If you want to specify the location of any of the files, specify them here | 20 | # If you want to specify the location of any of the files, specify them here |
21 | -# EXECDIR=/opt/nikto # Location of Nikto | 21 | -# EXECDIR=/opt/nikto # Location of Nikto |
22 | -# PLUGINDIR=/opt/nikto/plugins # Location of plugin dir | 22 | -# PLUGINDIR=/opt/nikto/plugins # Location of plugin dir |
23 | -# DBDIR=/opt/nikto/databases # Location of plugin dir | 23 | -# DBDIR=/opt/nikto/databases # Location of database dir |
24 | -# TEMPLATEDIR=/opt/nikto/templates # Location of tempmlate dir | 24 | -# TEMPLATEDIR=/opt/nikto/templates # Location of template dir |
25 | -# DOCDIR=/opt/nikto/docs # Location of docs dir | 25 | -# DOCDIR=/opt/nikto/docs # Location of docs dir |
26 | +EXECDIR=/usr/bin/nikto # Location of Nikto | 26 | +EXECDIR=/usr/bin/nikto # Location of Nikto |
27 | +PLUGINDIR=/etc/nikto/plugins # Location of plugin dir | 27 | +PLUGINDIR=/etc/nikto/plugins # Location of plugin dir |
28 | +DBDIR=/etc/nikto/databases # Location of plugin dir | 28 | +DBDIR=/etc/nikto/databases # Location of database dir |
29 | +TEMPLATEDIR=/etc/nikto/templates # Location of tempmlate dir | 29 | +TEMPLATEDIR=/etc/nikto/templates # Location of template dir |
30 | +DOCDIR=/usr/share/doc/nikto # Location of docs dir | 30 | +DOCDIR=/usr/share/doc/nikto # Location of docs dir |
31 | 31 | ||
32 | # Default plugin macros | 32 | # Default plugin macros |
33 | @@MUTATE=dictionary;subdomain | 33 | # Remove plugins designed to be run standalone |
34 | -- | 34 | -- |
35 | 1.7.9.5 | 35 | 2.7.4 |
36 | 36 | ||
diff --git a/recipes-security/nikto/nikto_2.1.5.bb b/recipes-security/nikto/nikto_2.1.5.bb deleted file mode 100644 index 19eb14f..0000000 --- a/recipes-security/nikto/nikto_2.1.5.bb +++ /dev/null | |||
@@ -1,108 +0,0 @@ | |||
1 | SUMMARY = "web server scanner" | ||
2 | DESCRIPTION = "Nikto is an Open Source (GPL) web server scanner which performs comprehensive tests against web servers for multiple items, including over 6500 potentially dangerous \ | ||
3 | files/CGIs, checks for outdated versions of over 1250 servers, and version specific problems on over 270 servers." | ||
4 | SECTION = "security" | ||
5 | LICENSE = "GPLv2" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" | ||
8 | |||
9 | SRC_URI = "http://cirt.net/nikto/${BP}.tar.gz \ | ||
10 | file://location.patch \ | ||
11 | file://CVE-2018-11652.patch" | ||
12 | |||
13 | SRC_URI[md5sum] = "efcc98a918becb77471ee9a5df0a7b1e" | ||
14 | SRC_URI[sha256sum] = "0e672a6a46bf2abde419a0e8ea846696d7f32e99ad18a6b405736ee6af07509f" | ||
15 | |||
16 | do_install() { | ||
17 | install -d ${D}${bindir} | ||
18 | install -d ${D}${datadir} | ||
19 | install -d ${D}${datadir}/man/man1 | ||
20 | install -d ${D}${datadir}/doc/nikto | ||
21 | install -d ${D}${sysconfdir}/nikto | ||
22 | install -d ${D}${sysconfdir}/nikto/databases | ||
23 | install -d ${D}${sysconfdir}/nikto/plugins | ||
24 | install -d ${D}${sysconfdir}/nikto/templates | ||
25 | |||
26 | install -m 0644 databases/db_404_strings ${D}${sysconfdir}/nikto/databases | ||
27 | install -m 0644 databases/db_content_search ${D}${sysconfdir}/nikto/databases | ||
28 | install -m 0644 databases/db_dictionary ${D}${sysconfdir}/nikto/databases | ||
29 | install -m 0644 databases/db_embedded ${D}${sysconfdir}/nikto/databases | ||
30 | install -m 0644 databases/db_favicon ${D}${sysconfdir}/nikto/databases | ||
31 | install -m 0644 databases/db_headers ${D}${sysconfdir}/nikto/databases | ||
32 | install -m 0644 databases/db_httpoptions ${D}${sysconfdir}/nikto/databases | ||
33 | install -m 0644 databases/db_multiple_index ${D}${sysconfdir}/nikto/databases | ||
34 | install -m 0644 databases/db_outdated ${D}${sysconfdir}/nikto/databases | ||
35 | install -m 0644 databases/db_parked_strings ${D}${sysconfdir}/nikto/databases | ||
36 | install -m 0644 databases/db_realms ${D}${sysconfdir}/nikto/databases | ||
37 | install -m 0644 databases/db_server_msgs ${D}${sysconfdir}/nikto/databases | ||
38 | install -m 0644 databases/db_subdomains ${D}${sysconfdir}/nikto/databases | ||
39 | install -m 0644 databases/db_tests ${D}${sysconfdir}/nikto/databases | ||
40 | install -m 0644 databases/db_variables ${D}${sysconfdir}/nikto/databases | ||
41 | |||
42 | install -m 0644 plugins/JSON-PP.pm ${D}${sysconfdir}/nikto/plugins | ||
43 | install -m 0644 plugins/LW2.pm ${D}${sysconfdir}/nikto/plugins | ||
44 | install -m 0644 plugins/nikto_apache_expect_xss.plugin ${D}${sysconfdir}/nikto/plugins | ||
45 | install -m 0644 plugins/nikto_apacheusers.plugin ${D}${sysconfdir}/nikto/plugins | ||
46 | install -m 0644 plugins/nikto_auth.plugin ${D}${sysconfdir}/nikto/plugins | ||
47 | install -m 0644 plugins/nikto_cgi.plugin ${D}${sysconfdir}/nikto/plugins | ||
48 | install -m 0644 plugins/nikto_clientaccesspolicy.plugin ${D}${sysconfdir}/nikto/plugins | ||
49 | install -m 0644 plugins/nikto_content_search.plugin ${D}${sysconfdir}/nikto/plugins | ||
50 | install -m 0644 plugins/nikto_cookies.plugin ${D}${sysconfdir}/nikto/plugins | ||
51 | install -m 0644 plugins/nikto_core.plugin ${D}${sysconfdir}/nikto/plugins | ||
52 | install -m 0644 plugins/nikto_dictionary_attack.plugin ${D}${sysconfdir}/nikto/plugins | ||
53 | install -m 0644 plugins/nikto_embedded.plugin ${D}${sysconfdir}/nikto/plugins | ||
54 | install -m 0644 plugins/nikto_favicon.plugin ${D}${sysconfdir}/nikto/plugins | ||
55 | install -m 0644 plugins/nikto_fileops.plugin ${D}${sysconfdir}/nikto/plugins | ||
56 | install -m 0644 plugins/nikto_headers.plugin ${D}${sysconfdir}/nikto/plugins | ||
57 | install -m 0644 plugins/nikto_httpoptions.plugin ${D}${sysconfdir}/nikto/plugins | ||
58 | install -m 0644 plugins/nikto_msgs.plugin ${D}${sysconfdir}/nikto/plugins | ||
59 | install -m 0644 plugins/nikto_multiple_index.plugin ${D}${sysconfdir}/nikto/plugins | ||
60 | install -m 0644 plugins/nikto_outdated.plugin ${D}${sysconfdir}/nikto/plugins | ||
61 | install -m 0644 plugins/nikto_parked.plugin ${D}${sysconfdir}/nikto/plugins | ||
62 | install -m 0644 plugins/nikto_paths.plugin ${D}${sysconfdir}/nikto/plugins | ||
63 | install -m 0644 plugins/nikto_put_del_test.plugin ${D}${sysconfdir}/nikto/plugins | ||
64 | install -m 0644 plugins/nikto_report_csv.plugin ${D}${sysconfdir}/nikto/plugins | ||
65 | install -m 0644 plugins/nikto_report_html.plugin ${D}${sysconfdir}/nikto/plugins | ||
66 | install -m 0644 plugins/nikto_report_msf.plugin ${D}${sysconfdir}/nikto/plugins | ||
67 | install -m 0644 plugins/nikto_report_nbe.plugin ${D}${sysconfdir}/nikto/plugins | ||
68 | install -m 0644 plugins/nikto_report_text.plugin ${D}${sysconfdir}/nikto/plugins | ||
69 | install -m 0644 plugins/nikto_report_xml.plugin ${D}${sysconfdir}/nikto/plugins | ||
70 | install -m 0644 plugins/nikto_robots.plugin ${D}${sysconfdir}/nikto/plugins | ||
71 | install -m 0644 plugins/nikto_siebel.plugin ${D}${sysconfdir}/nikto/plugins | ||
72 | install -m 0644 plugins/nikto_ssl.plugin ${D}${sysconfdir}/nikto/plugins | ||
73 | install -m 0644 plugins/nikto_subdomain.plugin ${D}${sysconfdir}/nikto/plugins | ||
74 | install -m 0644 plugins/nikto_tests.plugin ${D}${sysconfdir}/nikto/plugins | ||
75 | |||
76 | install -m 0644 templates/htm_close.tmpl ${D}${sysconfdir}/nikto/templates | ||
77 | install -m 0644 templates/htm_end.tmpl ${D}${sysconfdir}/nikto/templates | ||
78 | install -m 0644 templates/htm_host_head.tmpl ${D}${sysconfdir}/nikto/templates | ||
79 | install -m 0644 templates/htm_host_im.tmpl ${D}${sysconfdir}/nikto/templates | ||
80 | install -m 0644 templates/htm_host_item.tmpl ${D}${sysconfdir}/nikto/templates | ||
81 | install -m 0644 templates/htm_start.tmpl ${D}${sysconfdir}/nikto/templates | ||
82 | install -m 0644 templates/htm_stop.tmpl ${D}${sysconfdir}/nikto/templates | ||
83 | install -m 0644 templates/htm_start.tmpl ${D}${sysconfdir}/nikto/templates | ||
84 | install -m 0644 templates/htm_summary.tmpl ${D}${sysconfdir}/nikto/templates | ||
85 | install -m 0644 templates/xml_end.tmpl ${D}${sysconfdir}/nikto/templates | ||
86 | install -m 0644 templates/xml_host_head.tmpl ${D}${sysconfdir}/nikto/templates | ||
87 | install -m 0644 templates/xml_host_im.tmpl ${D}${sysconfdir}/nikto/templates | ||
88 | install -m 0644 templates/xml_host_item.tmpl ${D}${sysconfdir}/nikto/templates | ||
89 | install -m 0644 templates/xml_start.tmpl ${D}${sysconfdir}/nikto/templates | ||
90 | install -m 0644 templates/xml_summary.tmpl ${D}${sysconfdir}/nikto/templates | ||
91 | |||
92 | install -m 0644 nikto.conf ${D}${sysconfdir} | ||
93 | |||
94 | install -m 0755 nikto.pl ${D}${bindir}/nikto | ||
95 | install -m 0644 replay.pl ${D}${bindir} | ||
96 | install -m 0644 docs/nikto.1 ${D}${datadir}/man/man1 | ||
97 | |||
98 | install -m 0644 docs/CHANGES.txt ${D}${datadir}/doc/nikto | ||
99 | install -m 0644 docs/LICENSE.txt ${D}${datadir}/doc/nikto | ||
100 | install -m 0644 docs/nikto.dtd ${D}${datadir}/doc/nikto | ||
101 | install -m 0644 docs/nikto_manual.html ${D}${datadir}/doc/nikto | ||
102 | } | ||
103 | |||
104 | RDEPENDS_${PN} = "perl libnet-ssleay-perl libwhisker2-perl \ | ||
105 | perl-module-getopt-long perl-module-time-local \ | ||
106 | perl-module-io-socket perl-module-overloading \ | ||
107 | perl-module-base perl-module-b perl-module-bytes \ | ||
108 | nikto-doc" | ||
diff --git a/recipes-security/nikto/nikto_2.1.6.bb b/recipes-security/nikto/nikto_2.1.6.bb new file mode 100644 index 0000000..2d2c46c --- /dev/null +++ b/recipes-security/nikto/nikto_2.1.6.bb | |||
@@ -0,0 +1,118 @@ | |||
1 | SUMMARY = "web server scanner" | ||
2 | DESCRIPTION = "Nikto is an Open Source web server scanner which performs comprehensive tests against web servers" | ||
3 | SECTION = "security" | ||
4 | HOMEPAGE = "https://cirt.net/Nikto2" | ||
5 | |||
6 | LICENSE = "GPLv2" | ||
7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" | ||
8 | |||
9 | SRCREV = "f1bbd1a8756c076c8fd4f4dd0bc34a8ef215ae79" | ||
10 | SRC_URI = "git://github.com/sullo/nikto.git \ | ||
11 | file://location.patch" | ||
12 | |||
13 | S = "${WORKDIR}/git/program" | ||
14 | |||
15 | do_install() { | ||
16 | install -d ${D}${bindir} | ||
17 | install -d ${D}${datadir} | ||
18 | install -d ${D}${datadir}/man/man1 | ||
19 | install -d ${D}${datadir}/doc/nikto | ||
20 | install -d ${D}${sysconfdir}/nikto | ||
21 | install -d ${D}${sysconfdir}/nikto/databases | ||
22 | install -d ${D}${sysconfdir}/nikto/plugins | ||
23 | install -d ${D}${sysconfdir}/nikto/templates | ||
24 | |||
25 | install -m 0644 databases/db_404_strings ${D}${sysconfdir}/nikto/databases | ||
26 | install -m 0644 databases/db_content_search ${D}${sysconfdir}/nikto/databases | ||
27 | install -m 0644 databases/db_dictionary ${D}${sysconfdir}/nikto/databases | ||
28 | install -m 0644 databases/db_dir_traversal ${D}${sysconfdir}/nikto/databases | ||
29 | install -m 0644 databases/db_domino ${D}${sysconfdir}/nikto/databases | ||
30 | install -m 0644 databases/db_drupal ${D}${sysconfdir}/nikto/databases | ||
31 | install -m 0644 databases/db_embedded ${D}${sysconfdir}/nikto/databases | ||
32 | install -m 0644 databases/db_favicon ${D}${sysconfdir}/nikto/databases | ||
33 | install -m 0644 databases/db_headers ${D}${sysconfdir}/nikto/databases | ||
34 | install -m 0644 databases/db_httpoptions ${D}${sysconfdir}/nikto/databases | ||
35 | install -m 0644 databases/db_multiple_index ${D}${sysconfdir}/nikto/databases | ||
36 | install -m 0644 databases/db_outdated ${D}${sysconfdir}/nikto/databases | ||
37 | install -m 0644 databases/db_parked_strings ${D}${sysconfdir}/nikto/databases | ||
38 | install -m 0644 databases/db_realms ${D}${sysconfdir}/nikto/databases | ||
39 | install -m 0644 databases/db_server_msgs ${D}${sysconfdir}/nikto/databases | ||
40 | install -m 0644 databases/db_tests ${D}${sysconfdir}/nikto/databases | ||
41 | install -m 0644 databases/db_variables ${D}${sysconfdir}/nikto/databases | ||
42 | |||
43 | install -m 0644 plugins/LW2.pm ${D}${sysconfdir}/nikto/plugins | ||
44 | install -m 0644 plugins/nikto_apache_expect_xss.plugin ${D}${sysconfdir}/nikto/plugins | ||
45 | install -m 0644 plugins/nikto_apacheusers.plugin ${D}${sysconfdir}/nikto/plugins | ||
46 | install -m 0644 plugins/nikto_auth.plugin ${D}${sysconfdir}/nikto/plugins | ||
47 | install -m 0644 plugins/nikto_cgi.plugin ${D}${sysconfdir}/nikto/plugins | ||
48 | install -m 0644 plugins/nikto_clientaccesspolicy.plugin ${D}${sysconfdir}/nikto/plugins | ||
49 | install -m 0644 plugins/nikto_content_search.plugin ${D}${sysconfdir}/nikto/plugins | ||
50 | install -m 0644 plugins/nikto_cookies.plugin ${D}${sysconfdir}/nikto/plugins | ||
51 | install -m 0644 plugins/nikto_core.plugin ${D}${sysconfdir}/nikto/plugins | ||
52 | install -m 0644 plugins/nikto_dictionary_attack.plugin ${D}${sysconfdir}/nikto/plugins | ||
53 | install -m 0644 plugins/nikto_dir_traversal.plugin ${D}${sysconfdir}/nikto/plugins | ||
54 | install -m 0644 plugins/nikto_dishwasher.plugin ${D}${sysconfdir}/nikto/plugins | ||
55 | install -m 0644 plugins/nikto_docker_registry.plugin ${D}${sysconfdir}/nikto/plugins | ||
56 | install -m 0644 plugins/nikto_domino.plugin ${D}${sysconfdir}/nikto/plugins | ||
57 | install -m 0644 plugins/nikto_drupal.plugin ${D}${sysconfdir}/nikto/plugins | ||
58 | install -m 0644 plugins/nikto_embedded.plugin ${D}${sysconfdir}/nikto/plugins | ||
59 | install -m 0644 plugins/nikto_favicon.plugin ${D}${sysconfdir}/nikto/plugins | ||
60 | install -m 0644 plugins/nikto_fileops.plugin ${D}${sysconfdir}/nikto/plugins | ||
61 | install -m 0644 plugins/nikto_headers.plugin ${D}${sysconfdir}/nikto/plugins | ||
62 | install -m 0644 plugins/nikto_httpoptions.plugin ${D}${sysconfdir}/nikto/plugins | ||
63 | install -m 0644 plugins/nikto_ms10_070.plugin ${D}${sysconfdir}/nikto/plugins | ||
64 | install -m 0644 plugins/nikto_msgs.plugin ${D}${sysconfdir}/nikto/plugins | ||
65 | install -m 0644 plugins/nikto_multiple_index.plugin ${D}${sysconfdir}/nikto/plugins | ||
66 | install -m 0644 plugins/nikto_negotiate.plugin ${D}${sysconfdir}/nikto/plugins | ||
67 | install -m 0644 plugins/nikto_origin_reflection.plugin ${D}${sysconfdir}/nikto/plugins | ||
68 | install -m 0644 plugins/nikto_outdated.plugin ${D}${sysconfdir}/nikto/plugins | ||
69 | install -m 0644 plugins/nikto_parked.plugin ${D}${sysconfdir}/nikto/plugins | ||
70 | install -m 0644 plugins/nikto_paths.plugin ${D}${sysconfdir}/nikto/plugins | ||
71 | install -m 0644 plugins/nikto_put_del_test.plugin ${D}${sysconfdir}/nikto/plugins | ||
72 | install -m 0644 plugins/nikto_report_csv.plugin ${D}${sysconfdir}/nikto/plugins | ||
73 | install -m 0644 plugins/nikto_report_html.plugin ${D}${sysconfdir}/nikto/plugins | ||
74 | install -m 0644 plugins/nikto_report_json.plugin ${D}${sysconfdir}/nikto/plugins | ||
75 | install -m 0644 plugins/nikto_report_nbe.plugin ${D}${sysconfdir}/nikto/plugins | ||
76 | install -m 0644 plugins/nikto_report_sqlg.plugin ${D}${sysconfdir}/nikto/plugins | ||
77 | install -m 0644 plugins/nikto_report_text.plugin ${D}${sysconfdir}/nikto/plugins | ||
78 | install -m 0644 plugins/nikto_report_xml.plugin ${D}${sysconfdir}/nikto/plugins | ||
79 | install -m 0644 plugins/nikto_robots.plugin ${D}${sysconfdir}/nikto/plugins | ||
80 | install -m 0644 plugins/nikto_siebel.plugin ${D}${sysconfdir}/nikto/plugins | ||
81 | install -m 0644 plugins/nikto_sitefiles.plugin ${D}${sysconfdir}/nikto/plugins | ||
82 | install -m 0644 plugins/nikto_ssl.plugin ${D}${sysconfdir}/nikto/plugins | ||
83 | install -m 0644 plugins/nikto_strutshock.plugin ${D}${sysconfdir}/nikto/plugins | ||
84 | install -m 0644 plugins/nikto_tests.plugin ${D}${sysconfdir}/nikto/plugins | ||
85 | |||
86 | install -m 0644 templates/htm_close.tmpl ${D}${sysconfdir}/nikto/templates | ||
87 | install -m 0644 templates/htm_end.tmpl ${D}${sysconfdir}/nikto/templates | ||
88 | install -m 0644 templates/htm_host_head.tmpl ${D}${sysconfdir}/nikto/templates | ||
89 | install -m 0644 templates/htm_host_im.tmpl ${D}${sysconfdir}/nikto/templates | ||
90 | install -m 0644 templates/htm_host_item.tmpl ${D}${sysconfdir}/nikto/templates | ||
91 | install -m 0644 templates/htm_start.tmpl ${D}${sysconfdir}/nikto/templates | ||
92 | install -m 0644 templates/htm_stop.tmpl ${D}${sysconfdir}/nikto/templates | ||
93 | install -m 0644 templates/htm_start.tmpl ${D}${sysconfdir}/nikto/templates | ||
94 | install -m 0644 templates/htm_summary.tmpl ${D}${sysconfdir}/nikto/templates | ||
95 | install -m 0644 templates/xml_end.tmpl ${D}${sysconfdir}/nikto/templates | ||
96 | install -m 0644 templates/xml_host_head.tmpl ${D}${sysconfdir}/nikto/templates | ||
97 | install -m 0644 templates/xml_host_im.tmpl ${D}${sysconfdir}/nikto/templates | ||
98 | install -m 0644 templates/xml_host_item.tmpl ${D}${sysconfdir}/nikto/templates | ||
99 | install -m 0644 templates/xml_start.tmpl ${D}${sysconfdir}/nikto/templates | ||
100 | install -m 0644 templates/xml_summary.tmpl ${D}${sysconfdir}/nikto/templates | ||
101 | |||
102 | install -m 0644 nikto.conf ${D}${sysconfdir} | ||
103 | |||
104 | install -m 0755 nikto.pl ${D}${bindir}/nikto | ||
105 | install -m 0644 replay.pl ${D}${bindir} | ||
106 | install -m 0644 docs/nikto.1 ${D}${datadir}/man/man1 | ||
107 | |||
108 | install -m 0644 docs/CHANGES.txt ${D}${datadir}/doc/nikto | ||
109 | install -m 0644 docs/LICENSE.txt ${D}${datadir}/doc/nikto | ||
110 | install -m 0644 docs/nikto.dtd ${D}${datadir}/doc/nikto | ||
111 | install -m 0644 docs/nikto_manual.html ${D}${datadir}/doc/nikto | ||
112 | } | ||
113 | |||
114 | RDEPENDS_${PN} = "perl libnet-ssleay-perl libwhisker2-perl \ | ||
115 | perl-module-getopt-long perl-module-time-local \ | ||
116 | perl-module-io-socket perl-module-overloading \ | ||
117 | perl-module-base perl-module-b perl-module-bytes" | ||
118 | |||