mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-21 22:03:46 -07:00
update efficient rain option
This commit is contained in:
parent
c1beb2edb0
commit
74ef9c594d
2 changed files with 11 additions and 0 deletions
7
bfg.c
7
bfg.c
|
@ -220,6 +220,13 @@ char *bf_next() {
|
|||
printf(", x: %s\n", bf_options.ptr);
|
||||
}
|
||||
|
||||
//we revert the ordering of the bruteforce to fix the first static character
|
||||
if(rainy)
|
||||
while (pos >= 0 && (++bf_options.state[bf_options.current-1-pos]) >= bf_options.crs_len) {
|
||||
bf_options.state[bf_options.current-1-pos] = 0;
|
||||
pos--;
|
||||
}
|
||||
else
|
||||
while (pos >= 0 && (++bf_options.state[pos]) >= bf_options.crs_len) {
|
||||
bf_options.state[pos] = 0;
|
||||
pos--;
|
||||
|
|
4
bfg.h
4
bfg.h
|
@ -43,6 +43,10 @@ typedef struct {
|
|||
char *crs; /* internal representation of charset */
|
||||
char *ptr; /* ptr to the last generated password */
|
||||
uint32_t disable_symbols;
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
uint64_t rotate;
|
||||
>>>>>>> c65e3a2 (update efficient rain option)
|
||||
} bf_option;
|
||||
|
||||
extern bf_option bf_options;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue