sensepost / mana

*DEPRECATED* mana toolkit for wifi rogue AP attacks and MitM
https://w1f1.net/
Other
1.09k stars 275 forks source link

make installation isssue #46

Closed sidjad closed 8 years ago

sidjad commented 9 years ago

make -C hostapd-mana/hostapd/ make[1]: Entering directory '/root/mana/hostapd-mana/hostapd' ../src/drivers/driver_nl80211.c:19:31: fatal error: netlink/genl/genl.h: No such file or directory

include <netlink/genl/genl.h>

                           ^

compilation terminated. Makefile:891: recipe for target '../src/drivers/driver_nl80211.o' failed make[1]: * [../src/drivers/driver_nl80211.o] Error 1 make[1]: Leaving directory '/root/mana/hostapd-mana/hostapd' Makefile:3: recipe for target 'all' failed make: * [all] Error 2

ghost commented 9 years ago

The /usr/include/netlink/genl/genl.h header file is contained in the libnl-dev package. You can install it using sudo apt-get install libnl-dev commnad.

sidjad commented 9 years ago

sudo apt-get install libnl-dev Reading package lists... Done Building dependency tree
Reading state information... Done Package libnl-dev 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 'libnl-dev' has no installation candidate

mw3demo commented 9 years ago
sudo apt-get install libnl-3-dev
brandontict commented 8 years ago

I receive same error , I have installed libnl-3-dev, aswell as other libnl libraries

[root:/opt/hostapd-1.0-karma/hostapd]# sudo apt-get install libnl-3-dev Reading package lists... Done Building dependency tree Reading state information... Done libnl-3-dev is already the newest version. libnl-3-dev set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.

I believe I've installed the correct prerequisites :

` [root:/pen/802.11]# dpkg -l | grep libnl

ii libnl-3-200:amd64 3.2.24-2 amd64 library for dealing with netlink sockets ii libnl-3-dev 3.2.24-2 amd64 development library and headers for libnl-3 ii libnl-genl-3-200:amd64 3.2.24-2 amd64 library for dealing with netlink sockets - generic netlink ii libnl-genl-3-dev 3.2.24-2 amd64 development library and headers for libnl-genl-3 ii libnl-route-3-200:amd64 3.2.24-2 amd64 library for dealing with netlink sockets - route interface `

singe commented 8 years ago

If you're going to use libnl32 you also need to edit hostapd's config file. The patch at https://github.com/sensepost/mana/pull/42/files should explain it.

On 05 Feb 2016, at 11:14 PM, brandontict notifications@github.com wrote:

I receive same error , I have installed libnl-3-dev,

[root:/opt/hostapd-1.0-karma/hostapd]# sudo apt-get install libnl-3-dev Reading package lists... Done Building dependency tree

Reading state information... Done libnl-3-dev is already the newest version. libnl-3-dev set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.

— Reply to this email directly or view it on GitHub.

brandontict commented 8 years ago

Thank you for the reply, I'll post my results.

singe commented 8 years ago

We've switched to libnl3 by default, and the binary debs in the last release are available if you're struggling to compile.

weili1457355863 commented 7 years ago

I installed libnl-3-dev ,but hostapd: error while loading shared libraries: libnl.so.1: cannot open shared object file: No such file or directory

weili1457355863 commented 7 years ago

can u tell me how to do

singe commented 7 years ago

This means you compiled with NL 2.0 not 3.0 support and it's looking for that lib. Edit .config to use libnl3.

Sent from my phone

On 19 Dec 2016, at 3:51 PM, weili1457355863 notifications@github.com wrote:

I installed libnl-3-dev ,but hostapd: error while loading shared libraries: libnl.so.1: cannot open shared object file: No such file or directory

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

joker5bb commented 7 years ago

I am also experiencing this issue, I have all dependencies installed and got CONFIG_LIBNL32=y set

singe commented 7 years ago

Can you list the libnl packages you have?

On 05 Feb 2017, at 12:05 AM, joker5bb notifications@github.com wrote:

I am also experiencing this issue, I have all dependencies installed and got CONFIG_LIBNL32=y set

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

joker5bb commented 7 years ago

root@kali:~# dpkg -l | grep libnl ii libnl-3-200:armhf 3.2.27-1+b1 armhf library for dealing with netlink sockets ii libnl-3-dev:armhf 3.2.27-1+b1 armhf development library and headers for libnl-3 ii libnl-genl-3-200:armhf 3.2.27-1+b1 armhf library for dealing with netlink sockets - generic netlink ii libnl-route-3-200:armhf 3.2.27-1+b1 armhf library for dealing with netlink sockets - route interface

Im also using the hostapd 2.6 branch

find / -name genl.h /usr/include/libnl3/netlink/genl/genl.h

s0lst1c3 commented 7 years ago

@joker5bb @weili1457355863

Try installing libnfnetlink-dev and pkg-config using the following command:

apt-get install libnfnetlink-dev pkg-config

I stumbled across this thread on Google after running into the same problem today trying to compile hostapd-2.6 for a similar project. Figured out the solution after reading the following post:

https://ubuntuforums.org/showthread.php?t=2090758

@singe: If this works for @joker5bb and @weili1457355863 as well, it might be worth adding those packages to the project dependencies.

joker5bb commented 7 years ago

The correct dependencies are libnl-3-dev and libnl-genl-3-dev

getr00t commented 5 months ago

@singe @joker5bb @joker5bb @mw3demo also encountered the same problem when installing hostapd-wpe on Raspberry Pi. How should I solve it? System version: Debian GNU/Linux 11 (bullseye) No desktop version system

I want to study airgeddon on Raspberry Pi 4 OS, but it says hostapd-wpe is missing. I found that hostapd dependency is installed by default on Raspberry Pi system. Is hostapd not equivalent to hostapd-wpe? How can I install hostapd-wpe successfully? Thank you.

1265 error libnl