sensepost / mana

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

rtl8192cu driver for hostapd #30

Open Narkozzz opened 9 years ago

Narkozzz commented 9 years ago

Hello! Seems default wlan driver in hostapd-karma.conf cant work with rtl8192cu chipset. Ordinary hostapd works with driver=rtl871xdrv, but hostapd from mana-toolkit shows invalid/unknown driver 'rtl871xdrv'. Is there a way to build hostapd-mana for rtl871xdrv driver?

Jessexd commented 9 years ago

apply this patch

https://github.com/pritambaral/hostapd-rtl871xdrv

Narkozzz commented 9 years ago

Do I need only to apply patch as described in readme, or I have to follow all recompiling hostapd process? Making hostapd from mana-toolkit with patch .config and drivers ended with error. Here is an output: http://pastebin.com/a37TP8FQ

Jessexd commented 9 years ago

The patch of course needs to be applied as the .config from the link I gave you is made to adapt for use by a fresh copy of hostapd (in this case mana-toolkits upstream) so apply the patch before make.

Be sure to make is clean first

Narkozzz commented 9 years ago

I am having same issue with patch as described in the issues section of patch git: One hunk of patch is failed because of --- src/drivers/driver_wext.c +++ src/drivers/driver_wext.c @@ -2393,4 +2451,5 @@ .get_capa = wpa_driver_wext_get_capa, .set_operstate = wpa_driver_wext_set_operstate, .get_radio_name = wext_get_radio_name,

Do you have any solution to this? Making mana-toolkit work on rtl8192cu will advance its capabilities, because most of AR9271 dongles limited with 7 hostapd clients at once.

Narkozzz commented 9 years ago

Ok, so we patched hostapd-mana with fixed patch, but unfortunately it works only as default hostapd without karma/mana function. Seems like the "magic" is in modified nl80211 driver, so we must modify rtl871xdrv same way. Maybe somebody else interested in extending mana-toolkit device compatibility, because working with AR9271 usb-dongles is ineffective because of limitation on 7 connections at once.

singe commented 8 years ago

I had a brief look at the patch, it doesn't look like it should conflict with the mana hostapd patches. I've only ever tested with nl80211 supported devices and would be reluctant to maintain this extension over time if hostapd isn't adding it. Is there a benefit to using such a device?