[packages/nikto] Up to 2.6.1

arekm arekm at pld-linux.org
Sat Nov 28 17:47:49 CET 2026


commit 85326c46b956ffe55fc338f147976059574bdbfd
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 27 16:17:42 2026 +0100

    Up to 2.6.1
    
    Fixes CVE-2018-11652.

 nikto-paths.patch | 38 +++++++++++++-------------------------
 nikto.spec        | 23 +++++++++++++----------
 2 files changed, 26 insertions(+), 35 deletions(-)
---
diff --git a/nikto.spec b/nikto.spec
index 6d577e7..bfec6d9 100644
--- a/nikto.spec
+++ b/nikto.spec
@@ -1,14 +1,16 @@
 Summary:	Web server assessment tool
 Summary(pl.UTF-8):	Skrypt do testowania zabezpieczeń serwera WWW
 Name:		nikto
-Version:	2.1.5
-Release:	2
+Version:	2.6.1
+Release:	1
 License:	GPL
 Group:		Networking
-Source0:	http://www.cirt.net/nikto/%{name}-%{version}.tar.bz2
-# Source0-md5:	35ac9f11ab4aa0d5b8449748338bd159
-URL:		http://www.cirt.net/nikto2/
+Source0:	https://github.com/sullo/nikto/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	cbf951a036d457cc1848c0f227572848
+URL:		https://cirt.net/Nikto2
 Patch0:		%{name}-paths.patch
+Requires:	perl-XML-Writer
+Requires:	perl-modules
 Suggests:	nmap
 Suggests:	perl-Net-SSLeay
 Suggests:	openssl-devel
@@ -31,15 +33,16 @@ serwerze www.
 %patch -P0 -p1
 
 %build
+%{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' program/nikto.pl
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_datadir}/%{name},%{_mandir}/man1}
 
-install nikto.conf $RPM_BUILD_ROOT%{_sysconfdir}
-cp -a nikto.pl $RPM_BUILD_ROOT%{_bindir}
-cp -a databases plugins templates $RPM_BUILD_ROOT%{_datadir}/%{name}
-cp -a docs/nikto.1 $RPM_BUILD_ROOT%{_mandir}/man1
+install program/nikto.conf.default $RPM_BUILD_ROOT%{_sysconfdir}/nikto.conf
+install program/nikto.pl $RPM_BUILD_ROOT%{_bindir}
+cp -a program/{databases,plugins,templates} $RPM_BUILD_ROOT%{_datadir}/%{name}
+install documentation/nikto.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -47,7 +50,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/nikto.pl
-%doc docs/*.txt docs/nikto.dtd docs/nikto_manual.html
+%doc README.md documentation/nikto_schema_*.sql
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nikto.conf
 %{_datadir}/%{name}
 %{_mandir}/man1/nikto.1*
diff --git a/nikto-paths.patch b/nikto-paths.patch
index e2def82..174477d 100644
--- a/nikto-paths.patch
+++ b/nikto-paths.patch
@@ -1,29 +1,17 @@
-diff -urN nikto-2.1.5.orig/nikto.conf nikto-2.1.5/nikto.conf
---- nikto-2.1.5.orig/nikto.conf	2012-12-01 11:55:47.000000000 +0100
-+++ nikto-2.1.5/nikto.conf	2012-12-01 12:05:49.000000000 +0100
-@@ -23,7 +23,7 @@
- #SKIPIDS=
- 
- # The DTD
--NIKTODTD=docs/nikto.dtd
-+NIKTODTD=/usr/share/doc/nikto-2.1.5/nikto.dtd
- 
- # the default HTTP version to try... can/will be changed as necessary
- DEFAULTHTTPVER=1.0
-@@ -61,11 +61,11 @@
- CHECKMETHODS=HEAD GET
+--- nikto-2.6.1.orig/program/nikto.conf.default
++++ nikto-2.6.1/program/nikto.conf.default
+@@ -53,10 +53,10 @@
+ CHECKMETHODS=GET
  
  # If you want to specify the location of any of the files, specify them here
--# EXECDIR=/opt/nikto				# Location of Nikto
--# PLUGINDIR=/opt/nikto/plugins			# Location of plugin dir
--# DBDIR=/opt/nikto/databases			# Location of plugin dir
--# TEMPLATEDIR=/opt/nikto/templates		# Location of tempmlate dir
--# DOCDIR=/opt/nikto/docs			# Location of docs dir
-+EXECDIR=/usr/share/nikto			# Location of Nikto
-+PLUGINDIR=/usr/share/nikto/plugins		# Location of plugin dir
-+DBDIR=/usr/share/nikto/databases		# Location of plugin dir
-+TEMPLATEDIR=/usr/share/nikto/templates		# Location of tempmlate dir
-+DOCDIR=/usr/share/doc/nikto-2.1.5		# Location of docs dir
+-# EXECDIR=/opt/nikto                    # Location of Nikto
+-# PLUGINDIR=/opt/nikto/plugins          # Location of plugin dir
+-# DBDIR=/opt/nikto/databases            # Location of database dir
+-# TEMPLATEDIR=/opt/nikto/templates      # Location of template dir
++EXECDIR=/usr/share/nikto                # Location of Nikto
++PLUGINDIR=/usr/share/nikto/plugins      # Location of plugin dir
++DBDIR=/usr/share/nikto/databases        # Location of database dir
++TEMPLATEDIR=/usr/share/nikto/templates  # Location of template dir
+ # DOCDIR=/opt/nikto/docs                # Location of docs dir
  
  # Default plugin macros
- @@MUTATE=dictionary;subdomain
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nikto.git/commitdiff/85326c46b956ffe55fc338f147976059574bdbfd



More information about the pld-cvs-commit mailing list