mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 13:23:57 -07:00
small info changes
This commit is contained in:
parent
859b7aa443
commit
5a19c1787e
1 changed files with 13 additions and 3 deletions
16
hydra.c
16
hydra.c
|
@ -3512,9 +3512,16 @@ int32_t main(int32_t argc, char *argv[]) {
|
||||||
(uint64_t) hydra_brains.countlogin, (uint64_t) hydra_brains.countpass,
|
(uint64_t) hydra_brains.countlogin, (uint64_t) hydra_brains.countpass,
|
||||||
math2, math2 == 1 ? "y" : "ies");
|
math2, math2 == 1 ? "y" : "ies");
|
||||||
|
|
||||||
printf("[DATA] attacking service %s on port %d%s\n", hydra_options.service, port, hydra_options.ssl == 1 ? " with SSL" : "");
|
if (hydra_brains.targets == 1) {
|
||||||
if (hydra_options.miscptr != NULL && hydra_options.miscptr[0] != 0)
|
if (index(hydra_targets[0]->target, ':') == NULL)
|
||||||
printf("[DATA] with additional data %s\n", hydra_options.miscptr);
|
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 : "");
|
||||||
|
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 : "");
|
||||||
|
} 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 : "");
|
||||||
|
//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);
|
||||||
|
|
||||||
if (hydra_options.outfile_ptr != NULL) {
|
if (hydra_options.outfile_ptr != NULL) {
|
||||||
if ((hydra_brains.ofp = fopen(hydra_options.outfile_ptr, "a+")) == NULL) {
|
if ((hydra_brains.ofp = fopen(hydra_options.outfile_ptr, "a+")) == NULL) {
|
||||||
|
@ -3629,6 +3636,9 @@ int32_t main(int32_t argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
freeaddrinfo(res);
|
freeaddrinfo(res);
|
||||||
}
|
}
|
||||||
|
// restore device information if present
|
||||||
|
if (device != NULL)
|
||||||
|
*(device - 1) = '%';
|
||||||
}
|
}
|
||||||
if (verbose)
|
if (verbose)
|
||||||
printf("[VERBOSE] resolving done\n");
|
printf("[VERBOSE] resolving done\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue