meet problem when make on CentOS 7.8

Aperta
#86 20 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c, linux
Ambito
build-system

Direzione di ricerca

Start by checking the build and OpenSSL configuration for the Ncrack 0.7 source archive on CentOS 7.8, especially the opensshlib build and final link command. Reproduce the link failure and identify the OpenSSL library and API versions involved; done means the project builds successfully on this environment or documents the required dependency setup.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

CentOS Linux release 7.8.2003
https://nmap.org/ncrack/dist/ncrack-0.7.tar.gz
openssl-devel-1.0.2k-19.el7.x86_64 already

Just download ncrack 0.7, OS is CentOS 7.8 x64. When did the make, met following problem:

Compiling libnbase
cd nbase && make
make[1]: Entering directory /root/ncrack-0.7/nbase' make[1]: Nothing to be done for all'.
make[1]: Leaving directory /root/ncrack-0.7/nbase' Compiling libnsock cd nsock/src && make make[1]: Entering directory /root/ncrack-0.7/nsock/src'
make[1]: Nothing to be done for all'. make[1]: Leaving directory /root/ncrack-0.7/nsock/src'
Compiling openssh lib
cd opensshlib && make
make[1]: Entering directory /root/ncrack-0.7/opensshlib' make[1]: Nothing to be done for all'.
make[1]: Leaving directory /root/ncrack-0.7/opensshlib' Compiling modules cd modules && make make[1]: Entering directory /root/ncrack-0.7/modules'
make[1]: Nothing to be done for all'. make[1]: Leaving directory /root/ncrack-0.7/modules'
make ncrack
make[1]: Entering directory /root/ncrack-0.7' Compiling Ncrack... rm -f ncrack g++ -Lnbase -Lnsock/src -Lopensshlib -o ncrack ncrack.o utils.o TargetGroup.o Target.o targets.o NcrackOps.o Service.o ServiceGroup.o Connection.o services.o timing.o ncrack_error.o output.o ncrack_tty.o Buf.o NcrackOutputTable.o ncrack_input.o ncrack_resume.o crypto.o http.o http_digest.o xml.o ntlmssp.o modules/ncrack_ssh.o modules/ncrack_smb.o modules/ncrack_smb2.o modules/ncrack_rdp.o modules/ncrack_sip.o modules/ncrack_psql.o modules/ncrack_mysql.o modules/ncrack_winrm.o modules/ncrack_mongodb.o modules/ncrack_ftp.o modules/ncrack_telnet.o modules/ncrack_http.o modules/ncrack_pop3.o modules/ncrack_vnc.o modules/ncrack_redis.o modules/ncrack_owa.o modules/ncrack_imap.o modules/ncrack_cassandra.o modules/ncrack_mssql.o modules/ncrack_cvs.o modules/ncrack_wordpress.o modules/ncrack_joomla.o modules/ncrack_dicom.o modules/ncrack_mqtt.o -lnsock -lnbase -lssl -lcrypto -lopenssh opensshlib/libopenssh.a(kexdhc.o): In function kexdh_client':
/root/ncrack-0.7/opensshlib/kexdhc.c:80: undefined reference to DH_get0_key' opensshlib/libopenssh.a(kexdhc.o): In function ncrackssh_input_kex_dh':
/root/ncrack-0.7/opensshlib/kexdhc.c:169: undefined reference to DH_get0_key' opensshlib/libopenssh.a(kexgexc.o): In function ncrackssh_input_kex_dh_gex_group':
/root/ncrack-0.7/opensshlib/kexgexc.c:129: undefined reference to DH_get0_key' opensshlib/libopenssh.a(kexgexc.o): In function ncrackssh_input_kex_dh_gex_reply':
/root/ncrack-0.7/opensshlib/kexgexc.c:232: undefined reference to DH_get0_key' /root/ncrack-0.7/opensshlib/kexgexc.c:233: undefined reference to DH_get0_pqg'
opensshlib/libopenssh.a(digest-openssl.o): In function ssh_digest_free': /root/ncrack-0.7/opensshlib/digest-openssl.c:179: undefined reference to EVP_MD_CTX_free'
opensshlib/libopenssh.a(digest-openssl.o): In function ssh_digest_start': /root/ncrack-0.7/opensshlib/digest-openssl.c:121: undefined reference to EVP_MD_CTX_new'
opensshlib/libopenssh.a(sshkey.o): In function to_blob_buf': /root/ncrack-0.7/opensshlib/sshkey.c:791: undefined reference to DSA_get0_pqg'
/root/ncrack-0.7/opensshlib/sshkey.c:792: undefined reference to DSA_get0_key' /root/ncrack-0.7/opensshlib/sshkey.c:816: undefined reference to RSA_get0_key'
opensshlib/libopenssh.a(sshkey.o): In function sshkey_size': /root/ncrack-0.7/opensshlib/sshkey.c:290: undefined reference to DSA_get0_key'
/root/ncrack-0.7/opensshlib/sshkey.c:286: undefined reference to RSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In function sshkey_add_private':
/root/ncrack-0.7/opensshlib/sshkey.c:561: undefined reference to RSA_set0_key' /root/ncrack-0.7/opensshlib/sshkey.c:562: undefined reference to RSA_set0_factors'
/root/ncrack-0.7/opensshlib/sshkey.c:563: undefined reference to RSA_set0_crt_params' /root/ncrack-0.7/opensshlib/sshkey.c:568: undefined reference to DSA_set0_key'
opensshlib/libopenssh.a(sshkey.o): In function sshkey_new': /root/ncrack-0.7/opensshlib/sshkey.c:502: undefined reference to RSA_set0_key'
/root/ncrack-0.7/opensshlib/sshkey.c:517: undefined reference to DSA_set0_pqg' /root/ncrack-0.7/opensshlib/sshkey.c:518: undefined reference to DSA_set0_key'
opensshlib/libopenssh.a(sshkey.o): In function sshkey_equal_public': /root/ncrack-0.7/opensshlib/sshkey.c:703: undefined reference to DSA_get0_pqg'
/root/ncrack-0.7/opensshlib/sshkey.c:704: undefined reference to DSA_get0_pqg' /root/ncrack-0.7/opensshlib/sshkey.c:705: undefined reference to DSA_get0_key'
/root/ncrack-0.7/opensshlib/sshkey.c:706: undefined reference to DSA_get0_key' /root/ncrack-0.7/opensshlib/sshkey.c:696: undefined reference to RSA_get0_key'
/root/ncrack-0.7/opensshlib/sshkey.c:697: undefined reference to RSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In function sshkey_fingerprint_raw':
/root/ncrack-0.7/opensshlib/sshkey.c:929: undefined reference to RSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In function sshkey_from_private':
/root/ncrack-0.7/opensshlib/sshkey.c:1826: undefined reference to DSA_get0_pqg' /root/ncrack-0.7/opensshlib/sshkey.c:1827: undefined reference to DSA_get0_key'
/root/ncrack-0.7/opensshlib/sshkey.c:1828: undefined reference to DSA_set0_pqg' /root/ncrack-0.7/opensshlib/sshkey.c:1829: undefined reference to DSA_set0_key'
/root/ncrack-0.7/opensshlib/sshkey.c:1857: undefined reference to RSA_get0_key' /root/ncrack-0.7/opensshlib/sshkey.c:1858: undefined reference to RSA_set0_key'
opensshlib/libopenssh.a(sshkey.o): In function sshkey_demote': /root/ncrack-0.7/opensshlib/sshkey.c:2339: undefined reference to RSA_get0_key'
/root/ncrack-0.7/opensshlib/sshkey.c:2341: undefined reference to RSA_set0_key' /root/ncrack-0.7/opensshlib/sshkey.c:2351: undefined reference to DSA_get0_pqg'
/root/ncrack-0.7/opensshlib/sshkey.c:2352: undefined reference to DSA_get0_key' /root/ncrack-0.7/opensshlib/sshkey.c:2354: undefined reference to DSA_set0_pqg'
/root/ncrack-0.7/opensshlib/sshkey.c:2355: undefined reference to DSA_set0_key' opensshlib/libopenssh.a(sshkey.o): In function sshkey_certify':
/root/ncrack-0.7/opensshlib/sshkey.c:2501: undefined reference to RSA_get0_key' /root/ncrack-0.7/opensshlib/sshkey.c:2482: undefined reference to DSA_get0_pqg'
/root/ncrack-0.7/opensshlib/sshkey.c:2483: undefined reference to DSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In function sshkey_private_serialize':
/root/ncrack-0.7/opensshlib/sshkey.c:2632: undefined reference to RSA_get0_key' /root/ncrack-0.7/opensshlib/sshkey.c:2633: undefined reference to RSA_get0_factors'
/root/ncrack-0.7/opensshlib/sshkey.c:2634: undefined reference to RSA_get0_crt_params' /root/ncrack-0.7/opensshlib/sshkey.c:2659: undefined reference to DSA_get0_pqg'
/root/ncrack-0.7/opensshlib/sshkey.c:2660: undefined reference to DSA_get0_key' /root/ncrack-0.7/opensshlib/sshkey.c:2669: undefined reference to DSA_get0_key'
/root/ncrack-0.7/opensshlib/sshkey.c:2648: undefined reference to RSA_get0_key' /root/ncrack-0.7/opensshlib/sshkey.c:2649: undefined reference to RSA_get0_factors'
/root/ncrack-0.7/opensshlib/sshkey.c:2650: undefined reference to RSA_get0_crt_params' opensshlib/libopenssh.a(sshkey.o): In function sshkey_from_blob_internal':
/root/ncrack-0.7/opensshlib/sshkey.c:2065: undefined reference to RSA_set0_key' /root/ncrack-0.7/opensshlib/sshkey.c:2085: undefined reference to DSA_get0_pqg'
/root/ncrack-0.7/opensshlib/sshkey.c:2086: undefined reference to DSA_get0_key' /root/ncrack-0.7/opensshlib/sshkey.c:2091: undefined reference to DSA_set0_pqg'
/root/ncrack-0.7/opensshlib/sshkey.c:2092: undefined reference to DSA_set0_key' opensshlib/libopenssh.a(sshkey.o): In function sshkey_private_deserialize':
/root/ncrack-0.7/opensshlib/sshkey.c:2846: undefined reference to RSA_set0_key' /root/ncrack-0.7/opensshlib/sshkey.c:2773: undefined reference to DSA_set0_key'
/root/ncrack-0.7/opensshlib/sshkey.c:2764: undefined reference to DSA_set0_pqg' /root/ncrack-0.7/opensshlib/sshkey.c:2765: undefined reference to DSA_set0_key'
/root/ncrack-0.7/opensshlib/sshkey.c:2863: undefined reference to RSA_set0_key' /root/ncrack-0.7/opensshlib/sshkey.c:2864: undefined reference to RSA_set0_factors'
/root/ncrack-0.7/opensshlib/sshkey.c:2865: undefined reference to RSA_set0_crt_params' /root/ncrack-0.7/opensshlib/sshkey.c:2847: undefined reference to RSA_set0_factors'
opensshlib/libopenssh.a(ssh-ecdsa.o): In function ssh_ecdsa_sign': /root/ncrack-0.7/opensshlib/ssh-ecdsa.c:84: undefined reference to ECDSA_SIG_get0'
opensshlib/libopenssh.a(ssh-ecdsa.o): In function ssh_ecdsa_verify': /root/ncrack-0.7/opensshlib/ssh-ecdsa.c:163: undefined reference to ECDSA_SIG_set0'
opensshlib/libopenssh.a(cipher.o): In function cipher_get_keyiv': /root/ncrack-0.7/opensshlib/cipher.c:571: undefined reference to EVP_CIPHER_CTX_iv'
opensshlib/libopenssh.a(cipher.o): In function cipher_set_keyiv': /root/ncrack-0.7/opensshlib/cipher.c:614: undefined reference to EVP_CIPHER_CTX_iv_noconst'
opensshlib/libopenssh.a(cipher.o): In function cipher_get_keycontext': /root/ncrack-0.7/opensshlib/cipher.c:641: undefined reference to EVP_CIPHER_impl_ctx_size'
/root/ncrack-0.7/opensshlib/cipher.c:644: undefined reference to EVP_CIPHER_CTX_get_cipher_data' opensshlib/libopenssh.a(cipher.o): In function cipher_set_keycontext':
/root/ncrack-0.7/opensshlib/cipher.c:660: undefined reference to EVP_CIPHER_impl_ctx_size' /root/ncrack-0.7/opensshlib/cipher.c:661: undefined reference to EVP_CIPHER_CTX_get_cipher_data'
opensshlib/libopenssh.a(rsa.o): In function rsa_public_encrypt': /root/ncrack-0.7/opensshlib/rsa.c:81: undefined reference to RSA_get0_key'
opensshlib/libopenssh.a(rsa.o): In function rsa_private_decrypt': /root/ncrack-0.7/opensshlib/rsa.c:130: undefined reference to RSA_get0_key'
opensshlib/libopenssh.a(rsa.o): In function rsa_generate_additional_parameters': /root/ncrack-0.7/opensshlib/rsa.c:176: undefined reference to RSA_get0_key'
/root/ncrack-0.7/opensshlib/rsa.c:177: undefined reference to RSA_get0_factors' /root/ncrack-0.7/opensshlib/rsa.c:178: undefined reference to RSA_get0_crt_params'
opensshlib/libopenssh.a(ssh-dss.o): In function ssh_dss_sign': /root/ncrack-0.7/opensshlib/ssh-dss.c:81: undefined reference to DSA_SIG_get0'
opensshlib/libopenssh.a(ssh-dss.o): In function ssh_dss_verify': /root/ncrack-0.7/opensshlib/ssh-dss.c:188: undefined reference to DSA_SIG_get0'
opensshlib/libopenssh.a(ssh-rsa.o): In function ssh_rsa_verify': /root/ncrack-0.7/opensshlib/ssh-rsa.c:135: undefined reference to RSA_get0_key'
opensshlib/libopenssh.a(dh.o): In function dh_pub_is_valid': /root/ncrack-0.7/opensshlib/dh.c:240: undefined reference to DH_get0_pqg'
opensshlib/libopenssh.a(dh.o): In function dh_gen_key': /root/ncrack-0.7/opensshlib/dh.c:267: undefined reference to DH_get0_pqg'
/root/ncrack-0.7/opensshlib/dh.c:273: undefined reference to DH_set_length' /root/ncrack-0.7/opensshlib/dh.c:275: undefined reference to DH_get0_key'
opensshlib/libopenssh.a(dh.o): In function dh_new_group_asc': /root/ncrack-0.7/opensshlib/dh.c:291: undefined reference to DH_get0_pqg'
opensshlib/libopenssh.a(dh.o): In function dh_new_group': /root/ncrack-0.7/opensshlib/dh.c:312: undefined reference to DH_set0_pqg'
collect2: error: ld returned 1 exit status
make[1]: *** [ncrack] Error 1
make[1]: Leaving directory `/root/ncrack-0.7'

Lingua principale
C
Stelle
1.2k
Fork
274
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nmap/ncrack

Tutte le issue di nmap/ncrack

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.