From 610cd75d4a33f2fb6d97e49f7eb33efb995b7a1b Mon Sep 17 00:00:00 2001 From: yunginnanet Date: Mon, 13 Sep 2021 00:00:52 -0700 Subject: [PATCH] Update for hashcat v6.2.4 As of 6.2.4 the separator is now a pointer. --- gocat.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gocat.go b/gocat.go index 250b88e..e1e5135 100644 --- a/gocat.go +++ b/gocat.go @@ -3,8 +3,8 @@ package gocat /* #cgo CFLAGS: -I/usr/local/include/hashcat -std=c99 -Wall -O0 -g #cgo linux CFLAGS: -D_GNU_SOURCE -#cgo linux LDFLAGS: -L/usr/local/lib -lhashcat.6.1.1 -#cgo darwin LDFLAGS: -L/usr/local/lib -lhashcat.6.1.1 +#cgo linux LDFLAGS: -L/usr/local/lib -lhashcat.so.6.2.4 +#cgo darwin LDFLAGS: -L/usr/local/lib -lhashcat.6.2.4 #include "wrapper.h" */ @@ -273,7 +273,7 @@ func callback(id uint32, hcCtx *C.hashcat_ctx_t, wrapper unsafe.Pointer, buf uns case C.EVENT_CRACKER_HASH_CRACKED, C.EVENT_POTFILE_HASH_SHOW: // Grab the separator for this session out of user options userOpts := hcCtx.user_options - sepr := C.GoString(&userOpts.separator) + sepr := C.GoString(userOpts.separator) // XXX(cschmitt): What changed here that this is no longer set? if sepr == "" { sepr = ":"