pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mfoc-hardnested: Import mfoc-hardnested-0.10.9 as wip/mfoc-hardnested



Module Name:	pkgsrc-wip
Committed By:	Denis Bodor <lefinnois%lefinnois.net@localhost>
Pushed By:	drrb
Date:		Sun May 22 06:21:18 2022 +0200
Changeset:	44abba3daa8f46285348347bb4146435f7440485

Modified Files:
	Makefile
Added Files:
	mfoc-hardnested/DESCR
	mfoc-hardnested/Makefile
	mfoc-hardnested/PLIST
	mfoc-hardnested/distinfo
	mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__AVX.c
	mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__AVX2.c
	mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__AVX512.c
	mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__SSE2.c
	mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__AVX.c
	mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__AVX2.c
	mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__AVX512.c
	mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__SSE2.c

Log Message:
mfoc-hardnested: Import mfoc-hardnested-0.10.9 as wip/mfoc-hardnested

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=44abba3daa8f46285348347bb4146435f7440485

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |  1 +
 mfoc-hardnested/DESCR                              |  8 +++++++
 mfoc-hardnested/Makefile                           | 26 ++++++++++++++++++++++
 mfoc-hardnested/PLIST                              |  3 +++
 mfoc-hardnested/distinfo                           | 13 +++++++++++
 ...atch-src_hardnested_hardnested__bf__core__AVX.c | 24 ++++++++++++++++++++
 ...tch-src_hardnested_hardnested__bf__core__AVX2.c | 24 ++++++++++++++++++++
 ...h-src_hardnested_hardnested__bf__core__AVX512.c | 24 ++++++++++++++++++++
 ...tch-src_hardnested_hardnested__bf__core__SSE2.c | 24 ++++++++++++++++++++
 ...rc_hardnested_hardnested__bitarray__core__AVX.c | 23 +++++++++++++++++++
 ...c_hardnested_hardnested__bitarray__core__AVX2.c | 23 +++++++++++++++++++
 ...hardnested_hardnested__bitarray__core__AVX512.c | 23 +++++++++++++++++++
 ...c_hardnested_hardnested__bitarray__core__SSE2.c | 23 +++++++++++++++++++
 13 files changed, 239 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 71eb115623..050e265859 100644
--- a/Makefile
+++ b/Makefile
@@ -2398,6 +2398,7 @@ SUBDIR+=	metal
 SUBDIR+=	metalog
 SUBDIR+=	metasploit
 SUBDIR+=	mfoc
+SUBDIR+=	mfoc-hardnested
 SUBDIR+=	mg-cvs
 SUBDIR+=	mg-lsh
 SUBDIR+=	mic-paren
diff --git a/mfoc-hardnested/DESCR b/mfoc-hardnested/DESCR
new file mode 100644
index 0000000000..b5ff3c914d
--- /dev/null
+++ b/mfoc-hardnested/DESCR
@@ -0,0 +1,8 @@
+MFOC is an open source implementation of "offline nested" attack by Nethemba.
+Later was added so called "hardnested" attack by Carlo Meijer and Roel Verdult.
+
+This program allow to recover authentication keys from MIFARE Classic card.
+
+Please note MFOC is able to recover keys from target only if it have a known
+key: default one (hardcoded in MFOC) or custom one (user provided using command
+line).
diff --git a/mfoc-hardnested/Makefile b/mfoc-hardnested/Makefile
new file mode 100644
index 0000000000..40fb5bf263
--- /dev/null
+++ b/mfoc-hardnested/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD$
+
+DISTNAME=	${GHCOMMIT}
+PKGNAME=	mfoc-hardnested-0.10.9
+CATEGORIES=	security
+MASTER_SITES=	${MASTER_SITE_GITHUB:=nfc-tools/mfoc-hardnested/archive/}
+
+MAINTAINER=	lefinnois%lefinnois.net@localhost
+HOMEPAGE=	https://github.com/nfc-tools/mfoc-hardnested
+COMMENT=	Fork of Mifare Classic Offline Cracker with proxmark hardnested code
+LICENSE=	gnu-gpl-v2
+
+GHCOMMIT=	2c25bf05a0b13827b9d06382c5d384b2e5c88238
+USE_TOOLS+=	gmake automake autoconf pkg-config
+USE_LIBTOOL=	yes
+GNU_CONFIGURE=	yes
+HAS_CONFIGURE=	yes
+
+WRKSRC=		${WRKDIR}/mfoc-hardnested-${GHCOMMIT}
+
+pre-configure:
+	cd ${WRKSRC} && autoreconf -is
+
+.include "../../archivers/xz/buildlink3.mk"
+.include "../../wip/libnfc/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mfoc-hardnested/PLIST b/mfoc-hardnested/PLIST
new file mode 100644
index 0000000000..bba4e02c28
--- /dev/null
+++ b/mfoc-hardnested/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/mfoc-hardnested
+man/man1/mfoc-hardnested.1
diff --git a/mfoc-hardnested/distinfo b/mfoc-hardnested/distinfo
new file mode 100644
index 0000000000..ebc77b41f7
--- /dev/null
+++ b/mfoc-hardnested/distinfo
@@ -0,0 +1,13 @@
+$NetBSD$
+
+BLAKE2s (2c25bf05a0b13827b9d06382c5d384b2e5c88238.tar.gz) = ab68ece6e646d48d43ee559e25f9f03d6b26967e47197a16b275acfba172b7cf
+SHA512 (2c25bf05a0b13827b9d06382c5d384b2e5c88238.tar.gz) = 358aecabdb22fc55bc2aa4eff0c696d92a02cb968fdad400cbb3e9acf18b501b024b50860729368477e84b85382b1e1c5a8847cb243f64bac88fb85957341d32
+Size (2c25bf05a0b13827b9d06382c5d384b2e5c88238.tar.gz) = 1880616 bytes
+SHA1 (patch-src_hardnested_hardnested__bf__core__AVX.c) = b80e71ce77710eb0edf9c0767e8478c769a72ca7
+SHA1 (patch-src_hardnested_hardnested__bf__core__AVX2.c) = ea57c0649b581c10c6c2846c1f26297baa462921
+SHA1 (patch-src_hardnested_hardnested__bf__core__AVX512.c) = 007f9cf712dc49bfd531e85230fd039d3d06f88b
+SHA1 (patch-src_hardnested_hardnested__bf__core__SSE2.c) = 7882a60f987b65482d03f26b61a467aaeab319f5
+SHA1 (patch-src_hardnested_hardnested__bitarray__core__AVX.c) = fb22645d586fda91f1b99eff4c9d8e0a01a3046c
+SHA1 (patch-src_hardnested_hardnested__bitarray__core__AVX2.c) = 9140198972565d3ffc5f3f91efac3ef781de9962
+SHA1 (patch-src_hardnested_hardnested__bitarray__core__AVX512.c) = bcfc9c6990b6f3a1cb3cd65d8609b8b32ef6c937
+SHA1 (patch-src_hardnested_hardnested__bitarray__core__SSE2.c) = 05b18c57cea41802f760f322398552800496715c
diff --git a/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__AVX.c b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__AVX.c
new file mode 100644
index 0000000000..5a8c529617
--- /dev/null
+++ b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__AVX.c
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Fix unportable *memalign() call.
+
+--- src/hardnested/hardnested_bf_core_AVX.c.orig	2021-08-13 21:44:15.000000000 +0000
++++ src/hardnested/hardnested_bf_core_AVX.c
+@@ -49,7 +49,7 @@ THE SOFTWARE.
+ 
+ #include "hardnested_bruteforce.h"
+ #include <stdlib.h>
+-#if !defined _MSC_VER && !defined __APPLE__
++#if !defined _MSC_VER && !defined __APPLE__ && !defined __NetBSD__ && !defined __FreeBSD__ && !defined __dietlibc__ && !defined _AIX && !defined __OpenBSD__ && !defined __DragonFly__
+ #include <malloc.h>
+ #endif
+ #include "../crapto1.h"
+@@ -87,7 +87,7 @@ typedef union {
+ #if defined (_WIN32)
+ #define malloc_bitslice(x) __builtin_assume_aligned(_aligned_malloc((x), MAX_BITSLICES/8), MAX_BITSLICES/8)
+ #define free_bitslice(x) _aligned_free(x)
+-#elif defined (__APPLE__)
++#elif defined (__APPLE__) || defined (__NetBSD__) || defined (__FreeBSD__) || defined (__dietlibc__) || defined (_AIX) || defined (__OpenBSD__) || defined (__DragonFly__)
+ 
+ static void *malloc_bitslice(size_t x) {
+     char *allocated_memory;
diff --git a/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__AVX2.c b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__AVX2.c
new file mode 100644
index 0000000000..e03a15eee8
--- /dev/null
+++ b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__AVX2.c
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Fix unportable *memalign() call.
+
+--- src/hardnested/hardnested_bf_core_AVX2.c.orig	2021-08-13 21:44:15.000000000 +0000
++++ src/hardnested/hardnested_bf_core_AVX2.c
+@@ -49,7 +49,7 @@ THE SOFTWARE.
+ 
+ #include "hardnested_bruteforce.h"
+ #include <stdlib.h>
+-#if !defined _MSC_VER && !defined __APPLE__
++#if !defined _MSC_VER && !defined __APPLE__ && !defined __NetBSD__ && !defined __FreeBSD__ && !defined __dietlibc__ && !defined _AIX && !defined __OpenBSD__ && !defined __DragonFly__
+ #include <malloc.h>
+ #endif
+ #include "../crapto1.h"
+@@ -87,7 +87,7 @@ typedef union {
+ #if defined (_WIN32)
+ #define malloc_bitslice(x) __builtin_assume_aligned(_aligned_malloc((x), MAX_BITSLICES/8), MAX_BITSLICES/8)
+ #define free_bitslice(x) _aligned_free(x)
+-#elif defined (__APPLE__)
++#elif defined (__APPLE__) || defined (__NetBSD__) || defined (__FreeBSD__) || defined (__dietlibc__) || defined (_AIX) || defined (__OpenBSD__) || defined (__DragonFly__)
+ 
+ static void *malloc_bitslice(size_t x) {
+     char *allocated_memory;
diff --git a/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__AVX512.c b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__AVX512.c
new file mode 100644
index 0000000000..e4dad4d5cc
--- /dev/null
+++ b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__AVX512.c
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Fix unportable *memalign() call.
+
+--- src/hardnested/hardnested_bf_core_AVX512.c.orig	2021-08-13 21:44:15.000000000 +0000
++++ src/hardnested/hardnested_bf_core_AVX512.c
+@@ -49,7 +49,7 @@ THE SOFTWARE.
+ 
+ #include "hardnested_bruteforce.h"
+ #include <stdlib.h>
+-#if !defined _MSC_VER && !defined __APPLE__
++#if !defined _MSC_VER && !defined __APPLE__ && !defined __NetBSD__ && !defined __FreeBSD__ && !defined __dietlibc__ && !defined _AIX && !defined __OpenBSD__ && !defined __DragonFly__
+ #include <malloc.h>
+ #endif
+ #include "../crapto1.h"
+@@ -87,7 +87,7 @@ typedef union {
+ #if defined (_WIN32)
+ #define malloc_bitslice(x) __builtin_assume_aligned(_aligned_malloc((x), MAX_BITSLICES/8), MAX_BITSLICES/8)
+ #define free_bitslice(x) _aligned_free(x)
+-#elif defined (__APPLE__)
++#elif defined (__APPLE__) || defined (__NetBSD__) || defined (__FreeBSD__) || defined (__dietlibc__) || defined (_AIX) || defined (__OpenBSD__) || defined (__DragonFly__)
+ 
+ static void *malloc_bitslice(size_t x) {
+     char *allocated_memory;
diff --git a/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__SSE2.c b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__SSE2.c
new file mode 100644
index 0000000000..c6a90caf36
--- /dev/null
+++ b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bf__core__SSE2.c
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Fix unportable *memalign() call.
+
+--- src/hardnested/hardnested_bf_core_SSE2.c.orig	2021-08-13 21:44:15.000000000 +0000
++++ src/hardnested/hardnested_bf_core_SSE2.c
+@@ -49,7 +49,7 @@ THE SOFTWARE.
+ 
+ #include "hardnested_bruteforce.h"
+ #include <stdlib.h>
+-#if !defined _MSC_VER && !defined __APPLE__
++#if !defined _MSC_VER && !defined __APPLE__ && !defined __NetBSD__ && !defined __FreeBSD__ && !defined __dietlibc__ && !defined _AIX && !defined __OpenBSD__ && !defined __DragonFly__
+ #include <malloc.h>
+ #endif
+ #include "../crapto1.h"
+@@ -87,7 +87,7 @@ typedef union {
+ #if defined (_WIN32)
+ #define malloc_bitslice(x) __builtin_assume_aligned(_aligned_malloc((x), MAX_BITSLICES/8), MAX_BITSLICES/8)
+ #define free_bitslice(x) _aligned_free(x)
+-#elif defined (__APPLE__)
++#elif defined (__APPLE__) || defined (__NetBSD__) || defined (__FreeBSD__) || defined (__dietlibc__) || defined (_AIX) || defined (__OpenBSD__) || defined (__DragonFly__)
+ 
+ static void *malloc_bitslice(size_t x) {
+     char *allocated_memory;
diff --git a/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__AVX.c b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__AVX.c
new file mode 100644
index 0000000000..bb4e5b75de
--- /dev/null
+++ b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__AVX.c
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Fix unportable *memalign() call.
+
+--- src/hardnested/hardnested_bitarray_core_AVX.c.orig	2021-08-13 21:44:15.000000000 +0000
++++ src/hardnested/hardnested_bitarray_core_AVX.c
+@@ -18,14 +18,14 @@
+ 
+ #include <stdint.h>
+ #include <stdlib.h>
+-#if !defined _MSC_VER && !defined __APPLE__
++#if !defined _MSC_VER && !defined __APPLE__ && !defined __NetBSD__ && !defined __FreeBSD__ && !defined __dietlibc__ && !defined _AIX && !defined __OpenBSD__ && !defined __DragonFly__
+ #include <malloc.h>
+ #endif
+ 
+ uint32_t* malloc_bitarray_AVX(uint32_t x) {
+ #if defined (_WIN32)
+     return __builtin_assume_aligned(_aligned_malloc((x), 16), 16);
+-#elif defined (__APPLE__)
++#elif defined (__APPLE__) || defined (__NetBSD__) || defined (__FreeBSD__) || defined (__dietlibc__) || defined (_AIX) || defined (__OpenBSD__) || defined (__DragonFly__)
+     uint32_t *allocated_memory;
+     if (posix_memalign((void**) &allocated_memory, 16, x)) {
+         return NULL;
diff --git a/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__AVX2.c b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__AVX2.c
new file mode 100644
index 0000000000..89a15bd891
--- /dev/null
+++ b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__AVX2.c
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Fix unportable *memalign() call.
+
+--- src/hardnested/hardnested_bitarray_core_AVX2.c.orig	2021-08-13 21:44:15.000000000 +0000
++++ src/hardnested/hardnested_bitarray_core_AVX2.c
+@@ -18,14 +18,14 @@
+ 
+ #include <stdint.h>
+ #include <stdlib.h>
+-#if !defined _MSC_VER && !defined __APPLE__
++#if !defined _MSC_VER && !defined __APPLE__ && !defined __NetBSD__ && !defined __FreeBSD__ && !defined __dietlibc__ && !defined _AIX && !defined __OpenBSD__ && !defined __DragonFly__
+ #include <malloc.h>
+ #endif
+ 
+ uint32_t* malloc_bitarray_AVX2(uint32_t x) {
+ #if defined (_WIN32)
+     return __builtin_assume_aligned(_aligned_malloc((x), 16), 16);
+-#elif defined (__APPLE__)
++#elif defined (__APPLE__) || defined (__NetBSD__) || defined (__FreeBSD__) || defined (__dietlibc__) || defined (_AIX) || defined (__OpenBSD__) || defined (__DragonFly__)
+     uint32_t *allocated_memory;
+     if (posix_memalign((void**) &allocated_memory, 16, x)) {
+         return NULL;
diff --git a/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__AVX512.c b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__AVX512.c
new file mode 100644
index 0000000000..6def127a6d
--- /dev/null
+++ b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__AVX512.c
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Fix unportable *memalign() call.
+
+--- src/hardnested/hardnested_bitarray_core_AVX512.c.orig	2021-08-13 21:44:15.000000000 +0000
++++ src/hardnested/hardnested_bitarray_core_AVX512.c
+@@ -18,14 +18,14 @@
+ 
+ #include <stdint.h>
+ #include <stdlib.h>
+-#if !defined _MSC_VER && !defined __APPLE__
++#if !defined _MSC_VER && !defined __APPLE__ && !defined __NetBSD__ && !defined __FreeBSD__ && !defined __dietlibc__ && !defined _AIX && !defined __OpenBSD__ && !defined __DragonFly__
+ #include <malloc.h>
+ #endif
+ 
+ uint32_t* malloc_bitarray_AVX512(uint32_t x) {
+ #if defined (_WIN32)
+     return __builtin_assume_aligned(_aligned_malloc((x), 16), 16);
+-#elif defined (__APPLE__)
++#elif defined (__APPLE__) || defined (__NetBSD__) || defined (__FreeBSD__) || defined (__dietlibc__) || defined (_AIX) || defined (__OpenBSD__) || defined (__DragonFly__)
+     uint32_t *allocated_memory;
+     if (posix_memalign((void**) &allocated_memory, 16, x)) {
+         return NULL;
diff --git a/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__SSE2.c b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__SSE2.c
new file mode 100644
index 0000000000..ef683b87ea
--- /dev/null
+++ b/mfoc-hardnested/patches/patch-src_hardnested_hardnested__bitarray__core__SSE2.c
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Fix unportable *memalign() call.
+
+--- src/hardnested/hardnested_bitarray_core_SSE2.c.orig	2021-08-13 21:44:15.000000000 +0000
++++ src/hardnested/hardnested_bitarray_core_SSE2.c
+@@ -18,14 +18,14 @@
+ 
+ #include <stdint.h>
+ #include <stdlib.h>
+-#if !defined _MSC_VER && !defined __APPLE__
++#if !defined _MSC_VER && !defined __APPLE__ && !defined __NetBSD__ && !defined __FreeBSD__ && !defined __dietlibc__ && !defined _AIX && !defined __OpenBSD__ && !defined __DragonFly__
+ #include <malloc.h>
+ #endif
+ 
+ uint32_t* malloc_bitarray_SSE2(uint32_t x) {
+ #if defined (_WIN32)
+     return __builtin_assume_aligned(_aligned_malloc((x), 16), 16);
+-#elif defined (__APPLE__)
++#elif defined (__APPLE__) || defined (__NetBSD__) || defined (__FreeBSD__) || defined (__dietlibc__) || defined (_AIX) || defined (__OpenBSD__) || defined (__DragonFly__)
+     uint32_t *allocated_memory;
+     if (posix_memalign((void**) &allocated_memory, 16, x)) {
+         return NULL;


Home | Main Index | Thread Index | Old Index