[samdump2] Initial load for Fedora 17

rebus rebus at fedoraproject.org
Tue Jun 26 23:39:34 UTC 2012


commit ef25b809043ade5a379017a5118c7d3eee5990e4
Author: Michal Ambroz <rebus at seznam.cz>
Date:   Wed Jun 27 01:39:07 2012 +0200

    Initial load for Fedora 17

 .gitignore             |    1 +
 samdump2-install.patch |   41 +++++++++++++++++++++++++++++++++++++++
 samdump2.spec          |   50 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 4 files changed, 93 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f6c849f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/samdump2-3.0.0.tar.bz2
diff --git a/samdump2-install.patch b/samdump2-install.patch
new file mode 100644
index 0000000..eace095
--- /dev/null
+++ b/samdump2-install.patch
@@ -0,0 +1,41 @@
+Binary files samdump2-3.0.0/bkhive.o and samdump2-3.0.0.new/bkhive.o differ
+Binary files samdump2-3.0.0/hive.o and samdump2-3.0.0.new/hive.o differ
+Binary files samdump2-3.0.0/list.o and samdump2-3.0.0.new/list.o differ
+diff -ru samdump2-3.0.0/Makefile samdump2-3.0.0.new/Makefile
+--- samdump2-3.0.0/Makefile	2012-04-20 14:27:00.000000000 +0200
++++ samdump2-3.0.0.new/Makefile	2012-05-28 04:27:47.022022297 +0200
+@@ -31,12 +31,16 @@
+ CC	  = $(shell which gcc)
+ CFLAGS    = -Wall 
+ LIBS      = -lssl
++OWNER     = root
++GROUP     = root
+ 
+ # Default target
+ all: build
+ 
+ build: samdump2
+ 
++infos: samdump2.1
++
+ samdump2: hive.o list.o bkhive.o samdump2.o main.o dumpsam.o
+ 	@echo "Building binary..."
+ 	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
+@@ -51,12 +55,12 @@
+ # Install target
+ install: build infos
+ 	@echo "Creating directories..."
+-	$(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(BINDIR)
+-	$(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(MANDIR)
++	$(INSTALL) -d -m 755 -o $(OWNER) -g $(GROUP) $(DESTDIR)$(BINDIR)
++	$(INSTALL) -d -m 755 -o $(OWNER) -g $(GROUP) $(DESTDIR)$(MANDIR)
+ 	@echo "Copying binary..."
+-	$(INSTALL) samdump2 -m 755 -o root -g root $(DESTDIR)$(BINDIR)
++	$(INSTALL) samdump2 -m 755 -o $(OWNER) -g $(GROUP) $(DESTDIR)$(BINDIR)
+ 	@echo "Installing man page..."
+-	$(INSTALL) samdump2.1 -m 644 -o root -g root $(DESTDIR)$(MANDIR)
++	$(INSTALL) samdump2.1 -m 644 -o $(OWNER) -g $(GROUP) $(DESTDIR)$(MANDIR)
+ 	@echo ""
+ 
+ # Uninstall target
+Binary files samdump2-3.0.0/samdump2 and samdump2-3.0.0.new/samdump2 differ
diff --git a/samdump2.spec b/samdump2.spec
new file mode 100644
index 0000000..aabc9be
--- /dev/null
+++ b/samdump2.spec
@@ -0,0 +1,50 @@
+Name:           samdump2
+Version:        3.0.0
+Release:        1%{?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 May 27 2012 Michal Ambroz <rebus AT seznam.cz> - 3.0.0-1
+- initial build for Fedora 17
+
diff --git a/sources b/sources
index e69de29..f5f86e7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5dac2dc3f8171a3dc86053d923a0e6f5  samdump2-3.0.0.tar.bz2


More information about the scm-commits mailing list