nmap / ncrack

Ncrack network authentication tool
Other
1.07k stars 235 forks source link

meet problem when make on CentOS 7.4 #87

Open Tiny66 opened 4 years ago

Tiny66 commented 4 years ago

meet problem when make on CentOS 7.4

openssl-devel-1.0.2k-19.el7.x86_64 already 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_webform.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-master/opensshlib/kexdhc.c:80: undefined reference toDH_get0_key' opensshlib/libopenssh.a(kexdhc.o): In function ncrackssh_input_kex_dh': kexdhc.c:(.text+0x37c): undefined reference toDH_get0_key' opensshlib/libopenssh.a(kexgexc.o): In function ncrackssh_input_kex_dh_gex_group': /root/ncrack-master/opensshlib/kexgexc.c:129: undefined reference toDH_get0_key' opensshlib/libopenssh.a(kexgexc.o): In function ncrackssh_input_kex_dh_gex_reply': kexgexc.c:(.text+0x53b): undefined reference toDH_get0_key' kexgexc.c:(.text+0x55b): undefined reference to DH_get0_pqg' opensshlib/libopenssh.a(digest-openssl.o): In functionssh_digest_free': /root/ncrack-master/opensshlib/digest-openssl.c:179: undefined reference to EVP_MD_CTX_free' opensshlib/libopenssh.a(digest-openssl.o): In functionssh_digest_start': digest-openssl.c:(.text+0x2cb): undefined reference to EVP_MD_CTX_new' opensshlib/libopenssh.a(sshkey.o): In functionto_blob_buf': /root/ncrack-master/opensshlib/sshkey.c:791: undefined reference to DSA_get0_pqg' opensshlib/libopenssh.a(sshkey.o): In functionto_blob_buf': sshkey.c:(.text+0x20e): undefined reference to DSA_get0_key' sshkey.c:(.text+0x2a4): undefined reference toRSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In function sshkey_size': sshkey.c:(.text+0xaec): undefined reference toDSA_get0_key' sshkey.c:(.text+0xb2e): undefined reference to RSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In functionsshkey_add_private': sshkey.c:(.text+0xd6e): undefined reference to RSA_set0_key' sshkey.c:(.text+0xd94): undefined reference toRSA_set0_factors' sshkey.c:(.text+0xdc1): undefined reference to RSA_set0_crt_params' sshkey.c:(.text+0xde9): undefined reference toDSA_set0_key' opensshlib/libopenssh.a(sshkey.o): In function sshkey_new': sshkey.c:(.text+0x117e): undefined reference toRSA_set0_key' sshkey.c:(.text+0x1270): undefined reference to DSA_set0_pqg' sshkey.c:(.text+0x1283): undefined reference toDSA_set0_key' opensshlib/libopenssh.a(sshkey.o): In function sshkey_equal_public': sshkey.c:(.text+0x14c6): undefined reference toDSA_get0_pqg' sshkey.c:(.text+0x14e0): undefined reference to DSA_get0_pqg' sshkey.c:(.text+0x14f2): undefined reference toDSA_get0_key' sshkey.c:(.text+0x1504): undefined reference to DSA_get0_key' sshkey.c:(.text+0x1593): undefined reference toRSA_get0_key' sshkey.c:(.text+0x15aa): undefined reference to RSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In functionsshkey_fingerprint_raw': sshkey.c:(.text+0x1883): undefined reference to RSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In functionsshkey_from_private': sshkey.c:(.text+0x2863): undefined reference to DSA_get0_pqg' sshkey.c:(.text+0x2875): undefined reference toDSA_get0_key' sshkey.c:(.text+0x288f): undefined reference to DSA_set0_pqg' sshkey.c:(.text+0x28a5): undefined reference toDSA_set0_key' sshkey.c:(.text+0x295c): undefined reference to RSA_get0_key' sshkey.c:(.text+0x2973): undefined reference toRSA_set0_key' opensshlib/libopenssh.a(sshkey.o): In function sshkey_demote': sshkey.c:(.text+0x2e55): undefined reference toRSA_get0_key' sshkey.c:(.text+0x2e8d): undefined reference to RSA_set0_key' sshkey.c:(.text+0x2ee8): undefined reference toDSA_get0_pqg' sshkey.c:(.text+0x2efa): undefined reference to DSA_get0_key' sshkey.c:(.text+0x2f40): undefined reference toDSA_set0_pqg' sshkey.c:(.text+0x2f62): undefined reference to DSA_set0_key' opensshlib/libopenssh.a(sshkey.o): In functionsshkey_certify': sshkey.c:(.text+0x357a): undefined reference to RSA_get0_key' sshkey.c:(.text+0x35d5): undefined reference toDSA_get0_pqg' sshkey.c:(.text+0x35e8): undefined reference to DSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In functionsshkey_private_serialize': sshkey.c:(.text+0x38da): undefined reference to RSA_get0_key' sshkey.c:(.text+0x38ef): undefined reference toRSA_get0_factors' sshkey.c:(.text+0x3903): undefined reference to RSA_get0_crt_params' sshkey.c:(.text+0x399e): undefined reference toDSA_get0_pqg' sshkey.c:(.text+0x39b3): undefined reference to DSA_get0_key' sshkey.c:(.text+0x3a99): undefined reference toDSA_get0_key' sshkey.c:(.text+0x3b0d): undefined reference to RSA_get0_key' sshkey.c:(.text+0x3b22): undefined reference toRSA_get0_factors' sshkey.c:(.text+0x3b36): undefined reference to RSA_get0_crt_params' opensshlib/libopenssh.a(sshkey.o): In functionsshkey_from_blob_internal': sshkey.c:(.text+0x4014): undefined reference to RSA_set0_key' sshkey.c:(.text+0x409d): undefined reference toDSA_get0_pqg' sshkey.c:(.text+0x40af): undefined reference to DSA_get0_key' sshkey.c:(.text+0x4119): undefined reference toDSA_set0_pqg' sshkey.c:(.text+0x4133): undefined reference to DSA_set0_key' opensshlib/libopenssh.a(sshkey.o): In functionsshkey_private_deserialize': sshkey.c:(.text+0x4b6f): undefined reference to RSA_set0_key' sshkey.c:(.text+0x4cdc): undefined reference toDSA_set0_key' sshkey.c:(.text+0x4e29): undefined reference to DSA_set0_pqg' sshkey.c:(.text+0x4e4b): undefined reference toDSA_set0_key' sshkey.c:(.text+0x514e): undefined reference to RSA_set0_key' sshkey.c:(.text+0x516e): undefined reference toRSA_set0_factors' sshkey.c:(.text+0x518d): undefined reference to RSA_set0_crt_params' sshkey.c:(.text+0x51b4): undefined reference toRSA_set0_factors' opensshlib/libopenssh.a(ssh-ecdsa.o): In function ssh_ecdsa_sign': /root/ncrack-master/opensshlib/ssh-ecdsa.c:84: undefined reference toECDSA_SIG_get0' opensshlib/libopenssh.a(ssh-ecdsa.o): In function ssh_ecdsa_verify': /root/ncrack-master/opensshlib/ssh-ecdsa.c:163: undefined reference toECDSA_SIG_set0' opensshlib/libopenssh.a(cipher.o): In function cipher_get_keyiv': /root/ncrack-master/opensshlib/cipher.c:571: undefined reference toEVP_CIPHER_CTX_iv' opensshlib/libopenssh.a(cipher.o): In function cipher_set_keyiv': cipher.c:(.text+0xb43): undefined reference toEVP_CIPHER_CTX_iv_noconst' opensshlib/libopenssh.a(cipher.o): In function cipher_get_keycontext': cipher.c:(.text+0xbba): undefined reference toEVP_CIPHER_impl_ctx_size' cipher.c:(.text+0xbcc): undefined reference to EVP_CIPHER_CTX_get_cipher_data' opensshlib/libopenssh.a(cipher.o): In functioncipher_set_keycontext': cipher.c:(.text+0xc1c): undefined reference to EVP_CIPHER_impl_ctx_size' cipher.c:(.text+0xc29): undefined reference toEVP_CIPHER_CTX_get_cipher_data' opensshlib/libopenssh.a(rsa.o): In function rsa_public_encrypt': /root/ncrack-master/opensshlib/rsa.c:81: undefined reference toRSA_get0_key' opensshlib/libopenssh.a(rsa.o): In function rsa_private_decrypt': rsa.c:(.text+0x1fc): undefined reference toRSA_get0_key' opensshlib/libopenssh.a(rsa.o): In function rsa_generate_additional_parameters': /root/ncrack-master/opensshlib/rsa.c:176: undefined reference toRSA_get0_key' /root/ncrack-master/opensshlib/rsa.c:177: undefined reference to RSA_get0_factors' /root/ncrack-master/opensshlib/rsa.c:178: undefined reference toRSA_get0_crt_params' opensshlib/libopenssh.a(ssh-dss.o): In function ssh_dss_sign': /root/ncrack-master/opensshlib/ssh-dss.c:81: undefined reference toDSA_SIG_get0' opensshlib/libopenssh.a(ssh-dss.o): In function ssh_dss_verify': ssh-dss.c:(.text+0x4dd): undefined reference toDSA_SIG_get0' opensshlib/libopenssh.a(ssh-rsa.o): In function ssh_rsa_verify': /root/ncrack-master/opensshlib/ssh-rsa.c:135: undefined reference toRSA_get0_key' opensshlib/libopenssh.a(dh.o): In function dh_pub_is_valid': /root/ncrack-master/opensshlib/dh.c:240: undefined reference toDH_get0_pqg' opensshlib/libopenssh.a(dh.o): In function dh_gen_key': dh.c:(.text+0x677): undefined reference toDH_get0_pqg' dh.c:(.text+0x6de): undefined reference to DH_set_length' dh.c:(.text+0x6f9): undefined reference toDH_get0_key' opensshlib/libopenssh.a(dh.o): In function dh_new_group_asc': dh.c:(.text+0x797): undefined reference toDH_get0_pqg' opensshlib/libopenssh.a(dh.o): In function dh_new_group': dh.c:(.text+0x825): undefined reference toDH_set0_pqg' collect2: error: ld returned 1 exit status make[1]: [ncrack] Error 1 make[1]: Leaving directory `/root/ncrack-master' make: [all] Error 2

ksmokee commented 4 years ago

https://github.com/nmap/ncrack The master branch of this warehouse is 0.8, directly git clone it and compile normally according to the way of ncrack official website ./configure make su root make install

Tiny66 commented 4 years ago

https://github.com/nmap/ncrack The master branch of this warehouse is 0.8, directly git clone it and compile normally according to the way of ncrack official website ./configure make su root make install

额 大佬 我用的就是master的 编译不过。