install mana-toolkit

How can I install the mana toolkit on parrot os


Currently I am using Parrot os 4.11

Yesterday I tried to install the mana toolkit. So I downloaded it with git. After download I executed every step and everything was fine until I executed “sudo make” while compiling it stopped and showed me multiple errors:

"
make -C hostapd-mana/hostapd/
make[1]: Entering directory ‘/home/user/Downloads/mana/hostapd-mana/hostapd’
…/src/crypto/tls_openssl.c: In function ‘tls_init’:
…/src/crypto/tls_openssl.c:812:2: warning: ‘TLSv1_method’ is deprecated [-Wdeprecated-declarations]
812 | ssl = SSL_CTX_new(TLSv1_method());
| ^~~
In file included from /usr/include/openssl/e_os2.h:13,
from /usr/include/openssl/ssl.h:15,
from …/src/crypto/tls_openssl.c:19:
/usr/include/openssl/ssl.h:1877:1: note: declared here
1877 | DEPRECATEDIN_1_1_0(__owur const SSL_METHOD TLSv1_method(void)) / TLSv1.0 */
| ^~~~~~~~~~~~~~~~~~
…/src/crypto/tls_openssl.c: In function ‘tls_deinit’:
…/src/crypto/tls_openssl.c:868:3: warning: ‘ERR_remove_thread_state’ is deprecated [-Wdeprecated-declarations]
868 | ERR_remove_thread_state(NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/e_os2.h:13,
from /usr/include/openssl/ssl.h:15,
from …/src/crypto/tls_openssl.c:19:
/usr/include/openssl/err.h:260:1: note: declared here
260 | DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))
| ^~~~~~~~~~~~~~~~~~
…/src/crypto/tls_openssl.c: In function ‘tls_load_ca_der’:
…/src/crypto/tls_openssl.c:1540:40: error: invalid use of incomplete typedef ‘SSL_CTX’ {aka ‘struct ssl_ctx_st’}
1540 | lookup = X509_STORE_add_lookup(ssl_ctx->cert_store,
| ^~
…/src/crypto/tls_openssl.c: In function ‘tls_connection_ca_cert’:
…/src/crypto/tls_openssl.c:1576:25: error: invalid use of incomplete typedef ‘SSL_CTX’ {aka ‘struct ssl_ctx_st’}
1576 | X509_STORE_free(ssl_ctx->cert_store);
| ^~
…/src/crypto/tls_openssl.c:1577:9: error: invalid use of incomplete typedef ‘SSL_CTX’ {aka ‘struct ssl_ctx_st’}
1577 | ssl_ctx->cert_store = X509_STORE_new();
| ^~
…/src/crypto/tls_openssl.c:1578:13: error: invalid use of incomplete typedef ‘SSL_CTX’ {aka ‘struct ssl_ctx_st’}
1578 | if (ssl_ctx->cert_store == NULL) {
| ^~
…/src/crypto/tls_openssl.c:1634:35: error: invalid use of incomplete typedef ‘SSL_CTX’ {aka ‘struct ssl_ctx_st’}
1634 | if (!X509_STORE_add_cert(ssl_ctx->cert_store, cert)) {
| ^~
…/src/crypto/tls_openssl.c: In function ‘tls_connection_get_keys’:
…/src/crypto/tls_openssl.c:2532:24: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
2532 | if (ssl == NULL || ssl->s3 == NULL || ssl->session == NULL)
| ^~
…/src/crypto/tls_openssl.c:2532:43: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
2532 | if (ssl == NULL || ssl->s3 == NULL || ssl->session == NULL)
| ^~
…/src/crypto/tls_openssl.c:2536:24: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
2536 | keys->master_key = ssl->session->master_key;
| ^~
…/src/crypto/tls_openssl.c:2537:28: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
2537 | keys->master_key_len = ssl->session->master_key_length;
| ^~
…/src/crypto/tls_openssl.c:2538:27: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
2538 | keys->client_random = ssl->s3->client_random;
| ^~
…/src/crypto/tls_openssl.c:2540:27: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
2540 | keys->server_random = ssl->s3->server_random;
| ^~
…/src/crypto/tls_openssl.c: In function ‘tls_connection_resumed’:
…/src/crypto/tls_openssl.c:2818:25: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
2818 | return conn ? conn->ssl->hit : 0;
| ^~
…/src/crypto/tls_openssl.c: In function ‘ocsp_resp_cb’:
…/src/crypto/tls_openssl.c:3065:34: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
3065 | store = SSL_CTX_get_cert_store(s->ctx);
| ^~
…/src/crypto/tls_openssl.c: In function ‘tls_connection_get_keyblock_size’:
…/src/crypto/tls_openssl.c:3367:15: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
3367 | conn->ssl->enc_read_ctx == NULL ||
| ^~
…/src/crypto/tls_openssl.c:3368:15: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
3368 | conn->ssl->enc_read_ctx->cipher == NULL ||
| ^~
…/src/crypto/tls_openssl.c:3369:15: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
3369 | conn->ssl->read_hash == NULL)
| ^~
…/src/crypto/tls_openssl.c:3372:15: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
3372 | c = conn->ssl->enc_read_ctx->cipher;
| ^~
…/src/crypto/tls_openssl.c:3374:29: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
3374 | h = EVP_MD_CTX_md(conn->ssl->read_hash);
| ^~
…/src/crypto/tls_openssl.c:3381:20: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
3381 | else if (conn->ssl->s3)
| ^~
…/src/crypto/tls_openssl.c:3382:22: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
3382 | md_size = conn->ssl->s3->tmp.new_mac_secret_size;
| ^~
…/src/crypto/tls_openssl.c: In function ‘tls_sess_sec_cb’:
…/src/crypto/tls_openssl.c:3426:12: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
3426 | s->s3->client_random,
| ^~
…/src/crypto/tls_openssl.c:3427:12: error: invalid use of incomplete typedef ‘SSL’ {aka ‘struct ssl_st’}
3427 | s->s3->server_random, secret);
| ^~
…/src/crypto/tls_openssl.c: In function ‘tls_connection_set_session_ticket_cb’:
…/src/crypto/tls_openssl.c:3534:44: warning: passing argument 2 of ‘SSL_set_session_secret_cb’ from incompatible pointer type [-Wincompatible-pointer-types]
3534 | if (SSL_set_session_secret_cb(conn->ssl, tls_sess_sec_cb,
| ^~~~~~~~~~~~~~~
| |
| int (*)(SSL *, void *, int *, struct stack_st_SSL_CIPHER *, SSL_CIPHER **, void ) {aka int ()(struct ssl_st *, void *, int *, struct stack_st_SSL_CIPHER *, struct ssl_cipher_st **, void )}
In file included from …/src/crypto/tls_openssl.c:19:
/usr/include/openssl/ssl.h:2107:63: note: expected ‘tls_session_secret_cb_fn’ {aka ‘int (
)(struct ssl_st *, void *, int *, struct stack_st_SSL_CIPHER *, const struct ssl_cipher_st **, void )’} but argument is of type ‘int ()(SSL *, void *, int *, struct stack_st_SSL_CIPHER *, SSL_CIPHER **, void )’ {aka ‘int ()(struct ssl_st *, void *, int *, struct stack_st_SSL_CIPHER *, struct ssl_cipher_st **, void *)’}
2107 | tls_session_secret_cb_fn session_secret_cb,
| ~~~~~~~~~^
…/src/crypto/tls_openssl.c: In function ‘tls_connection_resumed’:
…/src/crypto/tls_openssl.c:2819:1: warning: control reaches end of non-void function [-Wreturn-type]
2819 | }
| ^
make[1]: *** [Makefile:891: …/src/crypto/tls_openssl.o] Error 1
make[1]: Leaving directory ‘/home/user/Downloads/mana/hostapd-mana/hostapd’
make: *** [Makefile:3: all] Error 2
"

now I think that I have wrong OpenSSL Version(1.1.1k). Can someone tell me what I need to do to fix that problem.

From the git repository: https://github.com/sensepost/mana

Deprecation Notice

At Defcon 26 we talked about how we’re deprecating mana-toolkit in favour of bettercap and berate-ap. The core of mana, hostapd-mana is still under active development. This repo isn’t going anywhere, and can still be used, but it hasn’t been actively maintained for some time. Keep an eye on w1f1.net for more info.

tl;dr

Logging issues here is unlikely to get your problem solved.