mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 21:33:51 -07:00
fix no target crash
This commit is contained in:
parent
2043a941eb
commit
ff4deb768e
1 changed files with 3 additions and 0 deletions
3
hydra.c
3
hydra.c
|
@ -3290,6 +3290,9 @@ int main(int argc, char *argv[]) {
|
|||
tmpptr++;
|
||||
tmpptr++;
|
||||
}
|
||||
} else if (hydra_options.server == NULL) {
|
||||
fprintf(stderr, "Error: no target server given, nor -M option used\n");
|
||||
exit(-1);
|
||||
} else if (index(hydra_options.server, '/') != NULL) {
|
||||
if (cmdtarget == NULL)
|
||||
bail("You seem to mix up \"service://target:port/options\" syntax with \"target service options\" syntax. Read the README on how to use hydra correctly!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue