mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
Switched usleep to nanosleep for posix complience
This commit is contained in:
parent
62be0a4aad
commit
554d66c768
35 changed files with 70 additions and 47 deletions
|
@ -24,7 +24,7 @@ int start_telnet(int s, char *ip, int port, unsigned char options, char *miscptr
|
|||
} else {
|
||||
send(s, &buffer[i], 1, 0);
|
||||
}
|
||||
usleep(20000);
|
||||
sleepn(20);
|
||||
}
|
||||
} else {
|
||||
if (hydra_send(s, buffer, strlen(buffer) + 1, 0) < 0) {
|
||||
|
@ -66,7 +66,7 @@ int start_telnet(int s, char *ip, int port, unsigned char options, char *miscptr
|
|||
} else {
|
||||
send(s, &buffer[i], 1, 0);
|
||||
}
|
||||
usleep(20000);
|
||||
sleepn(20);
|
||||
}
|
||||
} else {
|
||||
if (hydra_send(s, buffer, strlen(buffer) + 1, 0) < 0) {
|
||||
|
@ -112,7 +112,7 @@ void service_telnet(char *ip, int sp, unsigned char options, char *miscptr, FILE
|
|||
case 1: /* connect and service init function */
|
||||
if (sock >= 0)
|
||||
sock = hydra_disconnect(sock);
|
||||
// usleep(300000);
|
||||
// sleepn(300);
|
||||
no_line_mode = 0;
|
||||
first = 0;
|
||||
if ((options & OPTION_SSL) == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue