1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 22:58:30 +00:00

Compile module as .dll example

This commit is contained in:
jsteube 2018-12-19 16:18:40 +01:00
parent 4028bae578
commit ce0e19f185
3 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@ -16,6 +16,7 @@ hashcat.dll
*.dSYM
kernels/**
lib/*.a
modules/*.dll
modules/*.so
obj/*.o
include/CL

View File

@ -549,6 +549,18 @@ modules/module_%.so: modules/module_%.c
modules: $(MODULES_LIB)
MODULES_LIB_WIN64 := $(patsubst %.c, %.dll, $(MODULES_SRC))
modules/module_%.dll: modules/module_%.c
$(CC_WIN_64) $(CFLAGS_CROSS_WIN64) $< -o $@ -shared -fPIC $(MODULE_DEPEND)
modules_win64: $(MODULES_LIB_WIN64)
##
## cross compiled hashcat
##

View File

@ -757,6 +757,10 @@ float get_entropy (const u8 *buf, const int len)
return entropy;
}
#if defined (_WIN)
#else
int select_read_timeout (int sockfd, const int sec)
{
struct timeval tv;
@ -787,6 +791,8 @@ int select_write_timeout (int sockfd, const int sec)
return select (sockfd + 1, NULL, &fds, NULL, &tv);
}
#endif
#if defined (_WIN)
int select_read_timeout_console (const int sec)