heartleech icon indicating copy to clipboard operation
heartleech copied to clipboard

build fails on kali kernel 5.5.0-kali2-amd64

Open santosadrian opened this issue 4 years ago • 0 comments

kali@kali:~/openssl$ gcc ../heartleech/heartleech.c libssl.a libcrypto.a -ldl -lpthread -o heartleech -I./include ../heartleech/heartleech.c:111:2: error: #error You are using the wrong version of OpenSSL headers. 111 | #error You are using the wrong version of OpenSSL headers. | ^~~~~ ../heartleech/heartleech.c:263:12: error: field ‘n’ has incomplete type 263 | BIGNUM n; | ^ ../heartleech/heartleech.c:264:12: error: field ‘e’ has incomplete type 264 | BIGNUM e; | ^ ../heartleech/heartleech.c: In function ‘receive_heartbeat’: ../heartleech/heartleech.c:562:10: error: ‘TLS1_RT_HEARTBEAT’ undeclared (first use in this function) 562 | case TLS1_RT_HEARTBEAT: | ^~~~~~~~~~~~~~~~~ ../heartleech/heartleech.c:562:10: note: each undeclared identifier is reported only once for each function it appears in ../heartleech/heartleech.c: In function ‘rsa_gen’: ../heartleech/heartleech.c:762:12: error: array type has incomplete element type ‘BIGNUM’ {aka ‘struct bignum_st’} 762 | BIGNUM p1[1], q1[1], r[1]; | ^~ ../heartleech/heartleech.c:762:19: error: array type has incomplete element type ‘BIGNUM’ {aka ‘struct bignum_st’} 762 | BIGNUM p1[1], q1[1], r[1]; | ^~ ../heartleech/heartleech.c:762:26: error: array type has incomplete element type ‘BIGNUM’ {aka ‘struct bignum_st’} 762 | BIGNUM p1[1], q1[1], r[1]; | ^ ../heartleech/heartleech.c:764:5: warning: implicit declaration of function ‘BN_init’ [-Wimplicit-function-declaration] 764 | BN_init(p1); | ^~~~~~~ ../heartleech/heartleech.c:768:8: error: dereferencing pointer to incomplete type ‘RSA’ {aka ‘struct rsa_st’} 768 | rsa->p = BN_new(); | ^~ ../heartleech/heartleech.c: At top level: ../heartleech/heartleech.c:819:31: error: parameter 1 (‘n’) has incomplete type 819 | find_private_key(const BIGNUM n, const BIGNUM e, | ~~~~~~~~~~~~~^ ../heartleech/heartleech.c:819:47: error: parameter 2 (‘e’) has incomplete type 819 | find_private_key(const BIGNUM n, const BIGNUM e, | ~~~~~~~~~~~~~^ ../heartleech/heartleech.c: In function ‘find_private_key’: ../heartleech/heartleech.c:825:12: error: storage size of ‘p’ isn’t known 825 | BIGNUM p; | ^ ../heartleech/heartleech.c:826:12: error: storage size of ‘q’ isn’t known 826 | BIGNUM q; | ^ ../heartleech/heartleech.c:827:12: error: storage size of ‘remainder’ isn’t known 827 | BIGNUM remainder; | ^~~~~~~~~ ../heartleech/heartleech.c: At top level: ../heartleech/heartleech.c:906:22: error: parameter 4 (‘n’) has incomplete type 906 | BIGNUM n, BIGNUM e) | ~~~~~~~^ ../heartleech/heartleech.c:906:32: error: parameter 5 (‘e’) has incomplete type 906 | BIGNUM n, BIGNUM e) | ~~~~~~~^ ../heartleech/heartleech.c: In function ‘parse_cert’: ../heartleech/heartleech.c:973:25: error: dereferencing pointer to incomplete type ‘EVP_PKEY’ {aka ‘struct evp_pkey_st’} 973 | if (rsakey && rsakey->type == 6) { | ^~ ../heartleech/heartleech.c:975:35: error: dereferencing pointer to incomplete type ‘BIGNUM’ {aka ‘struct bignum_st’} 975 | memcpy(modulus, n, sizeof(*modulus)); | ^~~~~~~~ ../heartleech/heartleech.c: In function ‘ssl_thread’: ../heartleech/heartleech.c:2057:12: error: dereferencing pointer to incomplete type ‘SSL’ {aka ‘struct ssl_st’} 2057 | if (ssl->tlsext_heartbeat != 1) { | ^~ ../heartleech/heartleech.c:2154:31: error: ‘TLS1_RT_HEARTBEAT’ undeclared (first use in this function) 2154 | ssl3_write_bytes(ssl, TLS1_RT_HEARTBEAT, | ^~~~~~~~~~~~~~~~~ ../heartleech/heartleech.c: In function ‘process_offline_file’: ../heartleech/heartleech.c:2344:12: error: storage size of ‘n’ isn’t known 2344 | BIGNUM n; | ^ ../heartleech/heartleech.c:2345:12: error: storage size of ‘e’ isn’t known 2345 | BIGNUM e; | ^ ../heartleech/heartleech.c: In function ‘main’: ../heartleech/heartleech.c:3142:5: warning: implicit declaration of function ‘CRYPTO_malloc_init’; did you mean ‘CRYPTO_malloc’? [-Wimplicit-function-declaration] 3142 | CRYPTO_malloc_init(); | ^~~~~~~~~~~~~~~~~~ | CRYPTO_malloc

santosadrian avatar May 13 '20 04:05 santosadrian