using hydra 8.8 files

This commit is contained in:
owein 2019-10-07 16:56:59 +02:00
commit ed9d8f1516
2 changed files with 7 additions and 2 deletions

View file

@ -1708,7 +1708,7 @@ int32_t hydra_send_next_pair(int32_t target_no, int32_t head_no) {
#ifndef HAVE_MATH_H
sleep(1);
#else
hydra_targets[target_no]->pass_ptr = bf_next();
hydra_targets[target_no]->pass_ptr = bf_next(hydra_options.rainy);
if (debug)
printf("[DEBUG] bfg new password for next child: %s\n", hydra_targets[target_no]->pass_ptr);
#endif
@ -2172,6 +2172,7 @@ int main(int argc, char *argv[]) {
hydra_brains.ofp = stdout;
hydra_brains.targets = 1;
hydra_options.waittime = waittime = WAITTIME;
hydra_options.rainy = false;
bf_options.disable_symbols = 0;
// command line processing
@ -2203,6 +2204,9 @@ int main(int argc, char *argv[]) {
hydra_options.restore = 1;
hydra_restore_read();
break;
case 'r':
hydra_options.rainy = true;
break;
case 'I':
ignore_restore = 1; // this is not to be saved in hydra_options!
break;
@ -3179,7 +3183,7 @@ int main(int argc, char *argv[]) {
#ifdef HAVE_MATH_H
if (bf_init(bf_options.arg))
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.sizepass += BF_BUFLEN;
#else

View file

@ -210,6 +210,7 @@ typedef struct {
char *server;
char *service;
char bfg;
_Bool rainy;
} hydra_option;
#define _HYDRA_H