diff --git a/hydra-asterisk.c b/hydra-asterisk.c index 1b0e4a4..13c53b5 100644 --- a/hydra-asterisk.c +++ b/hydra-asterisk.c @@ -74,7 +74,7 @@ void service_asterisk(char *ip, int sp, unsigned char options, char *miscptr, FI case 1: /* connect and service init function */ if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(300); +// usleepn(300); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-cisco-enable.c b/hydra-cisco-enable.c index 4e40adb..f943d5c 100644 --- a/hydra-cisco-enable.c +++ b/hydra-cisco-enable.c @@ -74,7 +74,7 @@ void service_cisco_enable(char *ip, int sp, unsigned char options, char *miscptr { if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(275); +// usleepn(275); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-cisco.c b/hydra-cisco.c index 6f0b2f4..3e45ad4 100644 --- a/hydra-cisco.c +++ b/hydra-cisco.c @@ -132,7 +132,7 @@ void service_cisco(char *ip, int sp, unsigned char options, char *miscptr, FILE if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(275); +// usleepn(275); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-cvs.c b/hydra-cvs.c index a337fbb..cbef603 100644 --- a/hydra-cvs.c +++ b/hydra-cvs.c @@ -104,7 +104,7 @@ void service_cvs(char *ip, int sp, unsigned char options, char *miscptr, FILE * if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(300); +// usleepn(300); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-ftp.c b/hydra-ftp.c index 3733b73..e8a2ef7 100644 --- a/hydra-ftp.c +++ b/hydra-ftp.c @@ -84,7 +84,7 @@ void service_ftp_core(char *ip, int sp, unsigned char options, char *miscptr, FI case 1: /* connect and service init function */ if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(300); +// usleepn(300); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-http-proxy-urlenum.c b/hydra-http-proxy-urlenum.c index 9f699d0..97dce71 100644 --- a/hydra-http-proxy-urlenum.c +++ b/hydra-http-proxy-urlenum.c @@ -243,7 +243,7 @@ void service_http_proxy_urlenum(char *ip, int sp, unsigned char options, char *m { if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(275); +// usleepn(275); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-http-proxy.c b/hydra-http-proxy.c index c508a04..6a5c578 100644 --- a/hydra-http-proxy.c +++ b/hydra-http-proxy.c @@ -263,7 +263,7 @@ void service_http_proxy(char *ip, int sp, unsigned char options, char *miscptr, free(http_proxy_buf); if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(275); +// usleepn(275); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-imap.c b/hydra-imap.c index 4e3283c..a9833b9 100644 --- a/hydra-imap.c +++ b/hydra-imap.c @@ -19,7 +19,7 @@ char *imap_read_server_capacity(int sock) { if (buf != NULL) { if (strstr(buf, "CAPABILITY") != NULL && buf[0] == '*') { resp = 1; - sleepn(300); + usleepn(300); /* we got the capability info then get the completed warning info from server */ while (hydra_data_ready(sock)) { free(buf); @@ -366,7 +366,7 @@ void service_imap(char *ip, int sp, unsigned char options, char *miscptr, FILE * case 1: /* connect and service init function */ if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(275); +// usleepn(275); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-irc.c b/hydra-irc.c index 33161f0..42e2043 100644 --- a/hydra-irc.c +++ b/hydra-irc.c @@ -63,7 +63,7 @@ int send_nick(int s, char *ip, char *pass) { int irc_server_connect(char *ip, int sock, int port, unsigned char options, char *hostname) { if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(275); +// usleepn(275); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-ldap.c b/hydra-ldap.c index 178c3e9..517d3c0 100644 --- a/hydra-ldap.c +++ b/hydra-ldap.c @@ -363,7 +363,7 @@ void service_ldap(char *ip, int sp, unsigned char options, char *miscptr, FILE * case 1: /* connect and service init function */ if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(275); +// usleepn(275); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-mod.c b/hydra-mod.c index 30422b3..0552e09 100644 --- a/hydra-mod.c +++ b/hydra-mod.c @@ -603,7 +603,7 @@ void hydra_child_exit(int code) { __fck = write(intern_socket, "E", 1); } do { - sleepn(10); + usleepn(10); } while (read(intern_socket, buf, 1) <= 0); close(intern_socket); // sleep(2); // be sure that mommy receives our message diff --git a/hydra-mysql.c b/hydra-mysql.c index 3e565a3..babf4a8 100644 --- a/hydra-mysql.c +++ b/hydra-mysql.c @@ -322,7 +322,7 @@ void service_mysql(char *ip, int sp, unsigned char options, char *miscptr, FILE hydra_mysql_send_com_quit(sock); sock = hydra_disconnect(sock); } -// sleepn(300); +// usleepn(300); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-nntp.c b/hydra-nntp.c index a4e1167..890a5a6 100644 --- a/hydra-nntp.c +++ b/hydra-nntp.c @@ -279,7 +279,7 @@ void service_nntp(char *ip, int sp, unsigned char options, char *miscptr, FILE * case 1: /* connect and service init function */ if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(300); +// usleepn(300); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; @@ -296,7 +296,7 @@ void service_nntp(char *ip, int sp, unsigned char options, char *miscptr, FILE * hydra_report(stderr, "[ERROR] Child with pid %d terminating, can not connect\n", (int) getpid()); hydra_child_exit(1); } -// sleepn(300); +// usleepn(300); buf = hydra_receive_line(sock); if (buf == NULL || buf[0] != '2') { /* check the first line */ if (verbose || debug) @@ -452,7 +452,7 @@ SASL PLAIN DIGEST-MD5 LOGIN NTLM CRAM-MD5 break; } } - sleepn(25); + usleepn(25); free(buf); next_run = 2; break; diff --git a/hydra-oracle-listener.c b/hydra-oracle-listener.c index 0d453bb..5f58181 100644 --- a/hydra-oracle-listener.c +++ b/hydra-oracle-listener.c @@ -287,7 +287,7 @@ void service_oracle_listener(char *ip, int sp, unsigned char options, char *misc case 1: /* connect and service init function */ if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(300); +// usleepn(300); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-oracle-sid.c b/hydra-oracle-sid.c index 7f95043..1444e59 100644 --- a/hydra-oracle-sid.c +++ b/hydra-oracle-sid.c @@ -97,7 +97,7 @@ void service_oracle_sid(char *ip, int sp, unsigned char options, char *miscptr, case 1: /* connect and service init function */ if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(300); +// usleepn(300); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-pcanywhere.c b/hydra-pcanywhere.c index fa441d5..2161e1a 100644 --- a/hydra-pcanywhere.c +++ b/hydra-pcanywhere.c @@ -238,7 +238,7 @@ void service_pcanywhere(char *ip, int sp, unsigned char options, char *miscptr, case 1: /* connect and service init function */ if (sock >= 0) sock = hydra_disconnect(sock); - sleepn(275); + usleepn(275); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-pcnfs.c b/hydra-pcnfs.c index fca9b51..2707638 100644 --- a/hydra-pcnfs.c +++ b/hydra-pcnfs.c @@ -159,7 +159,7 @@ void service_pcnfs(char *ip, int sp, unsigned char options, char *miscptr, FILE { if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(275); +// usleepn(275); if ((sock = hydra_connect_udp(ip, port)) < 0) { if (quiet != 1) fprintf(stderr, "[ERROR] Child with pid %d terminating, can not connect\n", (int) getpid()); hydra_child_exit(1); diff --git a/hydra-pop3.c b/hydra-pop3.c index 4e2eedd..d2c58f7 100644 --- a/hydra-pop3.c +++ b/hydra-pop3.c @@ -438,7 +438,7 @@ void service_pop3(char *ip, int sp, unsigned char options, char *miscptr, FILE * if (sock >= 0) sock = hydra_disconnect(sock); - // sleepn(300); + // usleepn(300); if ((options & OPTION_SSL) == 0) { sock = hydra_connect_tcp(ip, port); } else { @@ -525,7 +525,7 @@ int service_pop3_init(char *ip, int sp, unsigned char options, char *miscptr, FI if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(300); +// usleepn(300); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-postgres.c b/hydra-postgres.c index 1c53791..e572622 100644 --- a/hydra-postgres.c +++ b/hydra-postgres.c @@ -80,7 +80,7 @@ void service_postgres(char *ip, int sp, unsigned char options, char *miscptr, FI case 1: /* connect and service init function */ if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(275); +// usleepn(275); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-rexec.c b/hydra-rexec.c index 8b2a5fd..c71167f 100644 --- a/hydra-rexec.c +++ b/hydra-rexec.c @@ -59,7 +59,7 @@ void service_rexec(char *ip, int sp, unsigned char options, char *miscptr, FILE { if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(275); +// usleepn(275); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-rlogin.c b/hydra-rlogin.c index ba307c5..2dc8ef6 100644 --- a/hydra-rlogin.c +++ b/hydra-rlogin.c @@ -106,7 +106,7 @@ void service_rlogin(char *ip, int sp, unsigned char options, char *miscptr, FILE hydra_set_srcport(1023); if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(275); +// usleepn(275); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-rsh.c b/hydra-rsh.c index 9ea58fa..deeb097 100644 --- a/hydra-rsh.c +++ b/hydra-rsh.c @@ -76,7 +76,7 @@ void service_rsh(char *ip, int sp, unsigned char options, char *miscptr, FILE * hydra_set_srcport(1023); if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(275); +// usleepn(275); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-smb.c b/hydra-smb.c index 2fbf455..f0f5a40 100644 --- a/hydra-smb.c +++ b/hydra-smb.c @@ -1375,7 +1375,7 @@ void service_smb(char *ip, int sp, unsigned char options, char *miscptr, FILE * case 1: /* connect and service init function */ if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(300); +// usleepn(300); if (port != 0) { sock = hydra_connect_tcp(ip, port); diff --git a/hydra-socks5.c b/hydra-socks5.c index 56e0eda..1c01a0e 100644 --- a/hydra-socks5.c +++ b/hydra-socks5.c @@ -119,7 +119,7 @@ void service_socks5(char *ip, int sp, unsigned char options, char *miscptr, FILE case 1: /* connect and service init function */ if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(300); +// usleepn(300); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-svn.c b/hydra-svn.c index c0de0db..eecdc12 100644 --- a/hydra-svn.c +++ b/hydra-svn.c @@ -152,7 +152,7 @@ void service_svn(char *ip, int sp, unsigned char options, char *miscptr, FILE * if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(300); +// usleepn(300); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-teamspeak.c b/hydra-teamspeak.c index a9026a3..c0e8b87 100644 --- a/hydra-teamspeak.c +++ b/hydra-teamspeak.c @@ -116,7 +116,7 @@ void service_teamspeak(char *ip, int sp, unsigned char options, char *miscptr, F case 1: /* connect and service init function */ // if (sock >= 0) // sock = hydra_disconnect(sock); -// sleepn(300); +// usleepn(300); if (sock < 0) { if (port != 0) myport = port; diff --git a/hydra-telnet.c b/hydra-telnet.c index 596206d..d1f1b2b 100644 --- a/hydra-telnet.c +++ b/hydra-telnet.c @@ -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); } - sleepn(20); + usleepn(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); } - sleepn(20); + usleepn(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); -// sleepn(300); +// usleepn(300); no_line_mode = 0; first = 0; if ((options & OPTION_SSL) == 0) { diff --git a/hydra-vmauthd.c b/hydra-vmauthd.c index ad6ed70..d223c22 100644 --- a/hydra-vmauthd.c +++ b/hydra-vmauthd.c @@ -77,7 +77,7 @@ void service_vmauthd(char *ip, int sp, unsigned char options, char *miscptr, FIL case 1: /* connect and service init function */ if (sock >= 0) sock = hydra_disconnect(sock); -// sleepn(300); +// usleepn(300); if ((options & OPTION_SSL) == 0) { if (port != 0) myport = port; diff --git a/hydra-vnc.c b/hydra-vnc.c index 3459278..598ffe3 100644 --- a/hydra-vnc.c +++ b/hydra-vnc.c @@ -170,7 +170,7 @@ void service_vnc(char *ip, int sp, unsigned char options, char *miscptr, FILE * hydra_report(stderr, "[ERROR] Child with pid %d terminating, can not connect\n", (int) getpid()); hydra_child_exit(1); } - sleepn(300); + usleepn(300); buf = hydra_receive_line(sock); if (buf == NULL || (strncmp(buf, "RFB", 3) != 0)) { /* check the first line */ diff --git a/hydra-xmpp.c b/hydra-xmpp.c index 636159c..7fb4462 100644 --- a/hydra-xmpp.c +++ b/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 = ""; hydra_send(sock, STARTTLS, strlen(STARTTLS), 0); - sleepn(300); + usleepn(300); buf = hydra_receive_line(sock); if (buf == NULL || strstr(buf, "