Manatool-kit apt-get eror

Im trying to install man

root@test:~/mana# apt-get install mana-toolkit
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package mana-toolkit is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘mana-toolkit’ has no installation candidate

i follow the instruction here and still it doesnt work

root@kali:~# git clone --depth 1 https://github.com/sensepost/mana
Cloning into ‘mana’…
remote: Enumerating objects: 238, done.
remote: Counting objects: 100% (238/238), done.
remote: Compressing objects: 100% (164/164), done.
remote: Total 238 (delta 29), reused 201 (delta 16), pack-reused 0
Receiving objects: 100% (238/238), 1.04 MiB | 1.19 MiB/s, done.
Resolving deltas: 100% (29/29), done.
root@kali:~# cd mana
root@kali:~/mana# git submodule init
Submodule ‘hostapd-mana’ (https://github.com/sensepost/hostapd-mana) registered for path ‘hostapd-mana’
Submodule ‘net-creds’ (https://github.com/DanMcInerney/net-creds) registered for path ‘net-creds’
Submodule ‘sslstrip-hsts/dns2proxy’ (https://github.com/singe/dns2proxy) registered for path ‘sslstrip-hsts/dns2proxy’
Submodule ‘sslstrip-hsts/sslstrip2’ (https://github.com/singe/sslstrip2) registered for path ‘sslstrip-hsts/sslstrip2’
root@kali:~/mana# git submodule update
Cloning into ‘/root/mana/hostapd-mana’…
Cloning into ‘/root/mana/net-creds’…
Cloning into ‘/root/mana/sslstrip-hsts/dns2proxy’…
Cloning into ‘/root/mana/sslstrip-hsts/sslstrip2’…
Submodule path ‘hostapd-mana’: checked out ‘e918abdafb6825dacf8c5b99961649456bc049f5’
Submodule path ‘net-creds’: checked out ‘ed4372300b37ba17f133dcc6ed6873cc47c65f11’
Submodule path ‘sslstrip-hsts/dns2proxy’: checked out ‘38428f60770fd8639e61a6bc91d6d7318086755f’
Submodule path ‘sslstrip-hsts/sslstrip2’: checked out ‘892b014bd1b62e01f5ea0924839d08a931a6a2b1’
root@kali:~/mana# make
make -C hostapd-mana/hostapd/
make[1]: Entering directory ‘/root/mana/hostapd-mana/hostapd’
CC main.c
CC config_file.c
CC …/src/ap/hostapd.c
CC …/src/ap/wpa_auth_glue.c
CC …/src/ap/drv_callbacks.c
CC …/src/ap/ap_drv_ops.c
CC …/src/ap/utils.c
CC …/src/ap/authsrv.c
CC …/src/ap/ieee802_1x.c
CC …/src/ap/ap_config.c
CC …/src/ap/eap_user_db.c
CC …/src/ap/ieee802_11_auth.c
CC …/src/ap/sta_info.c
CC …/src/ap/wpa_auth.c
CC …/src/ap/tkip_countermeasures.c
CC …/src/ap/ap_mlme.c
CC …/src/ap/wpa_auth_ie.c
CC …/src/ap/preauth_auth.c
CC …/src/ap/pmksa_cache_auth.c
CC …/src/ap/ieee802_11_shared.c
CC …/src/ap/beacon.c
CC …/src/drivers/drivers.c
CC …/src/utils/eloop.c
CC …/src/utils/common.c
CC …/src/utils/wpa_debug.c
CC …/src/utils/wpabuf.c
CC …/src/utils/os_unix.c
CC …/src/utils/ip_addr.c
CC …/src/common/ieee802_11_common.c
CC …/src/common/wpa_common.c
CC …/src/eapol_auth/eapol_auth_sm.c
CC …/src/eapol_auth/eapol_auth_dump.c
CC …/src/radius/radius.c
CC …/src/radius/radius_client.c
CC …/src/radius/radius_das.c
…/src/ap/vlan_init.c: In function ‘vlan_init’:
…/src/ap/vlan_init.c:866:54: warning: ‘.#’ directive output may be truncated writing 2 bytes into a region of size between 1 and 17 [-Wformat-truncation=]
os_snprintf(vlan->ifname, sizeof(vlan->ifname), “%s.#”,
^~
In file included from /root/mana/hostapd-mana/src/utils/common.h:12,
from …/src/ap/vlan_init.c:13:
/root/mana/hostapd-mana/src/utils/os.h:545:21: note: ‘snprintf’ output between 3 and 19 bytes into a destination of size 17
#define os_snprintf snprintf
…/src/ap/vlan_init.c:866:3: note: in expansion of macro ‘os_snprintf’
os_snprintf(vlan->ifname, sizeof(vlan->ifname), “%s.#”,
^~~~~~~~~~~
CC …/src/ap/vlan_init.c
CC ctrl_iface.c
CC …/src/ap/ctrl_iface_ap.c
CC …/src/crypto/md5.c
CC …/src/ap/iapp.c
CC …/src/ap/peerkey_auth.c
…/src/drivers/driver_hostap.c: In function ‘hostap_init’:
…/src/drivers/driver_hostap.c:242:57: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), “%sap”, drv->iface);
^~
…/src/drivers/driver_hostap.c:242:9: note: ‘snprintf’ output between 3 and 19 bytes into a destination of size 16
snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), “%sap”, drv->iface);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
…/src/drivers/driver_hostap.c:355:35: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
os_snprintf(ifname, IFNAMSIZ, “%sap”, drv->iface);
^~
In file included from /root/mana/hostapd-mana/src/utils/common.h:12,
from …/src/drivers/driver_hostap.c:13:
/root/mana/hostapd-mana/src/utils/os.h:545:21: note: ‘snprintf’ output between 3 and 19 bytes into a destination of size 16
#define os_snprintf snprintf
…/src/drivers/driver_hostap.c:355:2: note: in expansion of macro ‘os_snprintf’
os_snprintf(ifname, IFNAMSIZ, “%sap”, drv->iface);
^~~~~~~~~~~
…/src/drivers/driver_hostap.c: In function ‘hostap_driver_deinit’:
…/src/drivers/driver_hostap.c:355:35: warning: ‘ap’ directive output may be truncated writing 2 bytes into a region of size between 0 and 16 [-Wformat-truncation=]
os_snprintf(ifname, IFNAMSIZ, “%sap”, drv->iface);
^~
In file included from /root/mana/hostapd-mana/src/utils/common.h:12,
from …/src/drivers/driver_hostap.c:13:
/root/mana/hostapd-mana/src/utils/os.h:545:21: note: ‘snprintf’ output between 3 and 19 bytes into a destination of size 16
#define os_snprintf snprintf
…/src/drivers/driver_hostap.c:355:2: note: in expansion of macro ‘os_snprintf’
os_snprintf(ifname, IFNAMSIZ, “%sap”, drv->iface);
^~~~~~~~~~~
CC …/src/drivers/driver_hostap.c
CC …/src/drivers/driver_wired.c
…/src/drivers/driver_nl80211.c:19:10: fatal error: netlink/genl/genl.h: No such file or directory
#include <netlink/genl/genl.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:891: …/src/drivers/driver_nl80211.o] Error 1
make[1]: Leaving directory ‘/root/mana/hostapd-mana/hostapd’
make: *** [Makefile:3: all] Error 2

Hi Lunaribis,

Please download the installer script provided in the resources of lecture 50 for creating honeypots. After you download it, change the permissions to an executable:

cd ~/Downloads
chmod +x install-mana.sh
./install_mana.sh

Then edit the configuration files as shown in the lecture and start the start-nat-simple.sh

Note: Please make sure also that wlan0 is disabled before starting mana meaning that it’s not connected, and don’t have an IP address.

Hi AJS

It seems like there is no installer script in lecture 50

below the video theres noothing

This is the one your speaking of correct?

thankyou!

Hi Lunaribis,

Yes, this is the lecture that I am talking about, but on Udemy for it has the required resources. It seems that the installer isn’t uploaded in the course on StationX. I will check with Zaid. Anyway, here’s the installer script contents if you want to install mana:

apt-get update
apt-get --yes install build-essential pkg-config git libnl-genl-3-dev libssl-dev 
cd /tmp
git clone https://github.com/sensepost/hostapd-mana
cd hostapd-mana
make -C hostapd
mv /tmp/hostapd-mana/hostapd/ /usr/lib/mana-toolkit
cd /usr/share/
git clone --depth 1 https://github.com/sensepost/mana.git
mv mana mana-toolkit
mkdir /etc/mana-toolkit/
mv mana-toolkit/run-mana/conf/*.conf /etc/mana-toolkit/

I advise you to try it on a fresh install if you already tried to install the kit before to prevent packages interferences and possible issues during the installation. Here’s the installer link:

Please let me know if you face any issues again.

Hello guys,

This is an issue with the installation script of mana, I’ve updated the relevant lectures to include an installation script that should work, please revise them and let us know if you have any issues.

1 Like

Thank you for the update!

Hello Zaid What about those using your book, how can we get the update write up…Thank God i finally Got you.

Hai sir i’m the hackthetech website i didnt any updated video so please convey it how to install mana toolkit

hy @lunaribis u istalled mana toolkit please tell me how to install it. I’am waiting for ur message

they did’nt update your videos sir please convey it

Please try the following method, but you should have an adapter that supports master mode in order to start the honeypot:
https://zsecurity.org/forums/topic/fakeauth-and-arpreplay/

└─$ sudo make
[sudo] password for gameover:
make -C hostapd-mana/hostapd/
make[1]: Entering directory ‘/home/gameover/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/gameover/mana/hostapd-mana/hostapd’
make: *** [Makefile:3: all] Error 2

i get such kind of error

Did you try running the mana-toolkit script from lecture 50 (Creating a Fake Access Point (Honeypot) - Theory | The StationX Cyber)?