Closed crnorthc closed 2 years ago
why dont you use the current github state?
on my mac it works fine:
Mac-mini ~/thc-hydra $ ./hydra -l test -p test https-get://www.thc.org/
Hydra v9.3-dev (c) 2021 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).
Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2021-12-25 14:13:29
[DATA] max 1 task per 1 server, overall 1 task, 1 login try (l:1/p:1), ~1 try per task
[DATA] attacking http-gets://www.thc.org:443/
[443][http-get] host: www.thc.org login: test password: test
1 of 1 target successfully completed, 1 valid password found
Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2021-12-25 14:13:30
I am running hydra9.2 on 64 bit Darwin OS
** When Running ./configure
Detected 64 Bit Darwin OS
Checking for zlib (libz/zlib.h) ... ... found Checking for openssl (libssl/libcrypto/ssl.h/sha.h) ... ... found Checking for gcrypt (libgcrypt/gpg-error.h) ... ... gcrypt not found, radmin2 module disabled Checking for idn (libidn) ... ... NOT found, unicode logins and passwords will not be supported Checking for curses (libcurses/term.h) ... ... NOT found, color output disabled Checking for pcre (libpcre/pcre.h) ... ... NOT found, server response checks will be less reliable Checking for Postgres (libpq/libpq-fe.h) ... ... NOT found, module postgres disabled Checking for SVN (libsvn_client-1/libapr-1/libaprutil-1) ... ... NOT found, module svn disabled Checking for firebird (libfbclient) ... ... NOT found, module firebird disabled Checking for MYSQL client (libmysqlclient/math.h) ... ... NOT found, module Mysql will not support version > 4.x Checking for AFP (libafpclient) ... ... NOT found, module Apple Filing Protocol disabled - Apple sucks anyway Checking for NCP (libncp/nwcalls.h) ... ... NOT found, module NCP disabled Checking for SAP/R3 (librfc/saprfc.h) ... ... NOT found, module sapr3 disabled Get it from http://www.sap.com/solutions/netweaver/linux/eval/index.asp Checking for libssh (libssh/libssh.h) ... ... found Checking for Oracle (libocci/libclntsh/oci.h/libaio/liboci) ... ... NOT found, module Oracle disabled Get basic and sdk package from http://www.oracle.com/technetwork/database/features/instant-client/index.html Checking for Memcached (libmemcached/memcached.h) ... ... NOT found, module memcached disabled Checking for Freerdp3 (libfreerdp3/freerdp.h/libwinpr3/winpr.h) ... ... NOT found, checking for freerdp2 module next... Checking for Freerdp2 (libfreerdp2/freerdp.h/libwinpr2/winpr.h) ... ... NOT found, module rdp disabled Checking for Mongodb (libmongoc-1.0/mongoc.h/libbson-1.0/bson.h) ... ... NOT found, module mongodb disabled Checking for smbclient (libsmbclient/libsmbclient.h) ... ... NOT found, module smb2 disabled Checking for GUI req's (pkg-config/gtk+-2.0) ... ... NOT found, optional anyway Checking for Android specialities ... ... strrchr() found ... RSA_generate_key() found Checking for secure compile option support in gcc ... Compiling... yes Linking... no
Hydra will be installed into .../bin of: /usr/local (change this by running ./configure --prefix=path)
** running make
cc -I. -O3 -g -fcommon -g -o pw-inspector pw-inspector.c cc -I. -O3 -g -fcommon -g -c hydra-vnc.c -DLIBOPENSSL -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H -DHAVE_SYS_PARAM_H -I/usr/local/include -I/usr/local/include cc -I. -O3 -g -fcommon -g -c hydra-pcnfs.c -DLIBOPENSSL -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H -DHAVE_SYS_PARAM_H -I/usr/local/include -I/usr/local/include cc -I. -O3 -g -fcommon -g -c hydra-rexec.c -DLIBOPENSSL -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H -DHAVE_SYS_PARAM_H -I/usr/local/include -I/usr/local/include cc -I. -O3 -g -fcommon -g -c hydra-nntp.c -DLIBOPENSSL -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H -DHAVE_SYS_PARAM_H -I/usr/local/include -I/usr/local/include cc -I. -O3 -g -fcommon -g -c hydra-socks5.c -DLIBOPENSSL -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H -DHAVE_SYS_PARAM_H -I/usr/local/include -I/usr/local/include cc -I. -O3 -g -fcommon -g -c hydra-telnet.c -DLIBOPENSSL -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H -DHAVE_SYS_PARAM_H -I/usr/local/include -I/usr/local/include cc -I. -O3 -g -fcommon -g -c hydra-cisco.c -DLIBOPENSSL -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H -DHAVE_SYS_PARAM_H -I/usr/local/include -I/usr/local/include cc -I. -O3 -g -fcommon -g -c hydra-http.c -DLIBOPENSSL -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H -DHAVE_SYS_PARAM_H -I/usr/local/include -I/usr/local/include cc -I. -O3 -g -fcommon -g -c hydra-ftp.c -DLIBOPENSSL -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H -DHAVE_SYS_PARAM_H -I/usr/local/include -I/usr/local/include cc -I. -O3 -g -fcommon -g -c hydra-imap.c -DLIBOPENSSL -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H -DHAVE_SYS_PARAM_H -I/usr/local/include -I/usr/local/include cc -I. -O3 -g -fcommon -g -c hydra-pop3.c -DLIBOPENSSL -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H -DHAVE_SYS_PARAM_H -I/usr/local/include -I/usr/local/include hydra-pop3.c:143:5: warning: 'MD5_Init' is deprecated [-Wdeprecated-declarations] MD5_Init(&c); ^ /usr/local/include/openssl/md5.h:49:1: note: 'MD5_Init' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
define OSSL_DEPRECATED(since) attribute((deprecated))
hydra-pop3.c:144:5: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&c, apop_challenge, strlen(apop_challenge)); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX c, const void data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
define OSSL_DEPRECATED(since) attribute((deprecated))
hydra-pop3.c:145:5: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations] MD5_Update(&c, pass, strlen(pass)); ^ /usr/local/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX c, const void data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
define OSSL_DEPRECATED(since) attribute((deprecated))
hydra-pop3.c:146:5: warning: 'MD5_Final' is deprecated [-Wdeprecated-declarations] MD5_Final(md5_raw, &c); ^ /usr/local/include/openssl/md5.h:51:1: note: 'MD5_Final' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char md, MD5_CTX c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
define OSSL_DEPRECATED(since) attribute((deprecated))
4 warnings generated. cc -I. -O3 -g -fcommon -g -c hydra-smb.c -DLIBOPENSSL -DLIBSSH -DHAVE_ZLIB -DHAVE_MATH_H -DHAVE_SYS_PARAM_H -I/usr/local/include -I/usr/local/include hydra-smb.c:172:3: warning: 'DES_set_odd_parity' is deprecated [-Wdeprecated-declarations] DES_set_odd_parity((DES_cblock )DES_key); ^ /usr/local/include/openssl/des.h:176:1: note: 'DES_set_odd_parity' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 void DES_set_odd_parity(DES_cblock key); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
define OSSL_DEPRECATED(since) attribute((deprecated))
hydra-smb.c:181:3: warning: 'DES_set_key' is deprecated [-Wdeprecated-declarations] DES_set_key(&DES_key, &key_schedule); ^ /usr/local/include/openssl/des.h:185:1: note: 'DES_set_key' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
define OSSL_DEPRECATED(since) attribute((deprecated))
hydra-smb.c:182:3: warning: 'DES_ecb_encrypt' is deprecated [-Wdeprecated-declarations] DES_ecb_encrypt((DES_cblock )clear, (DES_cblock )cipher, &key_schedule, 1); ^ /usr/local/include/openssl/des.h:104:1: note: 'DES_ecb_encrypt' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
define OSSL_DEPRECATED(since) attribute((deprecated))
hydra-smb.c:363:5: warning: 'MD4_Init' is deprecated [-Wdeprecated-declarations] MD4_Init(&md4Context); ^ /usr/local/include/openssl/md4.h:50:1: note: 'MD4_Init' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD4_Init(MD4_CTX *c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
define OSSL_DEPRECATED(since) attribute((deprecated))
hydra-smb.c:364:5: warning: 'MD4_Update' is deprecated [-Wdeprecated-declarations] MD4_Update(&md4Context, unicodePassword, mdlen); ^ /usr/local/include/openssl/md4.h:51:1: note: 'MD4_Update' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD4_Update(MD4_CTX c, const void data, size_t len); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
define OSSL_DEPRECATED(since) attribute((deprecated))
hydra-smb.c:365:5: warning: 'MD4_Final' is deprecated [-Wdeprecated-declarations] MD4_Final(hash, &md4Context); / Tell MD4 we're done / ^ /usr/local/include/openssl/md4.h:52:1: note: 'MD4_Final' has been explicitly marked deprecated here OSSL_DEPRECATEDIN_3_0 int MD4_Final(unsigned char md, MD4_CTX c); ^ /usr/local/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
/usr/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
define OSSL_DEPRECATED(since) attribute((deprecated))
hydra-smb.c:576:25: warning: shifting a negative signed value is undefined [-Wshift-negative-value] else if (ts.tv_sec == TIME_T_MAX) ^
~~~~~ hydra-smb.c:91:34: note: expanded from macro 'TIME_T_MAX'define TIME_T_MAX (~(time_t)0 - TIME_T_MIN)
hydra-smb.c:88:69: note: expanded from macro 'TIME_T_MIN'
define TIME_T_MIN ((time_t)0 < (time_t)-1 ? (time_t)0 : ~(time_t)0 << (sizeof(time_t) * CHAR_BIT - 1))
hydra-smb.c:1210:55: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if (/(bufReceive == NULL) ||/ (nReceiveBufferSize == 0))