-
Notifications
You must be signed in to change notification settings - Fork 155
[suggestion] hostapd-wpe front end #128
Comments
Per request: #128 Signed-off-by: binkybear <[email protected]>
I looked into this and it seems pretty doable. Here is the install script I used for testing: cd /tmp
git clone https://github.com/OpenSecurityResearch/hostapd-wpe
wget http://w1.fi/releases/hostapd-2.2.tar.gz
tar -zxf hostapd-2.2.tar.gz
cd hostapd-2.2
patch -p1 < ../hostapd-wpe/hostapd-wpe.patch
cd hostapd
sed -i 's/#CONFIG_LIBNL32=y/CONFIG_LIBNL32=y/g' .config
make
chmod 755 hostapd-wpe
cp hostapd-wpe /usr/bin/hostapd-wpe
mkdir -p /usr/share/hostapd-wpe/certs
cp hostapd.eap_user /usr/share/hostapd-wpe/hostapd.eap_user
cd /tmp/hostapd-wpe/
cp -rf certs /usr/share/hostapd-wpe
chmod 755 /usr/share/hostapd-wpe/certs/bootstrap
#cd /usr/share/hostapd-wpe/certs/
#./bootstrap The configuration file I moved to Nethunter application configuration files and pointed it to the certificates and user file to where we copied it. Adding the above to the chroot build would be easy (just copy and paste). The Nethunter app changes shouldn't be terribly difficult either since it uses nearly the same file as hostapd-mana. Just needs some slight changes to regex/ui. I think the biggest challenge would be making sure the certificates get generated by bootstrap along with how to run it smoothly. |
Nice, any idea how soon this could be implemented?
|
#128 Signed-off-by: binkybear <[email protected]>
For WPA enterprise attacks. offensive-security/nethunter-app#128 Signed-off-by: binkybear <[email protected]>
#128 Signed-off-by: binkybear <[email protected]>
* Fix incorrectly named hostapd.eap_user * Run hostapd directly * Add wlan1 up #128 Signed-off-by: binkybear <[email protected]>
OK - so maybe you can help with testing. Install hostapd-wpe using instructions above. Then install apk: https://transfer.sh/pDNCa/nethunter-app-release.apk Under mana-toolkit you can modify hostapd-wpe in the second tab and generate certificates. When you are ready, hit "start mana" and select hostapd-wpe. Let me know what needs to be fixed/added. |
Will check that out in a bit, just signed on to work. -----Original Message----- OK - so maybe you can help with testing. Install hostapd-wpe using instructions above. Then install apk: https://transfer.sh/pDNCa/nethunter-app-release.apk Under mana-toolkit you can modify hostapd-wpe in the second tab and generate certificates. When you are ready, hit "start mana" and select hostapd-wpe. Let me know what needs to be fixed/added. — |
Ok, so two things first to compile hostapd-wpe needs two dependencies that you missed
Also when I try and connect to the honey-net hostapd-wpe seems to want a EAP type different then what ever eap type I specify in the config, a example below:
I never saw this error on x86 Kali or stock debian, not sure what's going on there. |
Thanks for testing. You can get better debugging results with a -dd. So the command to run would be: ifconfig wlan1 up && /usr/bin/hostapd-wpe -dd /sdcard/nh_files/configs/hostapd-wpe.conf Or if you just want a new apk with -dd built it: edit Testing shows maybe its a bit to much on the debugging....best to do it do it from ssh and pipe out a log... edit2 Maybe it would be better/easier to just use built in mana eap attack and modify start-noupstream-eap.sh. |
Bult from offensive-security/nethunter-app#128 Signed-off-by: binkybear <[email protected]>
Hostapd-wpe appears to be working after redoing config file. #128 Signed-off-by: binkybear <[email protected]>
I think everything is working now: https://transfer.sh/YJHkL/nethunter-app-release.apk I've also used the patch for 2.5 hostapd instead. I've submitted a pull request with the updated binary and cert files: offensive-security/nethunter-utils#15 Eventually you should only need to run an apt-get update/upgrade and install latest apk. I took a screenshot to confirm it worked in link below: Tested on OnePlus1 using TL-WN722N: |
That version bricks the HID attack menu in the app and makes On 04/06/2016 10:22 PM, binkybear wrote:
|
Are you sure the kernel didn't get updated? There were no changes to hid and theres no possible way the app removed ability to detect wlan1. (Feel free to check git history) |
When i go to the HID attack menu the app crashes. I was able to fix the
|
Ah I see now on the hid app crash. Will look for problem/fix and upload. Thanks for the good eye! For my reference logcat:
|
Now that I fixed the wlan1 detection issue I will try the host apd issue
|
Tried using the apk you sent and hostapd-wpe 2.5 with the patch from the repo you used with the same authentication problem. |
Fixed HID error: New APK with HID fix: The crash is occurring I believe because of some changes in Android API. So back to your authentication issue, I assume its exactly same error as before? Did you also try "forgetting" network then joining? Just trying to rule out what could be causing issue. |
I tried that. I also tried from both android and Debian. |
Did you try off the 2.5 hostapd? Here is the binary I used (which worked for me): https://github.com/binkybear/nethunter-utils/blob/master/usr/bin/hostapd-wpe (I used TPLINK in testing) |
Ok, so that binary seems to require different libssl binaries then apt-get install provides and the app crash bug is present in the kali services and duck hunter tabs as well. |
Revert for now. Issue raised in: #128 Signed-off-by: binkybear <[email protected]>
Reverted API back to earlier appears to fix issues with app crashes. However, we will one day have to upgrade to latest api and will probably encounter these issues again: |
Great, but so far I have been unable to get hostapd-wpe to capture creds, once hostapd-wpe is pushed to the nethunter repo I will try again. Also just a suggestion maybe the app should parse hostapd-wpe's output and log captured creds to a file? -----Original Message----- Reverted API back to earlier appears to fix issues with app crashes. However, we will one day have to upgrade to latest api and will probably encounter these issues again: https://transfer.sh/4EvQ7/nethunter-app-release.apk — |
Any idea when hostapd-wpe will be pushed to the Nethunter Repo? |
Flashing nethunter again and compiling hostapd-wpe worked, only suggestion is to have the app parse hostapd-wpe's log file and save it's contents to a external file to make offline cracking easier. |
So often times on a pen test Mana is less useful as a targeted evil twin attack (we only care about impersonating one network) and we often only need to capture WPA-enterprise credentials, usually that means using hostapd-wpe. Would it be possible to add hostapd-wpe to the Nethunter repository and add to the nethunter app a front end to hostapd-wpe (GUI based config and tail of hostapd-wpe's credential log)?
The text was updated successfully, but these errors were encountered: