From owner-dev-commits-ports-all@freebsd.org Mon May 3 18:26:44 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 49068639B5A; Mon, 3 May 2021 18:26:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FYrz81cbfz3LYq; Mon, 3 May 2021 18:26:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2A43622C4F; Mon, 3 May 2021 18:26:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 143IQiHN088099; Mon, 3 May 2021 18:26:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 143IQiLM088098; Mon, 3 May 2021 18:26:44 GMT (envelope-from git) Date: Mon, 3 May 2021 18:26:44 GMT Message-Id: <202105031826.143IQiLM088098@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?B?U3RlZmFuIEXDn2Vy?= Subject: git: 295be8e6e715 - main - security/ncrack: resurrect and update to version 0.7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 295be8e6e715068e019ee0447fe40afed6ece0d3 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2021 18:26:44 -0000 The branch main has been updated by se: URL: https://cgit.FreeBSD.org/ports/commit/?id=295be8e6e715068e019ee0447fe40afed6ece0d3 commit 295be8e6e715068e019ee0447fe40afed6ece0d3 Author: Stefan Eßer AuthorDate: 2021-05-03 18:22:01 +0000 Commit: Stefan Eßer CommitDate: 2021-05-03 18:26:12 +0000 security/ncrack: resurrect and update to version 0.7 The port has been recovered after deletion and upgraded to the latest version available on Github. The build has been tested with base and ports versions of openssl. --- security/Makefile | 1 + security/ncrack/Makefile | 22 ++++++++++++++++++ security/ncrack/distinfo | 3 +++ security/ncrack/files/patch-opensshlib_umac.c | 11 +++++++++ security/ncrack/files/patch-portable__endian.h | 32 ++++++++++++++++++++++++++ security/ncrack/pkg-descr | 7 ++++++ security/ncrack/pkg-plist | 11 +++++++++ 7 files changed, 87 insertions(+) diff --git a/security/Makefile b/security/Makefile index 7d47f21d3782..8a554120d73b 100644 --- a/security/Makefile +++ b/security/Makefile @@ -365,6 +365,7 @@ SUBDIR += mussh SUBDIR += n2n SUBDIR += nacl + SUBDIR += ncrack SUBDIR += ncrypt SUBDIR += nettle SUBDIR += nextcloud-end_to_end_encryption diff --git a/security/ncrack/Makefile b/security/ncrack/Makefile new file mode 100644 index 000000000000..04cb8e20e660 --- /dev/null +++ b/security/ncrack/Makefile @@ -0,0 +1,22 @@ +# Created by: David E. Thiel + +PORTNAME= ncrack +DISTVERSION= 0.7 +CATEGORIES= security + +MAINTAINER= se@FreeBSD.org +COMMENT= High-speed network authentication cracking tool + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= gmake ssl +USE_GITHUB= yes +GH_ACCOUNT= nmap + +GNU_CONFIGURE= yes + +CPPFLAGS+= -I${OPENSSLINC} +LDFLAGS+= -L${OPENSSLLIB} + +.include diff --git a/security/ncrack/distinfo b/security/ncrack/distinfo new file mode 100644 index 000000000000..7d8bd94676c5 --- /dev/null +++ b/security/ncrack/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1620063990 +SHA256 (nmap-ncrack-0.7_GH0.tar.gz) = f3f971cd677c4a0c0668cb369002c581d305050b3b0411e18dd3cb9cc270d14a +SIZE (nmap-ncrack-0.7_GH0.tar.gz) = 8586213 diff --git a/security/ncrack/files/patch-opensshlib_umac.c b/security/ncrack/files/patch-opensshlib_umac.c new file mode 100644 index 000000000000..d76f89666ca1 --- /dev/null +++ b/security/ncrack/files/patch-opensshlib_umac.c @@ -0,0 +1,11 @@ +--- opensshlib/umac.c.orig 2019-08-24 22:25:32 UTC ++++ opensshlib/umac.c +@@ -1177,7 +1177,7 @@ static int uhash(uhash_ctx_t ahc, u_char *msg, long le + * time. The all-at-once is more optimaized than the sequential version and + * should be preferred when the sequential interface is not required. + */ +-struct umac_ctx { ++extern struct umac_ctx { + uhash_ctx hash; /* Hash function for message compression */ + pdf_ctx pdf; /* PDF for hashed output */ + void *free_ptr; /* Address to free this struct via */ diff --git a/security/ncrack/files/patch-portable__endian.h b/security/ncrack/files/patch-portable__endian.h new file mode 100644 index 000000000000..e7f00d6f7d64 --- /dev/null +++ b/security/ncrack/files/patch-portable__endian.h @@ -0,0 +1,32 @@ +--- portable_endian.h.orig 2019-08-24 22:25:32 UTC ++++ portable_endian.h +@@ -18,6 +18,7 @@ + # include + # include + /* See http://linux.die.net/man/3/endian */ ++# if !defined(__FreeBSD__) + # if !defined(__GLIBC__) || !defined(__GLIBC_MINOR__) || ((__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 9))) + # include + # if defined(__BYTE_ORDER) && (__BYTE_ORDER == __LITTLE_ENDIAN) +@@ -54,6 +55,7 @@ + # error Byte Order not supported or not defined. + # endif + # endif ++# endif + + + +@@ -81,11 +83,11 @@ + # define __LITTLE_ENDIAN LITTLE_ENDIAN + # define __PDP_ENDIAN PDP_ENDIAN + +-#elif defined(__OpenBSD__) ++#elif defined(__OpenBSD__) || defined (__FreeBSD__) + + # include + +-#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) ++#elif defined(__NetBSD__) || defined(__DragonFly__) + + # include + diff --git a/security/ncrack/pkg-descr b/security/ncrack/pkg-descr new file mode 100644 index 000000000000..660b9725bf50 --- /dev/null +++ b/security/ncrack/pkg-descr @@ -0,0 +1,7 @@ +Ncrack is a high-speed network authentication cracking tool. Ncrack was +designed using a modular approach, a command-line syntax similar to +Nmap and a dynamic engine that can adapt its behaviour based on network +feedback. It allows for rapid, yet reliable large-scale auditing of +multiple hosts. + +WWW: https://nmap.org/ncrack/ diff --git a/security/ncrack/pkg-plist b/security/ncrack/pkg-plist new file mode 100644 index 000000000000..8993a923555c --- /dev/null +++ b/security/ncrack/pkg-plist @@ -0,0 +1,11 @@ +bin/ncrack +share/ncrack/ncrack-services +share/ncrack/common.usr +share/ncrack/default.pwd +share/ncrack/default.usr +share/ncrack/jtr.pwd +share/ncrack/minimal.usr +share/ncrack/myspace.pwd +share/ncrack/phpbb.pwd +share/ncrack/top50000.pwd +man/man1/ncrack.1.gz