mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-12 17:47:27 -07:00
Don't add extra slash to url if exist
This commit is contained in:
parent
a58f785065
commit
0c1a50db31
1 changed files with 3 additions and 3 deletions
6
hydra.c
6
hydra.c
|
@ -3541,11 +3541,11 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
if (hydra_brains.targets == 1) {
|
||||
if (index(hydra_targets[0]->target, ':') == NULL)
|
||||
printf("[DATA] attacking %s%s://%s:%d/%s\n", hydra_options.service, hydra_options.ssl == 1 ? "s" : "", hydra_targets[0]->target, port, hydra_options.miscptr != NULL ? hydra_options.miscptr : "");
|
||||
printf("[DATA] attacking %s%s://%s:%d%s%s\n", hydra_options.service, hydra_options.ssl == 1 ? "s" : "", hydra_targets[0]->target, port, strstr(hydra_options.miscptr, "/") == hydra_options.miscptr ? "" : "/", hydra_options.miscptr != NULL ? hydra_options.miscptr : "");
|
||||
else
|
||||
printf("[DATA] attacking %s%s://[%s]:%d/%s\n", hydra_options.service, hydra_options.ssl == 1 ? "s" : "", hydra_targets[0]->target, port, hydra_options.miscptr != NULL ? hydra_options.miscptr : "");
|
||||
printf("[DATA] attacking %s%s://[%s]:%d%s%s\n", hydra_options.service, hydra_options.ssl == 1 ? "s" : "", hydra_targets[0]->target, port, strstr(hydra_options.miscptr, "/") == hydra_options.miscptr ? "" : "/", hydra_options.miscptr != NULL ? hydra_options.miscptr : "");
|
||||
} else
|
||||
printf("[DATA] attacking %s%s://(%d targets):%d/%s\n", hydra_options.service, hydra_options.ssl == 1 ? "s" : "", hydra_brains.targets, port, hydra_options.miscptr != NULL ? hydra_options.miscptr : "");
|
||||
printf("[DATA] attacking %s%s://(%d targets):%d%s%s\n", hydra_options.service, hydra_options.ssl == 1 ? "s" : "", hydra_brains.targets, port, strstr(hydra_options.miscptr, "/") == hydra_options.miscptr ? "" : "/", hydra_options.miscptr != NULL ? hydra_options.miscptr : "");
|
||||
//service %s on port %d%s\n", hydra_options.service, port, hydra_options.ssl == 1 ? " with SSL" : "");
|
||||
// if (hydra_options.miscptr != NULL && hydra_options.miscptr[0] != 0)
|
||||
// printf("[DATA] with additional data %s\n", hydra_options.miscptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue