dirb: fix default wordlist path

master
Carlos Mogas da Silva 3 years ago
parent 8954d420cc
commit 06d33fb3d0
  1. 11
      dirb/SOURCES/update-default-wordlist-path.patch
  2. BIN
      dirb/dirb-2.22-2.fc34.src.rpm
  3. 6
      dirb/dirb.spec

@ -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);

@ -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 <r3pek@r3pek.org> - 2.22-2
- Update default wordlist path
* Wed May 19 2021 Carlos Mogas da Silva <r3pek@r3pek.org> - 2.22-1
- Initial release on COPR

Loading…
Cancel
Save