Remove security/samdump2

Last updated over ten years ago, up-to-date security/ophcrack can do the
same and more, linux live CDs and what not offer better service than this
port.

OK benoit (maintainer)
This commit is contained in:
kn 2022-11-17 00:47:02 +00:00
parent c207f0c3d9
commit 984850d087
11 changed files with 3 additions and 178 deletions

View File

@ -3,7 +3,7 @@ CATEGORIES = devel databases
DISTFILES =
# API.rev
PKGNAME = quirks-6.64
PKGNAME = quirks-6.65
PKG_ARCH = *
MAINTAINER = Marc Espie <espie@openbsd.org>

View File

@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
# $OpenBSD: Quirks.pm,v 1.1459 2022/11/16 18:50:08 kn Exp $
# $OpenBSD: Quirks.pm,v 1.1460 2022/11/17 00:47:02 kn Exp $
#
# Copyright (c) 2009 Marc Espie <espie@openbsd.org>
#
@ -1746,6 +1746,7 @@ setup_obsolete_reason(
1 => 'despoof',
51 => 'zebedee',
3 => 'slurpie',
1 => 'samdump2',
);
# though it's not yet used, these should be pkgnames, so that eventually

View File

@ -350,7 +350,6 @@
SUBDIR += ruby-rbnacl
SUBDIR += ruby-rotp
SUBDIR += rust-openssl-tests
SUBDIR += samdump2
SUBDIR += scanlogd
SUBDIR += scanssh
SUBDIR += scrypt

View File

@ -1,32 +0,0 @@
COMMENT = retrieves syskey and extract hashes
DISTNAME = samdump2-3.0.0
CATEGORIES = security
HOMEPAGE = http://ophcrack.sourceforge.net/
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# GPLv2
PERMIT_PACKAGE = 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_TEST = 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>

View File

@ -1,2 +0,0 @@
SHA256 (samdump2-3.0.0.tar.bz2) = YCZZrzDFZXUPoBZQ4KIj0mNVtd+Y8vvDDjpsWT7U5SY=
SIZE (samdump2-3.0.0.tar.bz2) = 32784

View File

@ -1,27 +0,0 @@
--- 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)

View File

@ -1,14 +0,0 @@
--- 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 <endian.h>
+#endif
#else
#warning "Doesn't define a standard ENDIAN type"
#endif

View File

@ -1,16 +0,0 @@
--- hive.c.orig Fri Apr 20 14:27:00 2012
+++ hive.c Sat Apr 21 17:04:10 2012
@@ -30,7 +30,13 @@
#ifdef BYTE_ORDER
#if BYTE_ORDER == LITTLE_ENDIAN
#elif BYTE_ORDER == BIG_ENDIAN
+#ifndef __OpenBSD__
#include <byteswap.h>
+#else
+#include <endian.h>
+#define __bswap_32 __swap32
+#define __bswap_16 __swap16
+#endif
#else
#warning "Doesn't define a standard ENDIAN type"
#endif

View File

@ -1,81 +0,0 @@
--- samdump2.c.orig Fri Apr 20 14:27:00 2012
+++ samdump2.c Mon Apr 14 20:00:36 2014
@@ -41,8 +41,13 @@
#ifdef BYTE_ORDER
#if BYTE_ORDER == LITTLE_ENDIAN
#elif BYTE_ORDER == BIG_ENDIAN
+#ifndef __OpenBSD__
#include <byteswap.h>
#else
+#include <endian.h>
+#define __bswap_32 __swap32
+#endif
+#else
#warning "Doesn't define a standard ENDIAN type"
#endif
#else
@@ -72,7 +77,7 @@ void str_to_key(unsigned char *str,unsigned char *key)
for (i=0;i<8;i++) {
key[i] = (key[i]<<1);
}
- des_set_odd_parity((des_cblock *)key);
+ DES_set_odd_parity((DES_cblock *)key);
}
/*
@@ -210,8 +215,8 @@ unsigned char* utf16_to_utf8 (unsigned char *dest, uns
unsigned char hbootkey[0x20];
/* Des */
- des_key_schedule ks1, ks2;
- des_cblock deskey1, deskey2;
+ DES_key_schedule ks1, ks2;
+ DES_cblock deskey1, deskey2;
int i, j;
@@ -419,15 +424,15 @@ unsigned char* utf16_to_utf8 (unsigned char *dest, uns
/* Get the two decrpt keys. */
sid_to_key1(rid,(unsigned char *)deskey1);
- des_set_key_checked((des_cblock *)deskey1,ks1);
+ DES_set_key_checked((DES_cblock *)deskey1,&ks1);
sid_to_key2(rid,(unsigned char *)deskey2);
- des_set_key_unchecked((des_cblock *)deskey2,ks2);
+ DES_set_key_unchecked((DES_cblock *)deskey2,&ks2);
/* Decrypt the lanman password hash as two 8 byte blocks. */
- des_ecb_encrypt((des_cblock *)obfkey,
- (des_cblock *)fb, ks1, DES_DECRYPT);
- des_ecb_encrypt((des_cblock *)(obfkey + 8),
- (des_cblock *)&fb[8], ks2, DES_DECRYPT);
+ DES_ecb_encrypt((DES_cblock *)obfkey,
+ (DES_cblock *)fb, &ks1, DES_DECRYPT);
+ DES_ecb_encrypt((DES_cblock *)(obfkey + 8),
+ (DES_cblock *)&fb[8], &ks2, DES_DECRYPT);
@@ -472,16 +477,16 @@ unsigned char* utf16_to_utf8 (unsigned char *dest, uns
if (lm_size != 0x14) {
/* Get the two decrpt keys. */
sid_to_key1(rid,(unsigned char *)deskey1);
- des_set_key((des_cblock *)deskey1,ks1);
+ DES_set_key((DES_cblock *)deskey1,&ks1);
sid_to_key2(rid,(unsigned char *)deskey2);
- des_set_key((des_cblock *)deskey2,ks2);
+ DES_set_key((DES_cblock *)deskey2,&ks2);
}
/* Decrypt the NT md4 password hash as two 8 byte blocks. */
- des_ecb_encrypt((des_cblock *)obfkey,
- (des_cblock *)fb, ks1, DES_DECRYPT);
- des_ecb_encrypt((des_cblock *)(obfkey + 8),
- (des_cblock *)&fb[8], ks2, DES_DECRYPT);
+ DES_ecb_encrypt((DES_cblock *)obfkey,
+ (DES_cblock *)fb, &ks1, DES_DECRYPT);
+ DES_ecb_encrypt((DES_cblock *)(obfkey + 8),
+ (DES_cblock *)&fb[8], &ks2, DES_DECRYPT);
/* sf27 wrap to sf25 */
//sf27( obfkey, (int*)&rid, fb );

View File

@ -1 +0,0 @@
samdump2 is a tool for dumping Windows 2k/NT/XP password hashes.

View File

@ -1,2 +0,0 @@
@bin bin/samdump2
@man man/man1/samdump2.1