pkgsrc-WIP-changes archive

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

hashcat: updated to 6.2.1



Module Name:	pkgsrc-wip
Committed By:	Adam Ciarciński <aciarcinski%teonite.com@localhost>
Pushed By:	adam
Date:		Mon May 17 20:31:15 2021 +0200
Changeset:	c652dd1e2c714296f923d869b996a42a701d8401

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

Log Message:
hashcat: updated to 6.2.1

6.2.1:

Changelog features:

Added new attack-mode: Association Attack (aka "Context Attack") to attack hashes from a hashlist with associated "hints"
Added support for true UTF-8 to UTF-16 conversion in kernel crypto library
Added option --hash-info to show generic information for each hash-mode
Added command prompt [f]inish to tell hashcat to quit after finishing the current attack

Changelog fixed Bugs:

Fixed access to filename which is a null-pointer in benchmark mode
Fixed both false negative and false positive results in -m 3000 in -a 3 (affecting only NVIDIA GPU)
Fixed buffer overflow in -m 1800 in -O mode which is optimized to handle only password candidates up to length 15
Fixed buffer overflow in -m 4710 in -P mode and only in single hash mode if salt length is larger than 32 bytes
Fixed hardware management sysfs readings in status screen (typically ROCm controlled GPUs)
Fixed include guards in several header files
Fixed incorrect maximum password length support for -m 400 in optimized mode (reduced from 55 to 39)
Fixed internal access on module option attribute OPTS_TYPE_SUGGEST_KG with the result that it was unused
Fixed invalid handling of outfile folder entries for -m 22000
Fixed memory leak causing problems in sessions with many iterations - for instance, --benchmark-all or large mask files
Fixed memory leaks in several cases of errors with access to temporary files
Fixed NVML initialization in WSL2 environments
Fixed out-of-boundary reads in cases where user activates -S for fast but pure hashes in -a 1 or -a 3 mode
Fixed out-of-boundary reads in kernels using module_extra_buffer_size() if -n is set to 1
Fixed password reassembling for cracked hashes on host for slow hashes in optimized mode that are longer than 32 characters
Fixed race condition in potfile check during removal of empty hashes
Fixed race condition resulting in out of memory error on startup if multiple hashcat instances are started at the same time
Fixed rare case of misalignment of the status prompt when other user warnings are shown in the hashcat output
Fixed search of tuning database - if a device was not assigned an alias, it couldn't be found in general
Fixed test on gzip header in wordlists and hashlists
Fixed too-early execution of some module functions that use non-final values opts_type and opti_type
Fixed unexpected non-unique salts in multi-hash cracking in Bitcoin/Litecoin wallet.dat module which led to false negatives
Fixed unit test for -m 3000 by preventing it to generate zero hashes
Fixed unit tests using 'null' as padding method in Crypt::CBC but actually want to use 'none'
Fixed unterminated salt buffer in -m 23400 module_hash_encode() in case salt was of length 256
Fixed vector datatype support in -m 21100 only -P mode and only -a 3 mode were affected

Changelog Improvements:

Apple Keychain: Notify the user about the risk of collisions / false positives
CUDA Backend: Do not warn about missing CUDA SDK installation if --backend-ignore-cuda is used
CUDA Backend: Give detailed warning if either the NVIDIA CUDA or the NVIDIA RTC library cannot be initialized
CUDA Backend: Use blocking events to avoid 100% CPU core usage (per GPU)
OpenCL Runtime: Workaround JiT compiler deadlock on NVIDIA driver >= 465.89
OpenCL Runtime: Workaround JiT compiler segfault on legacy AMDGPU driver compiling RAR3 OpenCL kernel
RAR3 Kernels: Improved loop code, improving performance by 23%
Scrypt Kernels: Added a number of GPU specific optimizations per hash modes to hashcat.hctune
Scrypt Kernels: Added detailed documentation on device specific tunings in hashcat.hctune
Scrypt Kernels: Optimized Salsa code portion by reducing register copies and removed unnecessary byte swaps
Scrypt Kernels: Reduced kernel wait times by making it a true split kernel where iteration count = N value
Scrypt Kernels: Refactored workload configuration strategy based on available resources
Startup time: Improved startup time by avoiding some time-intensive operations for skipped devices

