I'm using kali linux and I want to connect to my hidden wifi
so I know my SSID name and the password, how can I connect to this wifi?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI'm using kali linux and I want to connect to my hidden wifi
so I know my SSID name and the password, how can I connect to this wifi?
Create a wpa_supplicant configuration file with the following content:
#nano /etc/wpa_supplicant/wpa_supplicant-Hidden.conf
update_config=1
ap_scan=1
network={
ssid="YOUR-HIDDEN-SSID"
scan_ssid=1
#psk="YOURPASSWORD"
psk=..........................
}
Then connect:
wpa_supplicant -i wlan0 -c/etc/wpa_supplicant/wpa_supplicant-Hidden.conf -B
Replace wlan0
with your wifi interface.
Step by step:
to create the wpa_supplicant-Hidden.conf
file:
touch /etc/wpa_supplicant/wpa_supplicant-Hidden.conf
wpa_passphrase "YOUR-HIDDEN-SSID" YOUR-PASSWORD > /etc/wpa_supplicant/wpa_supplicant-Hidden.conf
Then edit your wpa_supplicant-Hidden.conf
by adding the missing parametre as described bellow.
A sample script to connect:
#!/bin/bash
killall wpa_supplicant
echo "starting wpa_supplicant"
wpa_supplicant -i wlan0 -c/etc/wpa_supplicant/wpa_supplicant-Hidden.conf -B
echo "getting IP through dhcp"
dhclient wlan0
echo "ping test for 5 seconds"
ping -w 5 8.8.8.8
If you have Network-Manager installed the killall wpa_supplicant
will kill the runing wpa_supplicant
service.
To get what is the SSID you are currently connect to , run the following:
iwgetid
sample output:
wlan0 ESSID:"YOUR-HIDDEN-SSID"
I am going to assume you are using the default kali
desktop environment, gnome
:
Wi-Fi Not Connected
. The Wi-Fi section of the menu will expand.Connect to Hidden Network…
button.New
for a new one.