diff --git a/dirb/SOURCES/update-default-wordlist-path.patch b/dirb/SOURCES/update-default-wordlist-path.patch new file mode 100644 index 0000000..22ff34a --- /dev/null +++ b/dirb/SOURCES/update-default-wordlist-path.patch @@ -0,0 +1,11 @@ +--- a/src/dirb.c 2014-04-05 15:13:49.000000000 +0100 ++++ b/src/dirb.c 2021-05-23 21:25:59.634104225 +0100 +@@ -59,7 +59,7 @@ + strncpy(options.url_inicial, argv[1], STRING_SIZE-1); + + if(argc==2 || strncmp(argv[2], "-", 1)==0) { +- strncpy(options.mfile, "/usr/share/dirb/wordlists/common.txt", STRING_SIZE-1); ++ strncpy(options.mfile, "/usr/share/dirb/common.txt", STRING_SIZE-1); + optind+=1; + } else { + strncpy(options.mfile, argv[2], STRING_SIZE-1); diff --git a/dirb/dirb-2.22-1.fc34.src.rpm b/dirb/dirb-2.22-2.fc34.src.rpm similarity index 82% rename from dirb/dirb-2.22-1.fc34.src.rpm rename to dirb/dirb-2.22-2.fc34.src.rpm index 7c1d78d..2de31ad 100644 Binary files a/dirb/dirb-2.22-1.fc34.src.rpm and b/dirb/dirb-2.22-2.fc34.src.rpm differ diff --git a/dirb/dirb.spec b/dirb/dirb.spec index b5756fe..1301573 100644 --- a/dirb/dirb.spec +++ b/dirb/dirb.spec @@ -3,7 +3,7 @@ Name: dirb Version: 2.22 -Release: 1%{?dist} +Release: 2%{?dist} Summary: DIRB is a Web Content Scanner %global _version %(v=%{version}; echo ${v/./}) @@ -12,6 +12,7 @@ License: GPLv2 URL: http://dirb.sourceforge.net/ Source: dirb%{_version}.tar.gz Patch: Fix-DIRB-for-GCC-10.patch +Patch1: update-default-wordlist-path.patch BuildRequires: libcurl-devel autoconf gcc make @@ -46,6 +47,9 @@ find wordlists/vulns -maxdepth 1 -type f -exec install -m 0644 '{}' %buildroot/% %doc LICENSE.txt README.txt docs/GENDICT.TXT docs/FAQ.txt docs/TRICKS.txt docs/CHANGES.txt %changelog +* Sun May 23 2021 Carlos Mogas da Silva - 2.22-2 +- Update default wordlist path + * Wed May 19 2021 Carlos Mogas da Silva - 2.22-1 - Initial release on COPR