echo -n yourpassword | iconv -t UTF-16LE | openssl md4
It will show a string which is the hashed password(HASH_PWD
) and were use in 2.2.
the iconv might have different optional name for UTF-16LE hash, (ex: utf16le)
echo -n yourpassword | iconv -t utf16le | openssl md4
check
iconv -l
to find the correct name.
cd /etc/wpa_supplicant
sudo cp wpa_supplicant.conf wpa_supplicant.conf.org
- Using nano to open the wpa_supplicant.conf
sudo nano wpa_supplicant.conf
- Editing the content as follow, replacing the
USERNAME
andHASH_PWD
.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=JP
network={
ssid="IIIS-Net"
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP
auth_alg=OPEN
eap=PEAP
identity="USERNAME"
password=hash:HASH_PWD
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
priority=1
}
USERNAME
is your cisco username, ex: [email protected]
HASH_PWD
is the hashed password string from step #1.
cd /etc
sudo cp dhcpcd.conf dhcpcd.conf.org
- Using nano to open the wpa_supplicant.conf
sudo nano dhcpcd.conf
- Add below content to
dhcpcd.conf
file
interface IIIS-Net
env ifwireless=1
env wpa_supplicant_driver=wext,nl80211
sudo reboot