Changelog Technical:

Bcrypt: Make BCRYPT entry for CPU in hashcat.hctune after switch to OPTS_TYPE_MP_MULTI_DISABLE (basically set -n to 1)
Benchmark: Update benchmark_deep.pl with new hash modes added (also new hash modes which were added with v6.1.0)
Building: Declare phony targets in Makefile to avoid conflicts of a target name with a file of the same name
Building: Fixed build warnings on macOS for unrar sources
Building: Fixed test for DARWIN_VERSION in Makefile
Commandline Options: Removed option --example-hashes, now an alias of --hash-info
Compute API: Skipping devices instead of stop if error occured in initialization
Documentation: Added 3rd party licenses to docs/license_libs
Hash-Mode 8900 (Scrypt): Changed default benchmark scrypt parameters from 1k:1:1 to 16k:8:1 (default)
Hash-Mode 11600 (7-Zip): Improved memory handling (alloc and free) for the hook function
Hash-Mode 13200 (AxCrypt): Changed the name to AxCrypt 1 to avoid confusion
Hash-Mode 13300 (AxCrypt in-memory SHA1): Changed the name to AxCrypt 1 in-memory SHA1
Hash-Mode 16300 (Ethereum Pre-Sale Wallet, PBKDF2-HMAC-SHA256): Use correct buffer size allocation for AES key
Hash-Mode 20710 (sha256(sha256($pass).$salt)): Removed unused code and fixed module_constraints
Hash-Mode 22000 (WPA-PBKDF2-PMKID+EAPOL): Support loading a hash from command line
Hash-Mode 23300 (Apple iWork): Use correct buffer size allocation for AES key
Hash Parser: Output support for machine-readable hash lines in --show and --left and in error messages
Kernel Development: Kernel cache is disabled automatically when hashcat is compiled with DEBUG=1
Kernel Functions: Added generic AES-GCM interface see OpenCL/inc_cipher_aes-gcm.h
Kernel Functions: Refactored OpenCL/inc_ecc_secp256k1.cl many functions, add constants and documentation
Kernel Functions: Refactored OpenCL/inc_ecc_secp256k1.cl to improve usage in external programs
Kernel Functions: Wrap atomic functions with hc_ prefix. Custom kernels need to rename "atomic_inc()" to "hc_atomic_inc()"
Kernel Parameters: Added new parameter 'salt_repeat' to improve large buffer management
Module Parameters: Add OPTS_TYPE_MP_MULTI_DISABLE for use by plugin developers to prevent multiply -n with the MCU count
Module Parameters: Add OPTS_TYPE_NATIVE_THREADS for use by plugin developers to enforce native thread count
Module Structure: Add 3rd party library hook management functions. This also requires an update to all existing module_init()
OpenCL Runtime: Add support for clUnloadPlatformCompiler() to release some resources after JiT compilation
OpenCL Runtime: Switched default OpenCL device type on macOS from GPU to CPU. Use -D 2 to enable GPU devices
OpenCL Runtime: Update module_unstable_warnings() for all hash modes based on most recent versions of many OpenCL runtimes
Unit tests: Added 'potthrough' (like passthrough, but hash:plain) to tools/test.pl
Unit tests: Added Python 3 support for all of the Python code in our test framework
Unit tests: Fixed the packaging of test (-p) feature
Unit tests: Updated test.sh to show kernel type (pure or optimized) in output
Unit tests: Use python3/pip3 instead of just python/pip in tools/install_modules.sh

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

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

diffstat:
 hashcat/Makefile                   |   6 +--
 hashcat/PLIST                      | 107 +++++++++++++++++++++++++++++++++++++
 hashcat/distinfo                   |  10 ++--
 hashcat/patches/patch-src_Makefile |  31 ++++++-----
 4 files changed, 131 insertions(+), 23 deletions(-)

diffs:
diff --git a/hashcat/Makefile b/hashcat/Makefile
index 35c7a92a90..cf6d653763 100644
--- a/hashcat/Makefile
+++ b/hashcat/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=	hashcat-6.1.1
+DISTNAME=	hashcat-6.2.1
 CATEGORIES=	security
 MASTER_SITES=	https://hashcat.net/files/
 
@@ -9,15 +9,13 @@ HOMEPAGE=	https://hashcat.net/
 COMMENT=	World's fastest and most advanced password recovery utility
 LICENSE=	mit
 
+USE_LANGUAGES=	c c++
 USE_TOOLS+=	gmake gsed
 BUILD_TARGET=	hashcat
 MAKE_ENV+=	SHARED=1
 MAKE_ENV+=	USE_SYSTEM_ZLIB=1
 MAKE_ENV+=	USE_SYSTEM_XXHASH=1
 
-post-install:
-	${RM} -f ${DESTDIR}${PREFIX}/include/hashcat/ext_lzma.h.orig
-
 .include "../../archivers/minizip/buildlink3.mk"
 .include "../../devel/xxhash/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
diff --git a/hashcat/PLIST b/hashcat/PLIST
index 4d533135af..4764e1c60b 100644
--- a/hashcat/PLIST
+++ b/hashcat/PLIST
@@ -189,6 +189,12 @@ share/doc/hashcat/docs/hashcat-brain.md
 share/doc/hashcat/docs/hashcat-plugin-development-guide.md
 share/doc/hashcat/docs/keyboard-layout-mapping.md
 share/doc/hashcat/docs/license.txt
+share/doc/hashcat/docs/license_libs/LZMA_SDK_LICENSE.txt
+share/doc/hashcat/docs/license_libs/MINIZ_LICENSE.txt
+share/doc/hashcat/docs/license_libs/OPENCL_HEADERS_LICENSE.txt
+share/doc/hashcat/docs/license_libs/UNRAR_LICENSE.txt
+share/doc/hashcat/docs/license_libs/XXHASH_LICENSE.txt
+share/doc/hashcat/docs/license_libs/ZLIB_LICENSE.txt
 share/doc/hashcat/docs/limits.txt
 share/doc/hashcat/docs/performance.txt
 share/doc/hashcat/docs/readme.txt
@@ -319,6 +325,8 @@ share/doc/hashcat/rules/unix-ninja-leetspeak.rule
 share/hashcat/OpenCL/amp_a0.cl
 share/hashcat/OpenCL/amp_a1.cl
 share/hashcat/OpenCL/amp_a3.cl
+share/hashcat/OpenCL/inc_cipher_aes-gcm.cl
+share/hashcat/OpenCL/inc_cipher_aes-gcm.h
 share/hashcat/OpenCL/inc_cipher_aes.cl
 share/hashcat/OpenCL/inc_cipher_aes.h
 share/hashcat/OpenCL/inc_cipher_camellia.cl
@@ -705,6 +713,12 @@ share/hashcat/OpenCL/m04500_a1-optimized.cl
 share/hashcat/OpenCL/m04500_a1-pure.cl
 share/hashcat/OpenCL/m04500_a3-optimized.cl
 share/hashcat/OpenCL/m04500_a3-pure.cl
+share/hashcat/OpenCL/m04510_a0-optimized.cl
+share/hashcat/OpenCL/m04510_a0-pure.cl
+share/hashcat/OpenCL/m04510_a1-optimized.cl
+share/hashcat/OpenCL/m04510_a1-pure.cl
+share/hashcat/OpenCL/m04510_a3-optimized.cl
+share/hashcat/OpenCL/m04510_a3-pure.cl
 share/hashcat/OpenCL/m04520_a0-optimized.cl
 share/hashcat/OpenCL/m04520_a0-pure.cl
 share/hashcat/OpenCL/m04520_a1-optimized.cl
