mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-19 21:03:52 -07:00
Use early break instead of large if
This commit is contained in:
parent
13962a20a8
commit
21c4b99e1b
1 changed files with 228 additions and 224 deletions
8
hydra.c
8
hydra.c
|
@ -450,7 +450,11 @@ void help_bfg() {
|
||||||
void module_usage() {
|
void module_usage() {
|
||||||
int find = 0;
|
int find = 0;
|
||||||
|
|
||||||
if (hydra_options.service) {
|
if (!hydra_options.service) {
|
||||||
|
printf("The Module %s does not need or support optional parameters\n", hydra_options.service);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
printf("\nHelp for module %s:\n============================================================================\n", hydra_options.service);
|
printf("\nHelp for module %s:\n============================================================================\n", hydra_options.service);
|
||||||
if ((strcmp(hydra_options.service, "oracle") == 0) || (strcmp(hydra_options.service, "ora") == 0)) {
|
if ((strcmp(hydra_options.service, "oracle") == 0) || (strcmp(hydra_options.service, "ora") == 0)) {
|
||||||
printf("Module oracle / ora is optionally taking the ORACLE SID, default is \"ORCL\"\n\n");
|
printf("Module oracle / ora is optionally taking the ORACLE SID, default is \"ORCL\"\n\n");
|
||||||
|
@ -674,7 +678,7 @@ void module_usage() {
|
||||||
"For example: \"/secret\" or \"http://bla.com/foo/bar\" or \"https://test.com:8080/members\"\n\n", hydra_options.service);
|
"For example: \"/secret\" or \"http://bla.com/foo/bar\" or \"https://test.com:8080/members\"\n\n", hydra_options.service);
|
||||||
find = 1;
|
find = 1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!find) // this is also printed if the module does not exist at all
|
if (!find) // this is also printed if the module does not exist at all
|
||||||
printf("The Module %s does not need or support optional parameters\n", hydra_options.service);
|
printf("The Module %s does not need or support optional parameters\n", hydra_options.service);
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue