Skip to content

Commit

Permalink
moved to v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerBea committed Apr 29, 2020
1 parent 3a0c492 commit 0e995ea
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
20 changes: 16 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
PRODUCTION := 1
PRODUCTION_VERSION := 6.0.0
PRODUCTION_YEAR := 2020

ifeq ($(PRODUCTION),1)
VERSION_TAG := $(PRODUCTION_VERSION)
else
VERSION_TAG := $(shell git describe --tags || echo $(PRODUCTION_VERSION))
endif
VERSION_YEAR := $(shell echo $(PRODUCTION_YEAR))

PREFIX ?=/usr/local
INSTALLDIR = $(DESTDIR)$(PREFIX)/bin

HOSTOS := $(shell uname -s)
CC = gcc
CFLAGS ?= -O3 -Wall -Wextra
CFLAGS += -std=gnu99
DEFS = -DVERSION_TAG=\"$(VERSION_TAG)\" -DVERSION_YEAR=\"$(VERSION_YEAR)\"
INSTFLAGS = -m 0755

ifeq ($(HOSTOS), Linux)
Expand All @@ -18,13 +30,13 @@ endif
all: build

build:
$(CC) $(CFLAGS) $(CPPFLAGS) -o wlangenpmk wlangenpmk.c -lcrypto $(LDFLAGS)
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -o wlangenpmk wlangenpmk.c -lcrypto $(LDFLAGS)
ifeq ($(HOSTOS), Darwin)
$(CC) $(CFLAGS) $(CPPFLAGS) -o wlangenpmkocl wlangenpmkocl.c -lcrypto -Wl,-framework,OpenCL -lm $(LDFLAGS)
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -o wlangenpmkocl wlangenpmkocl.c -lcrypto -Wl,-framework,OpenCL -lm $(LDFLAGS)
else
$(CC) $(CFLAGS) $(CPPFLAGS) -o wlangenpmkocl wlangenpmkocl.c -lcrypto -lOpenCL $(LDFLAGS)
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -o wlangenpmkocl wlangenpmkocl.c -lcrypto -lOpenCL $(LDFLAGS)
endif
$(CC) $(CFLAGS) $(CPPFLAGS) -o pwhash pwhash.c -lcrypto $(LDFLAGS)
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -o pwhash pwhash.c -lcrypto $(LDFLAGS)


install: build
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions common.h → include/common.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#define VERSION "4.0.1"
#define VERSION_JAHR "2019"

#if !defined(FALSE)
#define FALSE 0
#endif
Expand Down
6 changes: 3 additions & 3 deletions wlangenpmk.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <stdio_ext.h>
#endif
#include <openssl/evp.h>
#include "common.h"
#include "include/common.h"

#define COWPATTY_SIGNATURE 0x43575041L

Expand Down Expand Up @@ -330,7 +330,7 @@ printf("%s %s (C) %s ZeroBeat\n"
"-A <file> : output plainmasterkeys:password as ASCII file\n"
"-c <file> : output cowpatty hashfile (existing file will be replaced)\n"
"-h : this help\n"
"\n", eigenname, VERSION, VERSION_JAHR, eigenname);
"\n", eigenname, VERSION_TAG, VERSION_YEAR, eigenname);
exit(EXIT_FAILURE);
}
/*===========================================================================*/
Expand Down Expand Up @@ -373,7 +373,7 @@ while ((auswahl = getopt(argc, argv, "p:e:i:I:a:A:c:h")) != -1)
case 'p':
pwname = optarg;
pwlen = strlen(pwname);
if((pwlen < 8) || (pwlen > 63))
if((pwlen < 1) || (pwlen > 63))
{
fprintf(stderr, "error wrong password len\n");
exit(EXIT_FAILURE);
Expand Down
6 changes: 3 additions & 3 deletions wlangenpmkocl.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#else
#include <CL/cl.h>
#endif
#include "common.h"
#include "common.c"
#include "include/common.h"
#include "include/common.c"


#define MAX_SOURCE_SIZE (0x1000000)
Expand Down Expand Up @@ -885,7 +885,7 @@ printf("%s %s (C) %s ZeroBeat\n"
"%s -e <essid> -i <wordlist> -a <pmklist>\n"
"or use mixed mode:\n"
"%s -e <essid> -i <wordlist> > <pmklist>\n"
"\n", eigenname, VERSION, VERSION_JAHR, eigenname, eigenname, eigenname, eigenname, eigenname);
"\n", eigenname, VERSION_TAG, VERSION_YEAR, eigenname, eigenname, eigenname, eigenname, eigenname);
exit(EXIT_FAILURE);
}
/*===========================================================================*/
Expand Down

0 comments on commit 0e995ea

Please sign in to comment.