@@ -1276,6 +1290,21 @@ share/hashcat/OpenCL/m22500_a3-optimized.cl
 share/hashcat/OpenCL/m22500_a3-pure.cl
 share/hashcat/OpenCL/m22600-pure.cl
 share/hashcat/OpenCL/m22700-pure.cl
+share/hashcat/OpenCL/m22911_a0-pure.cl
+share/hashcat/OpenCL/m22911_a1-pure.cl
+share/hashcat/OpenCL/m22911_a3-pure.cl
+share/hashcat/OpenCL/m22921_a0-pure.cl
+share/hashcat/OpenCL/m22921_a1-pure.cl
+share/hashcat/OpenCL/m22921_a3-pure.cl
+share/hashcat/OpenCL/m22931_a0-pure.cl
+share/hashcat/OpenCL/m22931_a1-pure.cl
+share/hashcat/OpenCL/m22931_a3-pure.cl
+share/hashcat/OpenCL/m22941_a0-pure.cl
+share/hashcat/OpenCL/m22941_a1-pure.cl
+share/hashcat/OpenCL/m22941_a3-pure.cl
+share/hashcat/OpenCL/m22951_a0-pure.cl
+share/hashcat/OpenCL/m22951_a1-pure.cl
+share/hashcat/OpenCL/m22951_a3-pure.cl
 share/hashcat/OpenCL/m23001_a0-optimized.cl
 share/hashcat/OpenCL/m23001_a0-pure.cl
 share/hashcat/OpenCL/m23001_a1-optimized.cl
@@ -1296,6 +1325,53 @@ share/hashcat/OpenCL/m23003_a3-optimized.cl
 share/hashcat/OpenCL/m23003_a3-pure.cl
 share/hashcat/OpenCL/m23100-pure.cl
 share/hashcat/OpenCL/m23200-pure.cl
+share/hashcat/OpenCL/m23300-pure.cl
+share/hashcat/OpenCL/m23400-pure.cl
+share/hashcat/OpenCL/m23500-pure.cl
+share/hashcat/OpenCL/m23600-pure.cl
+share/hashcat/OpenCL/m23700-optimized.cl
+share/hashcat/OpenCL/m23700-pure.cl
+share/hashcat/OpenCL/m23800-optimized.cl
+share/hashcat/OpenCL/m23800-pure.cl
+share/hashcat/OpenCL/m23900-pure.cl
+share/hashcat/OpenCL/m24100-pure.cl
+share/hashcat/OpenCL/m24200-pure.cl
+share/hashcat/OpenCL/m24300_a0-optimized.cl
+share/hashcat/OpenCL/m24300_a0-pure.cl
+share/hashcat/OpenCL/m24300_a1-optimized.cl
+share/hashcat/OpenCL/m24300_a1-pure.cl
+share/hashcat/OpenCL/m24300_a3-optimized.cl
+share/hashcat/OpenCL/m24300_a3-pure.cl
+share/hashcat/OpenCL/m24410-pure.cl
+share/hashcat/OpenCL/m24420-pure.cl
+share/hashcat/OpenCL/m24500-pure.cl
+share/hashcat/OpenCL/m24610-pure.cl
+share/hashcat/OpenCL/m24620-pure.cl
+share/hashcat/OpenCL/m24630-pure.cl
+share/hashcat/OpenCL/m24700_a0-optimized.cl
+share/hashcat/OpenCL/m24700_a0-pure.cl
+share/hashcat/OpenCL/m24700_a1-optimized.cl
+share/hashcat/OpenCL/m24700_a1-pure.cl
+share/hashcat/OpenCL/m24700_a3-optimized.cl
+share/hashcat/OpenCL/m24700_a3-pure.cl
+share/hashcat/OpenCL/m24800_a0-optimized.cl
+share/hashcat/OpenCL/m24800_a0-pure.cl
+share/hashcat/OpenCL/m24800_a1-optimized.cl
+share/hashcat/OpenCL/m24800_a1-pure.cl
+share/hashcat/OpenCL/m24800_a3-optimized.cl
+share/hashcat/OpenCL/m24800_a3-pure.cl
+share/hashcat/OpenCL/m24900_a0-optimized.cl
+share/hashcat/OpenCL/m24900_a1-optimized.cl
+share/hashcat/OpenCL/m24900_a3-optimized.cl
+share/hashcat/OpenCL/m25300-pure.cl
+share/hashcat/OpenCL/m25400-pure.cl
+share/hashcat/OpenCL/m25500-optimized.cl
+share/hashcat/OpenCL/m25500-pure.cl
+share/hashcat/OpenCL/m25900-pure.cl
+share/hashcat/OpenCL/m26000_a0-pure.cl
+share/hashcat/OpenCL/m26000_a1-pure.cl
+share/hashcat/OpenCL/m26000_a3-pure.cl
+share/hashcat/OpenCL/m26100-pure.cl
 share/hashcat/OpenCL/markov_be.cl
 share/hashcat/OpenCL/markov_le.cl
 share/hashcat/OpenCL/shared.cl
@@ -1310,6 +1386,7 @@ share/hashcat/modules/module_00020.so
 share/hashcat/modules/module_00021.so
 share/hashcat/modules/module_00022.so
 share/hashcat/modules/module_00023.so
+share/hashcat/modules/module_00024.so
 share/hashcat/modules/module_00030.so
 share/hashcat/modules/module_00040.so
 share/hashcat/modules/module_00050.so
@@ -1388,6 +1465,7 @@ share/hashcat/modules/module_04110.so
 share/hashcat/modules/module_04300.so
 share/hashcat/modules/module_04400.so
 share/hashcat/modules/module_04500.so
+share/hashcat/modules/module_04510.so
 share/hashcat/modules/module_04520.so
 share/hashcat/modules/module_04521.so
 share/hashcat/modules/module_04522.so
@@ -1606,6 +1684,7 @@ share/hashcat/modules/module_21200.so
 share/hashcat/modules/module_21300.so
 share/hashcat/modules/module_21400.so
 share/hashcat/modules/module_21500.so
+share/hashcat/modules/module_21501.so
 share/hashcat/modules/module_21600.so
 share/hashcat/modules/module_21700.so
 share/hashcat/modules/module_21800.so
@@ -1619,9 +1698,37 @@ share/hashcat/modules/module_22400.so
 share/hashcat/modules/module_22500.so
 share/hashcat/modules/module_22600.so
 share/hashcat/modules/module_22700.so
+share/hashcat/modules/module_22911.so
+share/hashcat/modules/module_22921.so
+share/hashcat/modules/module_22931.so
+share/hashcat/modules/module_22941.so
+share/hashcat/modules/module_22951.so
 share/hashcat/modules/module_23001.so
 share/hashcat/modules/module_23002.so
 share/hashcat/modules/module_23003.so
 share/hashcat/modules/module_23100.so
 share/hashcat/modules/module_23200.so
+share/hashcat/modules/module_23300.so
+share/hashcat/modules/module_23400.so
+share/hashcat/modules/module_23500.so
+share/hashcat/modules/module_23600.so
+share/hashcat/modules/module_23700.so
+share/hashcat/modules/module_23800.so
+share/hashcat/modules/module_23900.so
+share/hashcat/modules/module_24100.so
+share/hashcat/modules/module_24200.so
+share/hashcat/modules/module_24300.so
+share/hashcat/modules/module_24410.so
+share/hashcat/modules/module_24420.so
+share/hashcat/modules/module_24500.so
+share/hashcat/modules/module_24600.so
+share/hashcat/modules/module_24700.so
+share/hashcat/modules/module_24800.so
+share/hashcat/modules/module_24900.so
+share/hashcat/modules/module_25300.so
+share/hashcat/modules/module_25400.so
+share/hashcat/modules/module_25500.so
+share/hashcat/modules/module_25900.so
+share/hashcat/modules/module_26000.so
+share/hashcat/modules/module_26100.so
 share/hashcat/modules/module_99999.so
diff --git a/hashcat/distinfo b/hashcat/distinfo
index eb5b2bf352..5c63a69a3f 100644
--- a/hashcat/distinfo
+++ b/hashcat/distinfo
@@ -1,7 +1,7 @@
 $NetBSD$
 
-SHA1 (hashcat-6.1.1.tar.gz) = 01237c9455ce5685c7a2394163daa94166dc6d38
-RMD160 (hashcat-6.1.1.tar.gz) = ded2fc1bdbf71836f260df35a909fdc660b780f6
-SHA512 (hashcat-6.1.1.tar.gz) = 788539b488ba55684d6d93ce18f3b05fa822a8cbfcdbcde9c2b54001d8927580dca253e0e9ff9a19f4278045046d732e104054fc743c39f47952ca24d2e93724
-Size (hashcat-6.1.1.tar.gz) = 5385180 bytes
-SHA1 (patch-src_Makefile) = f47e897ab2beb63aa381f1ac381ac51e7879a999
+SHA1 (hashcat-6.2.1.tar.gz) = cc256247776e90a906804cc7aad3dfe273eeb682
+RMD160 (hashcat-6.2.1.tar.gz) = d254ac888a12bb9b40060f27734e51a4c28f361f
+SHA512 (hashcat-6.2.1.tar.gz) = 435d8c66e1de14a4a95364eb06f41d10d221c4cf3286bed5ce333d3d07fe7ec2097fa57a3f925ef108a0c17091a65dc18b9c782f69ab8c0575061c14c9354563
+Size (hashcat-6.2.1.tar.gz) = 5815254 bytes
+SHA1 (patch-src_Makefile) = 2781200f402b5cebaded0cce72023d6e1cda7ef9
diff --git a/hashcat/patches/patch-src_Makefile b/hashcat/patches/patch-src_Makefile
index be9cc39f19..eaaeb8b3ab 100644
--- a/hashcat/patches/patch-src_Makefile
+++ b/hashcat/patches/patch-src_Makefile
@@ -5,9 +5,9 @@ Add minimal NetBSD support.
 Don't override CC nor optimisation flags in CFLAGS.
 Remove sed magic; we'll use nbsed.
 
---- src/Makefile.orig	2020-07-29 10:16:53.000000000 +0000
+--- src/Makefile.orig	2021-05-15 12:07:58.000000000 +0000
 +++ src/Makefile
-@@ -28,7 +28,7 @@ UNAME                   := $(patsubst MS
+@@ -31,7 +31,7 @@ UNAME                   := $(patsubst MS
  UNAME                   := $(patsubst MINGW32_NT-%,MSYS2,$(UNAME))
  UNAME                   := $(patsubst MINGW64_NT-%,MSYS2,$(UNAME))
  
@@ -16,34 +16,37 @@ Remove sed magic; we'll use nbsed.
  $(error "! Your Operating System ($(UNAME)) is not supported by this Makefile")
  endif
  
-@@ -56,7 +56,6 @@ MODULE_INTERFACE_VERSION := 520
+@@ -59,8 +59,6 @@ MODULE_INTERFACE_VERSION := 620
  ## Native compiler paths
  ##
  
 -CC                      := gcc
+-CXX                     := g++
  AR                      := ar
  FIND                    := find
  INSTALL                 := install
-@@ -65,18 +64,11 @@ SED                     := sed
+@@ -69,20 +67,9 @@ SED                     := sed
  SED_IN_PLACE            := -i
  
  ifeq ($(UNAME),Darwin)
 -CC                      := clang
- # the sed -i option of macOS requires a parameter for the backup file (we just use "")
- AR                      := /usr/bin/ar
+-CXX                     := clang++
+-# the sed -i option of macOS requires a parameter for the backup file (we just use "")
+-AR                      := /usr/bin/ar
 -SED                     := /usr/bin/sed
 -SED_IN_PLACE            := -i ""
- PROD_VERS               := $(shell sw_vers -productVersion | cut -d. -f2)
+ DARWIN_VERSION          := $(shell uname -r | cut -d. -f1)
  endif
  
 -ifeq ($(UNAME),FreeBSD)
 -CC                      := cc
+-CXX                     := c++
 -SED                     := gsed
 -endif
  
  ##
  ## Version
-@@ -186,7 +178,6 @@ CFLAGS_ZLIB             += -DIOAPI_NO_64
+@@ -222,7 +209,6 @@ endif
  endif
  
  ifeq ($(DEBUG),0)
@@ -51,7 +54,7 @@ Remove sed magic; we'll use nbsed.
  ifneq ($(UNAME),Darwin)
  LFLAGS                  += -s
  endif
-@@ -264,6 +255,13 @@ LFLAGS_NATIVE           += -liconv
+@@ -306,6 +292,13 @@ LFLAGS_NATIVE           += -liconv
  endif
  endif # FreeBSD
  
@@ -65,17 +68,17 @@ Remove sed magic; we'll use nbsed.
  ifeq ($(UNAME),Darwin)
  export MACOSX_DEPLOYMENT_TARGET=10.9
  CFLAGS_NATIVE           := $(CFLAGS)
-@@ -540,8 +538,13 @@ MODULES_SRC   := $(wildcard src/modules/
- MODULES_LIB   := $(patsubst src/modules/module_%.c, modules/module_%.$(MODULE_SUFFIX), $(MODULES_SRC))
+@@ -630,8 +623,13 @@ endif
+ $(MODULES_DISABLE): ;
  
  ifeq ($(SHARED),1)
 +  ifeq ($(UNAME),Darwin)
 +modules/module_%.$(MODULE_SUFFIX): src/modules/module_%.c $(HASHCAT_LIBRARY)
-+	$(CC)    $(CFLAGS_NATIVE) $^ -o $@ $(LFLAGS_NATIVE) -install_name $(SHARED_FOLDER)/$@ -shared -fPIC -D MODULE_INTERFACE_VERSION_CURRENT=$(MODULE_INTERFACE_VERSION)
++	$(CC)    $(CCFLAGS) $(CFLAGS_NATIVE) $^ -o $@ $(LFLAGS_NATIVE) -install_name $(SHARED_FOLDER)/$@ -shared -fPIC -D MODULE_INTERFACE_VERSION_CURRENT=$(MODULE_INTERFACE_VERSION)
 +  else
  modules/module_%.$(MODULE_SUFFIX): src/modules/module_%.c $(HASHCAT_LIBRARY)
- 	$(CC)    $(CFLAGS_NATIVE) $^ -o $@ $(LFLAGS_NATIVE) -shared -fPIC -D MODULE_INTERFACE_VERSION_CURRENT=$(MODULE_INTERFACE_VERSION)
+ 	$(CC)    $(CCFLAGS) $(CFLAGS_NATIVE) $^ -o $@ $(LFLAGS_NATIVE) -shared -fPIC -D MODULE_INTERFACE_VERSION_CURRENT=$(MODULE_INTERFACE_VERSION)
 +  endif
  else
  modules/module_%.$(MODULE_SUFFIX): src/modules/module_%.c obj/combined.NATIVE.a
- 	$(CC)    $(CFLAGS_NATIVE) $^ -o $@ $(LFLAGS_NATIVE) -shared -fPIC -D MODULE_INTERFACE_VERSION_CURRENT=$(MODULE_INTERFACE_VERSION)
+ 	$(CC)    $(CCFLAGS) $(CFLAGS_NATIVE) $^ -o $@ $(LFLAGS_NATIVE) -shared -fPIC -D MODULE_INTERFACE_VERSION_CURRENT=$(MODULE_INTERFACE_VERSION)


Home | Main Index | Thread Index | Old Index