mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 21:33:51 -07:00
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:
parent
62f06dce24
commit
5ec8a3e5e9
1 changed files with 2 additions and 4 deletions
6
hydra.c
6
hydra.c
|
@ -619,10 +619,8 @@ void module_usage() {
|
||||||
"%s:\n================================================================"
|
"%s:\n================================================================"
|
||||||
"============\n",
|
"============\n",
|
||||||
hydra_options.service);
|
hydra_options.service);
|
||||||
if (strcmp(hydra_options.service, "https-post-form") == 0)
|
if (strncmp(hydra_options.service, "https-", 6) == 0 )
|
||||||
strcpy(hydra_options.service, "http-post-form");
|
memmove(hydra_options.service + 4, hydra_options.service + 5, strlen(hydra_options.service) - 4);
|
||||||
else if (strcmp(hydra_options.service, "https-get-form") == 0)
|
|
||||||
strcpy(hydra_options.service, "http-get-form");
|
|
||||||
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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue