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!