Skip to content

Instantly share code, notes, and snippets.

@binkybear
Created April 6, 2016 22:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save binkybear/e646bf0c10de4aaf5ac85b9c980c875c to your computer and use it in GitHub Desktop.
Save binkybear/e646bf0c10de4aaf5ac85b9c980c875c to your computer and use it in GitHub Desktop.
hostapd-wpe in kali linux
#!/bin/bash
#
# hostapd-wpe installation on Kali Linux
#
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
mkdir -p /usr/share/hostapd-wpe/certs
cp hostapd-wpe /usr/bin/hostapd-wpe
cp hostapd-wpe.eap_user /usr/share/hostapd-wpe/hostapd-wpe.eap_user
cd /tmp/hostapd-wpe/
cp -rf certs /usr/share/hostapd-wpe
chmod 755 /usr/share/hostapd-wpe/certs/bootstrap
#/usr/share/hostapd-wpe/certs/bootstrap
# Mofiy configuration file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment