Merge pull request #542 from Jab2870/https-help

Usage: Fix help for https-post-form and https-get-form
This commit is contained in:
van Hauser 2020-06-26 17:39:04 +02:00 committed by GitHub
commit 1ce502e754
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -619,6 +619,8 @@ void module_usage() {
"%s:\n================================================================" "%s:\n================================================================"
"============\n", "============\n",
hydra_options.service); hydra_options.service);
if (strncmp(hydra_options.service, "https-", 6) == 0 )
memmove(hydra_options.service + 4, hydra_options.service + 5, strlen(hydra_options.service) - 4);
for (i = 0; i < sizeof(services) / sizeof(services[0]); i++) { for (i = 0; i < sizeof(services) / sizeof(services[0]); i++) {
if (strcmp(hydra_options.service, services[i].name) == 0) { if (strcmp(hydra_options.service, services[i].name) == 0) {
if (services[i].usage) { if (services[i].usage) {