百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

roguehostapd

> 编程语言
开源

包含 Wi-Fi 攻击的 Hostapd 分支,并通过 ctypes 提供 Python 绑定。

189 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

包含 Wi-Fi 攻击的 Hostapd 分支,并通过 ctypes 提供 Python 绑定。

roguehostapd

Roguehostapd is a fork of hostapd, the famous user space software access point. It provides Python ctypes bindings and a number of additional attack features. It was primarily developed for use in the Wifiphisher project.

Build

To build the latest development version type the following commands:

bash
git clone https://github.com/wifiphisher/roguehostapd.git # Download the latest version
cd roguehostapd # Switch to the roguehostapd directory
python setup.py install # Build the shared library of hostapd

Usage


bash
python run.py -i wlan0 -ssid haha

Use wlan0 for spawning the OPEN rogue AP on channel 6 and the ssid is haha.


bash
python run.py -i wlan0 -ssid haha -pK 12345678

Use wlan0 for spawning the WPA2/WPA rogue AP with passhrase 12345678


bash
python run.py -i wlan0 -ssid haha -kA

Use wlan0 for spawning the OPEN rogue AP supporting the KARMA attack.


python
HOSTAPD_CONFIG_DICT = {
    'ssid': 'haha',
    'interface': 'wlan0',
    'karma_enable': 1}
HOSTAPD_OPTION_DICT = {
    'debug_level': hostapd_constants.HOSTAPD_DEBUG_OFF
}
HOSTAPD_OBJ = Hostapd()
HOSTAPD_OBJ.start(HOSTAPD_CONFIG_DICT, HOSTAPD_OPTION_DICT)

The above configuration will perform the KARMA attack.

Following are all the options along with their descriptions (also available with python run.py -h)

Short form Long form Explanation
-h --help show this help message and exit
-ssid SSID --ssid SSID Select the ssid for the spawn rogue AP
-c CHANNEL --channel CHANNEL Select the channel number for the spawn rogue AP
-bI BEACON_INT --beacon_int BEACON_INT Define the beacon interval in milliseconds for the spawn rogue AP
-i INTERFACE --interface INTERFACE Select the interface for the spawn rogue AP. Example: -i wlan0
-pK WPA_PASSPHRASE --wpa_passphrase WPA_PASSPHRASE Define the password for the spawn rogue AP.
-kA Enabling the KARMA attack
-dV --debug-verbose Enabling the verbose debug log
-K --key_data Include key data in debug messages
-t --timestamp Include timestamps in some debug messages
-v --version Show hostapd version

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Chostapdpythonwifi

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言