Name: samdump2
Version: 3.0.0
Release: 4%{?dist}
Summary: Retrieves syskey and extracts hashes from Windows 2k/NT/XP/Vista SAM
#MD5 RC4 DES functions are linked from openssl library
#Code of samdump2 is GPLv2+
License: GPLv2+
URL: http://sourceforge.net/projects/ophcrack/files/samdump2
Source0: http://downloads.sourceforge.net/ophcrack/%{name}-%{version}.tar.bz2
Patch0: %{name}-install.patch
BuildRequires: openssl-devel
#Requires:
%description
This tool is designed to recover the syskey bootkey from Windows NT/2K/XP/Vista
system hive and uses it to decrypt and dump password hashes from the SAM hive.
%prep
%setup -q
%patch0 -p 1 -b .install
%build
make %{?_smp_mflags} CFLAGS="%{optflags}" LIBS="-lssl -lcrypto"
%install
rm -rf %{buildroot}
OWNER=`id -un`
GROUP=`id -gn`
make install DESTDIR=%{buildroot} BINDIR=%{_bindir} MANDIR=%{_mandir}/man1/ OWNER=${OWNER} GROUP=${GROUP}
%files
%doc AUTHORS COPYING README LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%changelog
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sun May 27 2012 Michal Ambroz <rebus AT seznam.cz> - 3.0.0-1
- initial build for Fedora 17