Makes change work on any sting starting with https

As per suggestion, the code now remvoes the 's' on any module starting
with https-
This commit is contained in:
Jonathan Hodgson 2020-06-26 15:31:20 +01:00
commit 5ec8a3e5e9

View file

@ -619,10 +619,8 @@ void module_usage() {
"%s:\n================================================================"
"============\n",
hydra_options.service);
if (strcmp(hydra_options.service, "https-post-form") == 0)
strcpy(hydra_options.service, "http-post-form");
else if (strcmp(hydra_options.service, "https-get-form") == 0)
strcpy(hydra_options.service, "http-get-form");
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++) {
if (strcmp(hydra_options.service, services[i].name) == 0) {
if (services[i].usage) {