mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-22 06:13:55 -07:00
bail when stdin feof is reached and more lines are to be printed
This commit is contained in:
parent
70c8b6ee6d
commit
6fc51db156
1 changed files with 2 additions and 6 deletions
8
hydra.c
8
hydra.c
|
@ -254,10 +254,7 @@ char *read_line_stdin() {
|
||||||
do {
|
do {
|
||||||
c = getc(stdin);
|
c = getc(stdin);
|
||||||
if(feof(stdin))
|
if(feof(stdin))
|
||||||
{
|
return NULL;
|
||||||
fprintf(stderr, "eof\n");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
strncpy(&word[i], &c, 1);
|
strncpy(&word[i], &c, 1);
|
||||||
i++;
|
i++;
|
||||||
} while(c != '\n');
|
} while(c != '\n');
|
||||||
|
@ -620,8 +617,7 @@ void help_bfg() {
|
||||||
" just add their real representation.\n"
|
" just add their real representation.\n"
|
||||||
" -y disable the use of the above letters as placeholders\n\n"
|
" -y disable the use of the above letters as placeholders\n\n"
|
||||||
" -x +LINES\n\n"
|
" -x +LINES\n\n"
|
||||||
" LINES is the numer of lines read from standard input,\n"
|
" LINES is the numer of lines read from standard input\n\n"
|
||||||
" you must not set it above what stdin is going to produce.\n"
|
|
||||||
"Examples:\n"
|
"Examples:\n"
|
||||||
" -x 3:5:a generate passwords from length 3 to 5 with all "
|
" -x 3:5:a generate passwords from length 3 to 5 with all "
|
||||||
"lowercase letters\n"
|
"lowercase letters\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue