![Makefile:1037:目标“../src/ap/beacon.o”的配方失败](https://linux22.com/image/198716/Makefile%EF%BC%9A1037%EF%BC%9A%E7%9B%AE%E6%A0%87%E2%80%9C..%2Fsrc%2Fap%2Fbeacon.o%E2%80%9D%E7%9A%84%E9%85%8D%E6%96%B9%E5%A4%B1%E8%B4%A5.png)
我正在 kali linux Rolling 2017.2 上安装 hosatpd-wpe,如下所示:
wget https://raw.githubusercontent.com/aircrack-ng/aircrack-ng/master/patches/wpe/hostapd-wpe/hostapd-wpe.patch
wget https://w1.fi/releases/hostapd-2.9.tar.gz
tar -zxf hostapd-2.9.tar.gz
cd hostapd-2.9 patch -p1 < ../hostapd-wpe.patch
cd hostapd
root@kali:/hostapd-2.6/hostapd# make
输入后make
我收到以下错误消息:
../src/ap/beacon.c: In function 'handle_probe_req':
../src/ap/beacon.c: 820:9:error: 'wpe_conf' undeclared (first use in this function); did you mean 'wps_config'?
If (wpe_conf.wpe_enable_karma && elems.ssid_len < 0) {
Wpe_config
../src/ap/beacon.c:820:9:note: each undeclared identifier is reported only once for each function it appears in
Makefile: 1037: recipe for target '../src/ap/beacon.o' failed
Make: *** [../src/ap/beacon.o] Error 1
你能让我知道如何解决这个问题吗?请注意,我是一名网络工程师,而不是程序员,所以我需要一种简单的方法来解决它。
谢谢
答案1
只需按照以下说明进行操作就会容易得多https://www.kali.org/tools/hostapd-wpe/并安装预构建的包
apt update
apt install hostapd-wpe