Wireless Ad-Hoc Network on Kali Linux

Software and Hardware

Linux Version : Kali 2.0 on VMWare
Wireless Adaptors: Edimax EW-7811Un

Create an Ad-Hoc Network

The following command will create a wireless Ad-Hoc network using two wireless adaptors with an ESSID name of "HELLO" running on 2.4Ghz channel 5.
Some wireless adaptors are only able to create an Ad-Hoc network on channel 1, if channel 5 is an issue just use channel 1 or just omit completely the channel command "channel 5".
Run the following command on both wireless adaptors:

  root@kali:~# iwconfig wlan0 mode ad-hoc essid HELLO enc off channel 5


Assign Network Address

The next step is to assign network adressses, make sure you assign differnt IP for each device, ex. 10.0.0.1 for the first device and 10.0.0.2 for the second device.
Run the following command on both wireless adaptors

  root@kali:~# ifconfig wlan0 10.0.0.1 netmask 255.255.255.0


Ping

You should now be able to ping from one station to the other.
NOTE: If you are using Edimax EW-7811Un as your wireless adaptor, for some reason you have to wait about 30sec for the first successful ping.

  root@kali:~# ping 10.0.0.1


Usefull Commands

The station dump command shows all Ad-Hoc peers discovered by your device. You can use the displayed mac address to identify the discovered station.
Run the following command on both wireless adaptors

  root@kali:~# iw wlan0 station dump


Connect with us!

MetaAppz Facebook Page MetaAppz Twitter Page MetaAppz Pinterest Page MetaAppz Youtube Page