mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 21:33:51 -07:00
using hydra 8.8 files
This commit is contained in:
parent
3f56e5185a
commit
ed9d8f1516
2 changed files with 7 additions and 2 deletions
8
hydra.c
8
hydra.c
|
@ -1708,7 +1708,7 @@ int32_t hydra_send_next_pair(int32_t target_no, int32_t head_no) {
|
||||||
#ifndef HAVE_MATH_H
|
#ifndef HAVE_MATH_H
|
||||||
sleep(1);
|
sleep(1);
|
||||||
#else
|
#else
|
||||||
hydra_targets[target_no]->pass_ptr = bf_next();
|
hydra_targets[target_no]->pass_ptr = bf_next(hydra_options.rainy);
|
||||||
if (debug)
|
if (debug)
|
||||||
printf("[DEBUG] bfg new password for next child: %s\n", hydra_targets[target_no]->pass_ptr);
|
printf("[DEBUG] bfg new password for next child: %s\n", hydra_targets[target_no]->pass_ptr);
|
||||||
#endif
|
#endif
|
||||||
|
@ -2172,6 +2172,7 @@ int main(int argc, char *argv[]) {
|
||||||
hydra_brains.ofp = stdout;
|
hydra_brains.ofp = stdout;
|
||||||
hydra_brains.targets = 1;
|
hydra_brains.targets = 1;
|
||||||
hydra_options.waittime = waittime = WAITTIME;
|
hydra_options.waittime = waittime = WAITTIME;
|
||||||
|
hydra_options.rainy = false;
|
||||||
bf_options.disable_symbols = 0;
|
bf_options.disable_symbols = 0;
|
||||||
|
|
||||||
// command line processing
|
// command line processing
|
||||||
|
@ -2203,6 +2204,9 @@ int main(int argc, char *argv[]) {
|
||||||
hydra_options.restore = 1;
|
hydra_options.restore = 1;
|
||||||
hydra_restore_read();
|
hydra_restore_read();
|
||||||
break;
|
break;
|
||||||
|
case 'r':
|
||||||
|
hydra_options.rainy = true;
|
||||||
|
break;
|
||||||
case 'I':
|
case 'I':
|
||||||
ignore_restore = 1; // this is not to be saved in hydra_options!
|
ignore_restore = 1; // this is not to be saved in hydra_options!
|
||||||
break;
|
break;
|
||||||
|
@ -3179,7 +3183,7 @@ int main(int argc, char *argv[]) {
|
||||||
#ifdef HAVE_MATH_H
|
#ifdef HAVE_MATH_H
|
||||||
if (bf_init(bf_options.arg))
|
if (bf_init(bf_options.arg))
|
||||||
exit(-1); // error description is handled by bf_init
|
exit(-1); // error description is handled by bf_init
|
||||||
pass_ptr = bf_next();
|
pass_ptr = bf_next(hydra_options.rainy);
|
||||||
hydra_brains.countpass += bf_get_pcount();
|
hydra_brains.countpass += bf_get_pcount();
|
||||||
hydra_brains.sizepass += BF_BUFLEN;
|
hydra_brains.sizepass += BF_BUFLEN;
|
||||||
#else
|
#else
|
||||||
|
|
1
hydra.h
1
hydra.h
|
@ -210,6 +210,7 @@ typedef struct {
|
||||||
char *server;
|
char *server;
|
||||||
char *service;
|
char *service;
|
||||||
char bfg;
|
char bfg;
|
||||||
|
_Bool rainy;
|
||||||
} hydra_option;
|
} hydra_option;
|
||||||
|
|
||||||
#define _HYDRA_H
|
#define _HYDRA_H
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue