0

我正在尝试使用 Cygwin 在我的 Windows 7 笔记本电脑上配置 THC Hydra 7.4.2。我使用 setup.exe 安装了 Cygwin,我选择了 devel 和 MinGW 包。

当我执行 ./configure 时它很好.. 虽然提到了一些缺少的模块。然后我被提示'现在输入“make”'。

当我这样做时,我收到以下错误消息:

PC@Z-PC ~/hydra/hydra-7.4.2
$ ./configure

Starting hydra auto configuration ...

Checking for openssl (libssl, libcrypto, ssl.h, sha.h) ...
                                                       ... found
Checking for idn (libidn.so) ...
                             ... found
Checking for curses (libcurses.so / term.h) ...
                                            ... found, color output enabled
Checking for pcre (libpcre.so, pcre.h) ...
                                       ... found
Checking for Postgres (libpq.so, libpq-fe.h) ...
                                             ... found
Checking for SVN (libsvn_client-1 libapr-1.so libaprutil-1.so) ...
                                                               ... found
Checking for firebird (libfbclient.so) ...
                                       ... NOT found, module firebird disabled
Checking for MYSQL client (libmysqlclient.so, math.h) ...
                                                      ... NOT found, module Mysq               l will not support version > 4.x
Checking for AFP (libafpclient.so) ...
                                   ... NOT found, module Apple Filing Protocol d               isabled - Apple sucks anyway
Checking for NCP (libncp.so / 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) ...
                                      ... NOT found, module ssh disabled
Get it from http://www.libssh.org
Checking for Oracle (libocci.so libclntsh.so / oci.h and libaio.so) ...
                                                                    ... NOT foun               d, module Oracle disabled
Get basic and sdk package from http://www.oracle.com/technetwork/database/featur               es/instant-client/index.html
Checking for GUI req's (pkg-config, gtk+-2.0) ...
                                              ... found

Hydra will be installed into .../bin of: /usr/local
  (change this by running ./configure --prefix=path)

Writing Makefile.in ...

Cygwin detected, if compilation fails just update your installation.

Windres found, will attach icons to hydra cygwin executables

now type "make"

