From 043c8d2aaae5a97f3b7b05664cf3eb3251f198a2 Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Wed, 11 Jun 2014 12:32:18 +0200 Subject: [PATCH] fix for cisco-enable --- CHANGES | 1 + hydra.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index e9cfe5e..4a5d8d6 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,7 @@ Changelog for hydra ------------------- Release 8.1-pre +* Fixed for cisco-enable if an intial Login/Password is used (thanks to joswr1te for reporting) * Added patch by tux-mind for better MySQL compilation and an Android patches and Makefile. Thanks! * Added xhydra gtk patch by Petar Kaleychev to support -e r reverse login attempt, thanks! * Fixed a crash in the cisco module (thanks to Anatoly Mamaev for reporting) diff --git a/hydra.c b/hydra.c index 8a9a855..a6b120f 100644 --- a/hydra.c +++ b/hydra.c @@ -2758,8 +2758,10 @@ int main(int argc, char *argv[]) { } if (strcmp(hydra_options.service, "cisco-enable") == 0) { i = 2; - if (hydra_options.login == NULL) - hydra_options.login = empty_login; + if (hydra_options.login == NULL) { + //hydra_options.login = empty_login; + i = 1; // login will be the initial Username: login, or line Password: + } if (hydra_options.miscptr == NULL) { fprintf(stderr, "[WARNING] You did not supply the initial support to the Cisco via -l, assuming direct console access\n"); }