Summary: DIRB is a Web Content Scanner.
Name:    dirb
Version: 222
Release: 3
Source0:  http://downloads.sourceforge.net/dirb/dirb%{version}.tar.gz
License: GNU GPLv2
URL: http://dirb.sourceforge.net/
Group: Applications/Internet
Packager: Scott R. Shinn <scott@atomicorp.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Prefix: %{_prefix}

BuildRequires: curl-devel


%description
DIRB is a Web Content Scanner. It looks for existing (and/or hidden) Web 
Objects. It basically works by launching a dictionary based attack against 
a web server and analizing the response.

DIRB comes with a set of preconfigured attack wordlists for easy usage but 
you can use your custom wordlists. Also DIRB sometimes can be used as a 
classic CGI scanner, but remember is a content scanner not a vulnerability 
scanner.

DIRB main purpose is to help in professional web application auditing. 
Specially in security related testing. It covers some holes not covered by 
classic web vulnerability scanners. DIRB looks for specific web objects that 
other generic CGI scanners can't look for. It doesn't search vulnerabilities 
nor does it look for web contents that can be vulnerables.

Maybe the last try for an unlucky security analyst... :)


%prep

%setup -n %{name}%{version}
#%setup -n dirb221

%build
%configure 
make %{?_smp_mflags}


%install
make install DESTDIR=%{buildroot}
cp docs/* .



%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc README.txt CHANGES.txt FAQ.txt LICENSE.txt TODO.txt TRICKS.txt GENDICT.TXT
/usr/bin/dirb
/usr/bin/gendict
/usr/bin/html2dic
/usr/share/man/man1/dirb.1.gz


%changelog
* Wed Dec 23 2015 Scott R. Shinn <scott@atomicorp.com> - 222-3
- Update to 222

* Sat Aug 3 2013 Scott R. Shinn <scott@atomicorp.com> - 221-2
- Update to 221

* Sat Feb 16 2013 Scott R. Shinn <scott@atomicorp.com> - 203-1
- Initial build
- Exit 1 if download fails on either NVT or SCAP data during setup