fix for cisco-enable

This commit is contained in:
vanhauser-thc 2014-06-11 12:32:18 +02:00
commit 043c8d2aaa
2 changed files with 5 additions and 2 deletions

View file

@ -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)

View file

@ -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");
}