dirb: fix default wordlist path
This commit is contained in:
parent
8954d420cc
commit
06d33fb3d0
3 changed files with 16 additions and 1 deletions
11
dirb/SOURCES/update-default-wordlist-path.patch
Normal file
11
dirb/SOURCES/update-default-wordlist-path.patch
Normal file
|
@ -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);
|
Binary file not shown.
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
Name: dirb
|
Name: dirb
|
||||||
Version: 2.22
|
Version: 2.22
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: DIRB is a Web Content Scanner
|
Summary: DIRB is a Web Content Scanner
|
||||||
|
|
||||||
%global _version %(v=%{version}; echo ${v/./})
|
%global _version %(v=%{version}; echo ${v/./})
|
||||||
|
@ -12,6 +12,7 @@ License: GPLv2
|
||||||
URL: http://dirb.sourceforge.net/
|
URL: http://dirb.sourceforge.net/
|
||||||
Source: dirb%{_version}.tar.gz
|
Source: dirb%{_version}.tar.gz
|
||||||
Patch: Fix-DIRB-for-GCC-10.patch
|
Patch: Fix-DIRB-for-GCC-10.patch
|
||||||
|
Patch1: update-default-wordlist-path.patch
|
||||||
|
|
||||||
BuildRequires: libcurl-devel autoconf gcc make
|
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
|
%doc LICENSE.txt README.txt docs/GENDICT.TXT docs/FAQ.txt docs/TRICKS.txt docs/CHANGES.txt
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed May 19 2021 Carlos Mogas da Silva <r3pek@r3pek.org> - 2.22-1
|
||||||
- Initial release on COPR
|
- Initial release on COPR
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue