mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 20:41:39 -07:00
sleep -> usleep fix
This commit is contained in:
parent
cbe0ada4c1
commit
f42f7626ac
30 changed files with 40 additions and 40 deletions
10
hydra-xmpp.c
10
hydra-xmpp.c
|
@ -47,7 +47,7 @@ int start_xmpp(int s, char *ip, int port, unsigned char options, char *miscptr,
|
|||
}
|
||||
|
||||
hydra_send(s, buffer, strlen(buffer), 0);
|
||||
sleepn(300);
|
||||
usleepn(300);
|
||||
if ((buf = hydra_receive_line(s)) == NULL)
|
||||
return 3;
|
||||
|
||||
|
@ -244,7 +244,7 @@ int start_xmpp(int s, char *ip, int port, unsigned char options, char *miscptr,
|
|||
if (hydra_send(s, buffer, strlen(buffer), 0) < 0) {
|
||||
return 1;
|
||||
}
|
||||
sleepn(50);
|
||||
usleepn(50);
|
||||
buf = hydra_receive_line(s);
|
||||
if (buf == NULL)
|
||||
return 1;
|
||||
|
@ -334,7 +334,7 @@ void service_xmpp(char *target, char *ip, int sp, unsigned char options, char *m
|
|||
hydra_child_exit(1);
|
||||
}
|
||||
//some server is longer to answer
|
||||
sleepn(300);
|
||||
usleepn(300);
|
||||
do {
|
||||
if ((buf = hydra_receive_line(sock)) == NULL) {
|
||||
/* no auth method identified */
|
||||
|
@ -435,7 +435,7 @@ void service_xmpp(char *target, char *ip, int sp, unsigned char options, char *m
|
|||
char *STARTTLS = "<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>";
|
||||
|
||||
hydra_send(sock, STARTTLS, strlen(STARTTLS), 0);
|
||||
sleepn(300);
|
||||
usleepn(300);
|
||||
buf = hydra_receive_line(sock);
|
||||
|
||||
if (buf == NULL || strstr(buf, "<failure") != NULL) {
|
||||
|
@ -460,7 +460,7 @@ void service_xmpp(char *target, char *ip, int sp, unsigned char options, char *m
|
|||
hydra_child_exit(1);
|
||||
}
|
||||
//some server is longer to answer
|
||||
sleepn(300);
|
||||
usleepn(300);
|
||||
buf = hydra_receive_line(sock);
|
||||
if ((buf == NULL) || (strstr(buf, "<stream:stream") == NULL))
|
||||
hydra_child_exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue