mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-22 06:13:55 -07:00
avoid negative values for the rotation variable
This commit is contained in:
parent
74ef9c594d
commit
0dcac31b4a
1 changed files with 0 additions and 6 deletions
6
bfg.c
6
bfg.c
|
@ -221,12 +221,6 @@ char *bf_next() {
|
||||||
}
|
}
|
||||||
|
|
||||||
//we revert the ordering of the bruteforce to fix the first static character
|
//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) {
|
while (pos >= 0 && (++bf_options.state[pos]) >= bf_options.crs_len) {
|
||||||
bf_options.state[pos] = 0;
|
bf_options.state[pos] = 0;
|
||||||
pos--;
|
pos--;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue