mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-14 02:27:31 -07:00
strncmp fix
This commit is contained in:
parent
0a07987392
commit
00637b28d1
2 changed files with 85 additions and 3 deletions
2
hydra.c
2
hydra.c
|
@ -2925,7 +2925,7 @@ int main(int argc, char *argv[]) {
|
|||
hydra_options.port = port;
|
||||
}
|
||||
|
||||
if (hydra_options.ssl == 1 && strncmp(hydra_options.service, "http-", 5 == 0) && hydra_options.port == 443)
|
||||
if (hydra_options.ssl == 1 && strncmp(hydra_options.service, "http-", 5) == 0 && hydra_options.port == 443)
|
||||
fprintf(stderr,
|
||||
"[WARNING] you specified port 443 for attacking a http service, however did not specify the -S ssl switch nor used https-..., therefore using plain HTTP\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue