import samdump2
samdump2 is a tool for dumping Windows 2k/NT/XP password hashes. with some tweaks by and ok ajacoutot@
This commit is contained in:
parent
65293da194
commit
2f0c8163e7
37
security/samdump2/Makefile
Normal file
37
security/samdump2/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/06/02 08:36:01 benoit Exp $
|
||||
|
||||
COMMENT = retrieves syskey and extract hashes
|
||||
|
||||
DISTNAME = samdump2-2.0.1
|
||||
CATEGORIES = security
|
||||
|
||||
HOMEPAGE = http://ophcrack.sourceforge.net/
|
||||
|
||||
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB = c ssl crypto
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=ophcrack/}
|
||||
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS}"
|
||||
|
||||
USE_GMAKE = Yes
|
||||
|
||||
NO_REGRESS = Yes
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/Makefile
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/samdump2 ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/samdump2.1 ${PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
5
security/samdump2/distinfo
Normal file
5
security/samdump2/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (samdump2-2.0.1.tar.bz2) = 2CMOTBaSEC0giLDvy3Q4vg==
|
||||
RMD160 (samdump2-2.0.1.tar.bz2) = 1VvX1h1lUedFWSFFkNCL1bovlYY=
|
||||
SHA1 (samdump2-2.0.1.tar.bz2) = BgkiPl2UsNMv/FiLmYb7cUk7OTE=
|
||||
SHA256 (samdump2-2.0.1.tar.bz2) = +Wab11op4FAjW0WtVwMOcxGYT4NGaIhcxcO38QDfPks=
|
||||
SIZE (samdump2-2.0.1.tar.bz2) = 20673
|
28
security/samdump2/patches/patch-Makefile
Normal file
28
security/samdump2/patches/patch-Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2009/06/02 08:36:02 benoit Exp $
|
||||
--- Makefile.orig Thu Oct 2 15:44:47 2008
|
||||
+++ Makefile Tue Jun 2 09:24:11 2009
|
||||
@@ -24,13 +24,13 @@ DISTFILES = AUTHORS ChangeLog hive.c LICENSE list.h Ma
|
||||
samdump2.1 samdump2.h bkhive.c COPYING hive.h list.c\
|
||||
main.c README samdump2.c
|
||||
DESTDIR =
|
||||
-PREFIX = /usr/local/
|
||||
+PREFIX = ${PREFIX}
|
||||
BINDIR = $(PREFIX)/bin
|
||||
MANDIR = $(PREFIX)/share/man/man1
|
||||
INSTALL = $(shell which install)
|
||||
CC = $(shell which gcc)
|
||||
CFLAGS = -Wall
|
||||
-LIBS = -lssl
|
||||
+LIBS = -lssl -lcrypto
|
||||
|
||||
# Default target
|
||||
all: build
|
||||
@@ -49,7 +49,7 @@ clean:
|
||||
@echo ""
|
||||
|
||||
# Install target
|
||||
-install: build infos
|
||||
+install: build
|
||||
@echo "Creating directories..."
|
||||
$(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(BINDIR)
|
||||
$(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(MANDIR)
|
15
security/samdump2/patches/patch-bkhive_c
Normal file
15
security/samdump2/patches/patch-bkhive_c
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-bkhive_c,v 1.1.1.1 2009/06/02 08:36:02 benoit Exp $
|
||||
--- bkhive.c.orig Thu Oct 2 15:44:47 2008
|
||||
+++ bkhive.c Thu May 28 23:25:32 2009
|
||||
@@ -34,7 +34,11 @@
|
||||
#ifdef BYTE_ORDER
|
||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||
#elif BYTE_ORDER == BIG_ENDIAN
|
||||
+#ifndef __OpenBSD__
|
||||
#include <byteswap.h>
|
||||
+#else
|
||||
+#include <sys/endian.h>
|
||||
+#endif
|
||||
#else
|
||||
#warning "Doesn't define a standard ENDIAN type"
|
||||
#endif
|
21
security/samdump2/patches/patch-hive_c
Normal file
21
security/samdump2/patches/patch-hive_c
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-hive_c,v 1.1.1.1 2009/06/02 08:36:02 benoit Exp $
|
||||
--- hive.c.orig Thu May 28 21:14:36 2009
|
||||
+++ hive.c Thu May 28 21:43:50 2009
|
||||
@@ -27,11 +27,16 @@
|
||||
#include <sys/param.h>
|
||||
#include "hive.h"
|
||||
|
||||
-
|
||||
#ifdef BYTE_ORDER
|
||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||
#elif BYTE_ORDER == BIG_ENDIAN
|
||||
+#ifndef __OpenBSD__
|
||||
#include <byteswap.h>
|
||||
+#else
|
||||
+#include <sys/endian.h>
|
||||
+#define __bswap_32 __swap32
|
||||
+#define __bswap_16 __swap16
|
||||
+#endif
|
||||
#else
|
||||
#warning "Doesn't define a standard ENDIAN type"
|
||||
#endif
|
16
security/samdump2/patches/patch-samdump2_c
Normal file
16
security/samdump2/patches/patch-samdump2_c
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-samdump2_c,v 1.1.1.1 2009/06/02 08:36:02 benoit Exp $
|
||||
--- samdump2.c.orig Thu Oct 2 15:44:47 2008
|
||||
+++ samdump2.c Thu May 28 23:24:23 2009
|
||||
@@ -41,7 +41,12 @@
|
||||
#ifdef BYTE_ORDER
|
||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||
#elif BYTE_ORDER == BIG_ENDIAN
|
||||
+#ifndef __OpenBSD__
|
||||
#include <byteswap.h>
|
||||
+#else
|
||||
+#include <sys/endian.h>
|
||||
+#define __bswap_32 __swap32
|
||||
+#endif
|
||||
#else
|
||||
#warning "Doesn't define a standard ENDIAN type"
|
||||
#endif
|
1
security/samdump2/pkg/DESCR
Normal file
1
security/samdump2/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
samdump2 is a tool for dumping Windows 2k/NT/XP password hashes.
|
3
security/samdump2/pkg/PLIST
Normal file
3
security/samdump2/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/06/02 08:36:02 benoit Exp $
|
||||
@bin bin/samdump2
|
||||
@man man/man1/samdump2.1
|
Loading…
Reference in New Issue
Block a user