Open Tiny66 opened 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
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的 编译不过。
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 to
DH_get0_key' opensshlib/libopenssh.a(kexdhc.o): In functionncrackssh_input_kex_dh': kexdhc.c:(.text+0x37c): undefined reference to
DH_get0_key' opensshlib/libopenssh.a(kexgexc.o): In functionncrackssh_input_kex_dh_gex_group': /root/ncrack-master/opensshlib/kexgexc.c:129: undefined reference to
DH_get0_key' opensshlib/libopenssh.a(kexgexc.o): In functionncrackssh_input_kex_dh_gex_reply': kexgexc.c:(.text+0x53b): undefined reference to
DH_get0_key' kexgexc.c:(.text+0x55b): undefined reference toDH_get0_pqg' opensshlib/libopenssh.a(digest-openssl.o): In function
ssh_digest_free': /root/ncrack-master/opensshlib/digest-openssl.c:179: undefined reference toEVP_MD_CTX_free' opensshlib/libopenssh.a(digest-openssl.o): In function
ssh_digest_start': digest-openssl.c:(.text+0x2cb): undefined reference toEVP_MD_CTX_new' opensshlib/libopenssh.a(sshkey.o): In function
to_blob_buf': /root/ncrack-master/opensshlib/sshkey.c:791: undefined reference toDSA_get0_pqg' opensshlib/libopenssh.a(sshkey.o): In function
to_blob_buf': sshkey.c:(.text+0x20e): undefined reference toDSA_get0_key' sshkey.c:(.text+0x2a4): undefined reference to
RSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In functionsshkey_size': sshkey.c:(.text+0xaec): undefined reference to
DSA_get0_key' sshkey.c:(.text+0xb2e): undefined reference toRSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In function
sshkey_add_private': sshkey.c:(.text+0xd6e): undefined reference toRSA_set0_key' sshkey.c:(.text+0xd94): undefined reference to
RSA_set0_factors' sshkey.c:(.text+0xdc1): undefined reference toRSA_set0_crt_params' sshkey.c:(.text+0xde9): undefined reference to
DSA_set0_key' opensshlib/libopenssh.a(sshkey.o): In functionsshkey_new': sshkey.c:(.text+0x117e): undefined reference to
RSA_set0_key' sshkey.c:(.text+0x1270): undefined reference toDSA_set0_pqg' sshkey.c:(.text+0x1283): undefined reference to
DSA_set0_key' opensshlib/libopenssh.a(sshkey.o): In functionsshkey_equal_public': sshkey.c:(.text+0x14c6): undefined reference to
DSA_get0_pqg' sshkey.c:(.text+0x14e0): undefined reference toDSA_get0_pqg' sshkey.c:(.text+0x14f2): undefined reference to
DSA_get0_key' sshkey.c:(.text+0x1504): undefined reference toDSA_get0_key' sshkey.c:(.text+0x1593): undefined reference to
RSA_get0_key' sshkey.c:(.text+0x15aa): undefined reference toRSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In function
sshkey_fingerprint_raw': sshkey.c:(.text+0x1883): undefined reference toRSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In function
sshkey_from_private': sshkey.c:(.text+0x2863): undefined reference toDSA_get0_pqg' sshkey.c:(.text+0x2875): undefined reference to
DSA_get0_key' sshkey.c:(.text+0x288f): undefined reference toDSA_set0_pqg' sshkey.c:(.text+0x28a5): undefined reference to
DSA_set0_key' sshkey.c:(.text+0x295c): undefined reference toRSA_get0_key' sshkey.c:(.text+0x2973): undefined reference to
RSA_set0_key' opensshlib/libopenssh.a(sshkey.o): In functionsshkey_demote': sshkey.c:(.text+0x2e55): undefined reference to
RSA_get0_key' sshkey.c:(.text+0x2e8d): undefined reference toRSA_set0_key' sshkey.c:(.text+0x2ee8): undefined reference to
DSA_get0_pqg' sshkey.c:(.text+0x2efa): undefined reference toDSA_get0_key' sshkey.c:(.text+0x2f40): undefined reference to
DSA_set0_pqg' sshkey.c:(.text+0x2f62): undefined reference toDSA_set0_key' opensshlib/libopenssh.a(sshkey.o): In function
sshkey_certify': sshkey.c:(.text+0x357a): undefined reference toRSA_get0_key' sshkey.c:(.text+0x35d5): undefined reference to
DSA_get0_pqg' sshkey.c:(.text+0x35e8): undefined reference toDSA_get0_key' opensshlib/libopenssh.a(sshkey.o): In function
sshkey_private_serialize': sshkey.c:(.text+0x38da): undefined reference toRSA_get0_key' sshkey.c:(.text+0x38ef): undefined reference to
RSA_get0_factors' sshkey.c:(.text+0x3903): undefined reference toRSA_get0_crt_params' sshkey.c:(.text+0x399e): undefined reference to
DSA_get0_pqg' sshkey.c:(.text+0x39b3): undefined reference toDSA_get0_key' sshkey.c:(.text+0x3a99): undefined reference to
DSA_get0_key' sshkey.c:(.text+0x3b0d): undefined reference toRSA_get0_key' sshkey.c:(.text+0x3b22): undefined reference to
RSA_get0_factors' sshkey.c:(.text+0x3b36): undefined reference toRSA_get0_crt_params' opensshlib/libopenssh.a(sshkey.o): In function
sshkey_from_blob_internal': sshkey.c:(.text+0x4014): undefined reference toRSA_set0_key' sshkey.c:(.text+0x409d): undefined reference to
DSA_get0_pqg' sshkey.c:(.text+0x40af): undefined reference toDSA_get0_key' sshkey.c:(.text+0x4119): undefined reference to
DSA_set0_pqg' sshkey.c:(.text+0x4133): undefined reference toDSA_set0_key' opensshlib/libopenssh.a(sshkey.o): In function
sshkey_private_deserialize': sshkey.c:(.text+0x4b6f): undefined reference toRSA_set0_key' sshkey.c:(.text+0x4cdc): undefined reference to
DSA_set0_key' sshkey.c:(.text+0x4e29): undefined reference toDSA_set0_pqg' sshkey.c:(.text+0x4e4b): undefined reference to
DSA_set0_key' sshkey.c:(.text+0x514e): undefined reference toRSA_set0_key' sshkey.c:(.text+0x516e): undefined reference to
RSA_set0_factors' sshkey.c:(.text+0x518d): undefined reference toRSA_set0_crt_params' sshkey.c:(.text+0x51b4): undefined reference to
RSA_set0_factors' opensshlib/libopenssh.a(ssh-ecdsa.o): In functionssh_ecdsa_sign': /root/ncrack-master/opensshlib/ssh-ecdsa.c:84: undefined reference to
ECDSA_SIG_get0' opensshlib/libopenssh.a(ssh-ecdsa.o): In functionssh_ecdsa_verify': /root/ncrack-master/opensshlib/ssh-ecdsa.c:163: undefined reference to
ECDSA_SIG_set0' opensshlib/libopenssh.a(cipher.o): In functioncipher_get_keyiv': /root/ncrack-master/opensshlib/cipher.c:571: undefined reference to
EVP_CIPHER_CTX_iv' opensshlib/libopenssh.a(cipher.o): In functioncipher_set_keyiv': cipher.c:(.text+0xb43): undefined reference to
EVP_CIPHER_CTX_iv_noconst' opensshlib/libopenssh.a(cipher.o): In functioncipher_get_keycontext': cipher.c:(.text+0xbba): undefined reference to
EVP_CIPHER_impl_ctx_size' cipher.c:(.text+0xbcc): undefined reference toEVP_CIPHER_CTX_get_cipher_data' opensshlib/libopenssh.a(cipher.o): In function
cipher_set_keycontext': cipher.c:(.text+0xc1c): undefined reference toEVP_CIPHER_impl_ctx_size' cipher.c:(.text+0xc29): undefined reference to
EVP_CIPHER_CTX_get_cipher_data' opensshlib/libopenssh.a(rsa.o): In functionrsa_public_encrypt': /root/ncrack-master/opensshlib/rsa.c:81: undefined reference to
RSA_get0_key' opensshlib/libopenssh.a(rsa.o): In functionrsa_private_decrypt': rsa.c:(.text+0x1fc): undefined reference to
RSA_get0_key' opensshlib/libopenssh.a(rsa.o): In functionrsa_generate_additional_parameters': /root/ncrack-master/opensshlib/rsa.c:176: undefined reference to
RSA_get0_key' /root/ncrack-master/opensshlib/rsa.c:177: undefined reference toRSA_get0_factors' /root/ncrack-master/opensshlib/rsa.c:178: undefined reference to
RSA_get0_crt_params' opensshlib/libopenssh.a(ssh-dss.o): In functionssh_dss_sign': /root/ncrack-master/opensshlib/ssh-dss.c:81: undefined reference to
DSA_SIG_get0' opensshlib/libopenssh.a(ssh-dss.o): In functionssh_dss_verify': ssh-dss.c:(.text+0x4dd): undefined reference to
DSA_SIG_get0' opensshlib/libopenssh.a(ssh-rsa.o): In functionssh_rsa_verify': /root/ncrack-master/opensshlib/ssh-rsa.c:135: undefined reference to
RSA_get0_key' opensshlib/libopenssh.a(dh.o): In functiondh_pub_is_valid': /root/ncrack-master/opensshlib/dh.c:240: undefined reference to
DH_get0_pqg' opensshlib/libopenssh.a(dh.o): In functiondh_gen_key': dh.c:(.text+0x677): undefined reference to
DH_get0_pqg' dh.c:(.text+0x6de): undefined reference toDH_set_length' dh.c:(.text+0x6f9): undefined reference to
DH_get0_key' opensshlib/libopenssh.a(dh.o): In functiondh_new_group_asc': dh.c:(.text+0x797): undefined reference to
DH_get0_pqg' opensshlib/libopenssh.a(dh.o): In functiondh_new_group': dh.c:(.text+0x825): undefined reference to
DH_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