抱歉,如果这个问题已经有人问过了,但是我只是找不到任何对我真正有用的解决方案的问题。
我基本上已经下载了 hostapd-wpe、修补了它、运行了它,make
一切就绪。我还配置了 hostapd-wpe.conf 以确保接口设置为 wlan0。但是,运行时我仍然收到此错误./hostapd-wpe hostapd-wpe.conf
:
root@kali $ ./hostapd-wpe hostapd-wpe.conf
Configuration file: hostapd-wpe.conf
Using interface wlan0 with hwaddr 60:e3:27:0a:ba:3a and ssid "hostapd-wpe"
OpenSSL: tls_global_ca_cert - Failed to load root certificates error:02001002:system library:fopen:No such file or directory
OpenSSL: pending error: error:2006D080:BIO routines:BIO_new_file:no such file
OpenSSL: pending error: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
Failed to set TLS parameters
Interface initialization failed
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
wlan0: Unable to setup interface.
hostapd_free_hapd_data: Interface wlan0 wasn't started
我有点不确定为什么,因为当我运行时iw list
它在支持的模式下显示“AP”。
我已经尝试过运行airmon-ng check kill
和类似的命令,但它仍然给我带来困难。
任何其他建议都将不胜感激。我正在使用 TP-LINK TP-WN722N 无线 USB 适配器。
答案1
看来您忘记构建 hostapd-wpe 所需的证书。请查看您的日志:
OpenSSL: tls_global_ca_cert - Failed to load root certificates error:02001002:system library:fopen:No such file or directory
OpenSSL: pending error: error:2006D080:BIO routines:BIO_new_file:no such file
OpenSSL: pending error: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
由于没有证书文件,hostapd-wpe 将无法启动!