From 4077f0b59c7af984efc25d273269fade3fd094a7 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Tue, 21 Jun 2016 09:50:43 +0200 Subject: [PATCH] added smb domain warning on wrong usage --- hydra.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hydra.c b/hydra.c index 4d0e333..625890d 100644 --- a/hydra.c +++ b/hydra.c @@ -2748,6 +2748,8 @@ int main(int argc, char *argv[]) { fprintf(stderr, "[INFO] Reduced number of tasks to 1 (smb does not like parallel connections)\n"); hydra_options.tasks = 1; } + if (hydra_options.login != NULL && (index(hydra_options.login, '\\') != NULL || index(hydra_options.login, '/') != NULL)) + fprintf(stderr, "[WARNING] potential windows domain specification found in login. You must use the -m option to pass a domain.\n"); i = 1; } if ((strcmp(hydra_options.service, "smb") == 0) || (strcmp(hydra_options.service, "smbnt") == 0)) {