mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 05:43:52 -07:00
present better error message for clueless users :)
This commit is contained in:
parent
0a7ae89631
commit
d89983364b
2 changed files with 6 additions and 0 deletions
1
CHANGES
1
CHANGES
|
@ -4,6 +4,7 @@ Changelog for hydra
|
||||||
Release 8.4-dev
|
Release 8.4-dev
|
||||||
* New command line option -y which disables -x 1aA interpretation, thanks to crondaemon for the patch
|
* New command line option -y which disables -x 1aA interpretation, thanks to crondaemon for the patch
|
||||||
* The protocols vnc, xmpp, telnet, imap, nntp and pcanywhere got accidentially long sleep commands due a patch in 8.2, fixed
|
* The protocols vnc, xmpp, telnet, imap, nntp and pcanywhere got accidentially long sleep commands due a patch in 8.2, fixed
|
||||||
|
* Added special error message for clueless users :)
|
||||||
|
|
||||||
|
|
||||||
Release 8.3
|
Release 8.3
|
||||||
|
|
5
hydra.c
5
hydra.c
|
@ -2584,6 +2584,11 @@ int main(int argc, char *argv[]) {
|
||||||
help(0);
|
help(0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (strstr(argv[optind], "://") != NULL) {
|
||||||
|
printf("[ERROR] Invalid target definition!\n");
|
||||||
|
printf("[ERROR] Either you use \"www.example.com module [optional-module-parameters]\" *or* you use the \"module://www.example.com/optional-module-parameters\" syntax!\n");
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
hydra_options.server = argv[optind];
|
hydra_options.server = argv[optind];
|
||||||
cmdlinetarget = argv[optind];
|
cmdlinetarget = argv[optind];
|
||||||
hydra_options.service = argv[optind + 1];
|
hydra_options.service = argv[optind + 1];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue