From c826dc0e4d35f846180358bee34f1a72567ba660 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 13 Oct 2016 17:36:18 +0200 Subject: [PATCH] install_folder and shared_folder are not mandatory, remove them from main_shared.c to make the example more easy to understand --- src/main_shared.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/main_shared.c b/src/main_shared.c index 43531bec7..3ffc9feb3 100644 --- a/src/main_shared.c +++ b/src/main_shared.c @@ -43,19 +43,6 @@ int main () if (rc_hashcat_init == -1) return -1; - // install and shared folder need to be set to recognize "make install" use - - char *install_folder = NULL; - char *shared_folder = NULL; - - #if defined (INSTALL_FOLDER) - install_folder = INSTALL_FOLDER; - #endif - - #if defined (SHARED_FOLDER) - shared_folder = SHARED_FOLDER; - #endif - // this is a bit ugly, but it's the example you're looking for char *hash = "8743b52063cd84097a65d1633f5c74f5"; @@ -83,7 +70,7 @@ int main () // now run hashcat - const int rc_hashcat = hashcat (hashcat_ctx, install_folder, shared_folder, 0, NULL, 0); + const int rc_hashcat = hashcat (hashcat_ctx, NULL, NULL, 0, NULL, 0); if (rc_hashcat == 0) {