PC@Z-PC ~/hydra/hydra-7.4.2
$ make
gcc -I. -O3 -lm    -o hydra hydra-logo.o hydra.c hydra-vnc.o hydra-pcnfs.o hydra               -rexec.o hydra-nntp.o hydra-socks5.o  hydra-telnet.o hydra-cisco.o hydra-http.o                hydra-ftp.o hydra-imap.o  hydra-pop3.o hydra-smb.o hydra-icq.o hydra-cisco-enabl               e.o hydra-ldap.o  hydra-mysql.o hydra-mssql.o hydra-xmpp.o hydra-http-proxy-urle               num.o  hydra-snmp.o hydra-cvs.o hydra-smtp.o hydra-smtp-enum.o hydra-sapr3.o hyd               ra-ssh.o  hydra-sshkey.o hydra-teamspeak.o hydra-postgres.o hydra-rsh.o hydra-rl               ogin.o  hydra-oracle-listener.o hydra-svn.o hydra-pcanywhere.o hydra-sip.o  hydr               a-oracle-sid.o hydra-oracle.o hydra-vmauthd.o hydra-firebird.o hydra-afp.o hydra               -ncp.o  hydra-http-proxy.o hydra-http-form.o hydra-irc.o  hydra-rdp.o crc32.o d3               des.o bfg.o ntlm.o sasl.o hmacmd5.o hydra-mod.o -lm -lcurses -lssl -lidn -lpcre                -lpq -lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1 -lcrypto -L/usr/lib -L/usr/               local/lib -L/lib -L/lib -I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/               include/subversion-1 -DLIBOPENSSL -DLIBOPENSSLNEW -DLIBNCURSES -DLIBIDN -DHAVE_P               R29_H -DHAVE_PCRE -DLIBPOSTGRES -DLIBSVN -DHAVE_MATH_H
/usr/lib/libpq.a(fe-connect.o): In function `ldapServiceLookup':
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3541: undefined reference to `_ldap_init'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3553: undefined reference to `_ldap_simple_bind'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3563: undefined reference to `_ldap_result'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3576: undefined reference to `_ldap_msgfree'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3580: undefined reference to `_ldap_search_st'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3584: undefined reference to `_ldap_msgfree'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3585: undefined reference to `_ldap_err2string'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3588: undefined reference to `_ldap_unbind'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3594: undefined reference to `_ldap_count_entries'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3622: undefined reference to `_ldap_msgfree'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3623: undefined reference to `_ldap_unbind'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3569: undefined reference to `_ldap_msgfree'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3573: undefined reference to `_ldap_unbind'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3606: undefined reference to `_ldap_first_entry'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3618: undefined reference to `_ldap_get_values_len'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3628: undefined reference to `_ldap_msgfree'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3648: undefined reference to `_ldap_value_free_len'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3649: undefined reference to `_ldap_unbind'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3661: undefined reference to `_ldap_value_free_len'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-connect.c:3662: undefined reference to `_ldap_unbind'
/usr/lib/libpq.a(fe-misc.o): In function `libpq_gettext':
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-misc.c:1202: undefined reference to `_libintl_bindtextdomain'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-misc.c:1210: undefined reference to `_libintl_dgettext'
/usr/lib/libpq.a(fe-misc.o): In function `pqSocketCheck':
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-misc.c:1025: undefined reference to `_SSL_pending'
/usr/lib/libpq.a(fe-secure.o): In function `initialize_SSL':
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1094: undefined reference to `_SSL_CTX_use_certificate_chain_file               '
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1104: undefined reference to `_SSL_use_certificate_file'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1183: undefined reference to `_SSL_use_PrivateKey'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1253: undefined reference to `_SSL_check_private_key'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1281: undefined reference to `_SSL_CTX_load_verify_locations'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1292: undefined reference to `_SSL_CTX_get_cert_store'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1322: undefined reference to `_SSL_set_verify'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1239: undefined reference to `_SSL_use_PrivateKey_file'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1357: undefined reference to `_SSL_ctrl'
/usr/lib/libpq.a(fe-secure.o): In function `init_ssl_system':
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:946: undefined reference to `_TLSv1_method'
/usr/lib/libpq.a(fe-secure.o): In function `pqsecure_write':
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:491: undefined reference to `_SSL_get_error'
/usr/lib/libpq.a(fe-secure.o): In function `pqsecure_read':
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:330: undefined reference to `_SSL_get_error'
/usr/lib/libpq.a(fe-secure.o): In function `close_SSL':
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1466: undefined reference to `_SSL_shutdown'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1467: undefined reference to `_SSL_free'
/usr/lib/libpq.a(fe-secure.o): In function `open_client_SSL':
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1432: undefined reference to `_SSL_get_peer_certificate'
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:1381: undefined reference to `_SSL_get_error'
/usr/lib/libpq.a(fe-secure.o): In function `pqsecure_open_client':
/pub/devel/postgresql/postgresql-9.2.4-1/src/postgresql-9.2.4/src/interfaces/lib               pq/fe-secure.c:259: undefined reference to `_SSL_set_ex_data'
/usr/lib/libpq.a(chklocale.o): In function `pg_get_encoding_from_locale':
/pub/devel/postgresql/postgresql-9.2.4-1/build/src/interfaces/libpq/chklocale.c:               269: undefined reference to `_libintl_setlocale'
/pub/devel/postgresql/postgresql-9.2.4-1/build/src/interfaces/libpq/chklocale.c:               277: undefined reference to `_libintl_setlocale'
/pub/devel/postgresql/postgresql-9.2.4-1/build/src/interfaces/libpq/chklocale.c:               292: undefined reference to `_libintl_setlocale'
/pub/devel/postgresql/postgresql-9.2.4-1/build/src/interfaces/libpq/chklocale.c:               298: undefined reference to `_libintl_setlocale'
/pub/devel/postgresql/postgresql-9.2.4-1/build/src/interfaces/libpq/chklocale.c:               351: undefined reference to `_libintl_gettext'
collect2: ld returned 1 exit status
Makefile:51: recipe for target `hydra' failed
make: *** [hydra] Error 1

我不确定它有什么问题..我尝试使用所有软件包(在大量下载时间之后)以及默认软件包重新安装 Cygwin,但它都不起作用..任何帮助表示赞赏..

4

2 回答 2

0

我刚刚在 Cygwin 上尝试了 Hydra 7.6。它禁用 PostgreSQL 的使用,configure 说:

Checking for Postgres (libpq.so, libpq-fe.h) ...
                                         ... DISABLED - postgres is buggy in Cygwin at the moment

我想这就是你的问题的答案。是马车。

于 2014-05-06T18:23:26.840 回答
0

好吧,这个网站上似乎没有任何人有相关经验。我对这个网站的工作方式有点失望。如果我问简单的问题,那么人们会投反对票,如果我问一些严肃的问题,那么我什至不会收到任何评论。

无论如何,我仍然不确定“Hydra-7.4.2”有什么问题,请注意我已经安装了完整的 cygwin 包并且在编译 hydra 时仍然出现“make”错误。

为了测试,我安装并编译了“Hydra-6.1”......幸运的是它成功了!因此,如果有人遇到相同的错误,请尝试移至以前的版本,或者如果您解决了这个问题,请分享详细信息。

于 2013-04-28T18:16:52.503 回答