mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-06 04:51:40 -07:00
temporary debug
This commit is contained in:
parent
325318039d
commit
095efa631f
2 changed files with 4 additions and 0 deletions
2
hydra.c
2
hydra.c
|
@ -3677,6 +3677,8 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
// this is the big function which starts the attacking children, feeds login/password pairs, etc.!
|
// this is the big function which starts the attacking children, feeds login/password pairs, etc.!
|
||||||
while (exit_condition == 0) {
|
while (exit_condition == 0) {
|
||||||
|
memset(&fdreadheads, 0, sizeof(fdreadheads));
|
||||||
|
max_fd = 0;
|
||||||
FD_ZERO(&fdreadheads);
|
FD_ZERO(&fdreadheads);
|
||||||
for (head_no = 0, max_fd = 1; head_no < hydra_options.max_use; head_no++) {
|
for (head_no = 0, max_fd = 1; head_no < hydra_options.max_use; head_no++) {
|
||||||
if (hydra_heads[head_no]->active > 0) {
|
if (hydra_heads[head_no]->active > 0) {
|
||||||
|
|
|
@ -18,7 +18,9 @@ int my_select(int fd, fd_set * fdread, fd_set * fdwrite, fd_set * fdex, long sec
|
||||||
fde2 = fdex;
|
fde2 = fdex;
|
||||||
stv.tv_sec = sec;
|
stv.tv_sec = sec;
|
||||||
stv.tv_usec = usec;
|
stv.tv_usec = usec;
|
||||||
|
if (debug) printf("before select\n");
|
||||||
ret_val = select(fd, fdr2, fdw2, fde2, &stv);
|
ret_val = select(fd, fdr2, fdw2, fde2, &stv);
|
||||||
|
if (debug) printf("after select\n");
|
||||||
/* XXX select() sometimes returns errno=EINTR (signal found) */
|
/* XXX select() sometimes returns errno=EINTR (signal found) */
|
||||||
} while (ret_val == -1 && errno == EINTR);
|
} while (ret_val == -1 && errno == EINTR);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue