pkgsrc-WIP-changes archive

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

hashcat: updated to 4.1.0



Module Name:	pkgsrc-wip
Committed By:	Adam Ciarciński <aciarcinski%teonite.com@localhost>
Pushed By:	adam
Date:		Thu Feb 22 11:20:42 2018 +0100
Changeset:	d061ea62d3a28c8619a57466481359dd807c77db

Modified Files:
	hashcat/Makefile
	hashcat/PLIST
	hashcat/distinfo
	hashcat/patches/patch-src_Makefile

Log Message:
hashcat: updated to 4.1.0

This release is mostly about expanding support for new algorithms:
Added hash-mode 16000 = Tripcode
Added hash-mode 16100 = TACACS+
Added hash-mode 16200 = Apple Secure Notes
Added hash-mode 16300 = Ethereum Pre-Sale Wallet, PBKDF2-SHA256
Added hash-mode 16400 = CRAM-MD5 Dovecot
Added hash-mode 16500 = JWT (JSON Web Token)
Added hash-mode 16600 = Electrum Wallet (Salt-Type 1-3)

But there are also some deep changes related to performance:
A new technique to reduce PCIe transfer time by using so-called "compression" kernels
The OpenCL kernel thread management was refactored, giving a strong boost on PBKDF2 based kernels (WPA, etc)
Improved autotune support
Improved OpenCL JiT compiler settings
Workaround for some bad OpenCL runtime settings on macOS

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

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

diffstat:
 hashcat/Makefile                   |  2 +-
 hashcat/PLIST                      | 33 ++++++++++++++++++++++++
 hashcat/distinfo                   | 10 ++++----
 hashcat/patches/patch-src_Makefile | 51 +++++++++++++++-----------------------
 4 files changed, 59 insertions(+), 37 deletions(-)

diffs:
diff --git a/hashcat/Makefile b/hashcat/Makefile
index 3d4e7b3765..cf195e94f1 100644
--- a/hashcat/Makefile
+++ b/hashcat/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=	hashcat-4.0.1
+DISTNAME=	hashcat-4.1.0
 CATEGORIES=	security
 MASTER_SITES=	https://hashcat.net/files/
 
diff --git a/hashcat/PLIST b/hashcat/PLIST
index 1d18cff8c4..2e0a92f88b 100644
--- a/hashcat/PLIST
+++ b/hashcat/PLIST
@@ -111,6 +111,7 @@ share/doc/hashcat/docs/changes.txt
 share/doc/hashcat/docs/contact.txt
 share/doc/hashcat/docs/credits.txt
 share/doc/hashcat/docs/license.txt
+share/doc/hashcat/docs/limits.txt
 share/doc/hashcat/docs/performance.txt
 share/doc/hashcat/docs/readme.txt
 share/doc/hashcat/docs/rules.txt
@@ -866,6 +867,38 @@ share/hashcat/OpenCL/m15500_a3.cl
 share/hashcat/OpenCL/m15600.cl
 share/hashcat/OpenCL/m15700.cl
 share/hashcat/OpenCL/m15900.cl
+share/hashcat/OpenCL/m16000_a0.cl
+share/hashcat/OpenCL/m16000_a1.cl
+share/hashcat/OpenCL/m16000_a3.cl
+share/hashcat/OpenCL/m16100_a0-optimized.cl
+share/hashcat/OpenCL/m16100_a0.cl
+share/hashcat/OpenCL/m16100_a1-optimized.cl
+share/hashcat/OpenCL/m16100_a1.cl
+share/hashcat/OpenCL/m16100_a3-optimized.cl
+share/hashcat/OpenCL/m16100_a3.cl
+share/hashcat/OpenCL/m16200.cl
+share/hashcat/OpenCL/m16300.cl
+share/hashcat/OpenCL/m16400_a0-optimized.cl
+share/hashcat/OpenCL/m16400_a0.cl
+share/hashcat/OpenCL/m16400_a1-optimized.cl
+share/hashcat/OpenCL/m16400_a1.cl
+share/hashcat/OpenCL/m16400_a3-optimized.cl
+share/hashcat/OpenCL/m16400_a3.cl
+share/hashcat/OpenCL/m16511_a0.cl
+share/hashcat/OpenCL/m16511_a1.cl
+share/hashcat/OpenCL/m16511_a3.cl
+share/hashcat/OpenCL/m16512_a0.cl
+share/hashcat/OpenCL/m16512_a1.cl
+share/hashcat/OpenCL/m16512_a3.cl
+share/hashcat/OpenCL/m16513_a0.cl
+share/hashcat/OpenCL/m16513_a1.cl
+share/hashcat/OpenCL/m16513_a3.cl
+share/hashcat/OpenCL/m16600_a0-optimized.cl
+share/hashcat/OpenCL/m16600_a0.cl
+share/hashcat/OpenCL/m16600_a1-optimized.cl
+share/hashcat/OpenCL/m16600_a1.cl
+share/hashcat/OpenCL/m16600_a3-optimized.cl
+share/hashcat/OpenCL/m16600_a3.cl
 share/hashcat/OpenCL/markov_be.cl
 share/hashcat/OpenCL/markov_le.cl
 share/hashcat/hashcat.hcstat2
diff --git a/hashcat/distinfo b/hashcat/distinfo
index 001eac4393..07a4da7ae0 100644
--- a/hashcat/distinfo
+++ b/hashcat/distinfo
@@ -1,7 +1,7 @@
 $NetBSD$
 
-SHA1 (hashcat-4.0.1.tar.gz) = fe11f31cd7cfb20f5a401372bd940567df63466d
-RMD160 (hashcat-4.0.1.tar.gz) = 7eba4c28d5961fc3ae34ef9df2a4bbefebdb3458
-SHA512 (hashcat-4.0.1.tar.gz) = 4f6b42511a5949d4d9b40ffb403d576645ccff2b325cd484f2fff431d67ac1ad79cc33c310b8e650db6c75ba7b1ed02f80eb907ef048221b4bfbd270153fe00d
-Size (hashcat-4.0.1.tar.gz) = 3905127 bytes
-SHA1 (patch-src_Makefile) = 8a74b534afb9e4906d95b0d925f5acec0f77cd9c
+SHA1 (hashcat-4.1.0.tar.gz) = fd1f9a8011d2f1feed7b32dbefe11e3b05eb9f0d
+RMD160 (hashcat-4.1.0.tar.gz) = d7f1701ec8cb6b729b7ec21f40e9b84f267d2c50
+SHA512 (hashcat-4.1.0.tar.gz) = c9e01847c89dd8521da8734ea324c69f1e9bfef50c059e9dc29d4b947fe090405774a57ae688f907698c7d9a2d1f087b730e0a994dc5ed0d5d937a9ef950dd73
+Size (hashcat-4.1.0.tar.gz) = 3956136 bytes
+SHA1 (patch-src_Makefile) = 18a232453f5e92e89f49088eb46abe5c03ec7303
diff --git a/hashcat/patches/patch-src_Makefile b/hashcat/patches/patch-src_Makefile
index c66a2ab6b7..67fd89f73e 100644
--- a/hashcat/patches/patch-src_Makefile
+++ b/hashcat/patches/patch-src_Makefile
@@ -4,9 +4,9 @@ Add minimal NetBSD support.
 Don't override CC nor optimisation flags in CFLAGS.
 Use custom VERSION_TAG.
 
---- src/Makefile.orig	2017-11-07 09:15:03.000000000 +0000
+--- src/Makefile.orig	2018-02-21 09:50:24.000000000 +0000
 +++ src/Makefile
-@@ -21,7 +21,7 @@ UNAME                   := $(patsubst MS
+@@ -22,7 +22,7 @@ UNAME                   := $(patsubst MS
  UNAME                   := $(patsubst MINGW32_NT-%,MSYS2,$(UNAME))
  UNAME                   := $(patsubst MINGW64_NT-%,MSYS2,$(UNAME))
  
@@ -15,19 +15,7 @@ Use custom VERSION_TAG.
  $(error "! Your Operating System ($(UNAME)) is not supported by this Makefile")
  endif
  
-@@ -57,7 +57,11 @@ DOCUMENT_FOLDER         ?= $(SHARED_ROOT
- ##
- 
- HASHCAT_FRONTEND        := hashcat
-+ifeq ($(UNAME),Darwin)
-+HASHCAT_LIBRARY         := libhashcat.dylib
-+else
- HASHCAT_LIBRARY         := libhashcat.so
-+endif
- 
- ifeq ($(UNAME),CYGWIN)
- HASHCAT_FRONTEND        := hashcat.exe
-@@ -81,24 +85,12 @@ OPENCL_HEADERS_KHRONOS  := deps/OpenCL-H
+@@ -44,7 +44,6 @@ endif
  ## Native compiler paths
  ##
  
@@ -35,33 +23,34 @@ Use custom VERSION_TAG.
  FIND                    := find
  INSTALL                 := install
  RM                      := rm
- SED                     := sed
+@@ -52,16 +51,9 @@ SED                     := sed
  SED_IN_PLACE            := -i
  
--ifeq ($(UNAME),Darwin)
+ ifeq ($(UNAME),Darwin)
 -CC                      := clang
 -# the sed -i option of macOS requires a parameter for the backup file (we just use "")
 -SED_IN_PLACE            := -i ""
--endif
--
+ PROD_VERS               := $(shell sw_vers -productVersion | cut -d. -f2)
+ endif
+ 
 -ifeq ($(UNAME),FreeBSD)
 -CC                      := cc
 -SED                     := gsed
 -endif
--
- ##
- ## Cross compiler paths
+ 
  ##
-@@ -128,7 +120,7 @@ COMPTIME                := $(shell date 
- # the value will be something like this: "tag: vX.Y.Z, refs/pull/K/head" or "HEAD -> master, tag: vX.Y.Z"
+ ## Version
+@@ -96,6 +88,9 @@ LIBRARY_DEV_FOLDER      ?= $(LIBRARY_DEV
  
- VERSION_EXPORT          := HEAD -> master, tag: v4.0.1
--VERSION_TAG             := $(shell test -d .git && git describe --tags --dirty=+ || echo "$(VERSION_EXPORT)" | $(SED) 's/.*: v\([\.0-9]*\).*/v\1/')
-+VERSION_TAG             := @VERSION_TAG@
+ HASHCAT_FRONTEND        := hashcat
+ HASHCAT_LIBRARY         := libhashcat.so.$(VERSION_PURE)
++ifeq ($(UNAME),Darwin)
++HASHCAT_LIBRARY         := libhashcat.$(VERSION_PURE).dylib
++endif
  
- ##
- ## General compiler and linker options
-@@ -177,7 +169,6 @@ endif
+ ifeq ($(UNAME),CYGWIN)
+ HASHCAT_FRONTEND        := hashcat.exe
+@@ -186,7 +181,6 @@ endif
  LFLAGS                  := $(LDFLAGS)
  
  ifeq ($(DEBUG),0)
@@ -69,7 +58,7 @@ Use custom VERSION_TAG.
  LFLAGS                  += -s
  else
  ifeq ($(DEBUG),1)
-@@ -212,6 +203,13 @@ LFLAGS_NATIVE           += -lpthread
+@@ -222,6 +216,13 @@ LFLAGS_NATIVE           += -lpthread
  endif
  endif # FreeBSD
  


Home | Main Index | Thread Index | Old Index