Configure Wireless Adapter and Change MAC Address

Today I am shifting gears. I decided to introduce WiFi hacking into the mix. Kali in a virtual environment cannot utilize the same wireless card in a host machine. Therefore, the use of  a wireless adapter is required. I found that the Alfa AWUS036NHA (http://amzn.to/2joTI0q) worked best for my objective. This adapter uses the Atheros 9271 chipset and is compatible with Kali Linux. Additionally, it is compatible with any brand 802.11b, 802.11g or 802.11n router using 2.4 Ghz wave-length, includes a 4 inch 5 ddbi screw-on swivel rubber antenna that can be removed and upgrade up to 9 dbi, and supports 64/128-bit WEP, WPA, WPA2, TKIP, and AES  encryption protocols.

The first step to getting the wireless adapter to work in the Kali environment is to install the VirtualBox Extension Pack (https://www.virtualbox.org/wiki/Downloads) if you are using VirtualBox like I am.


Once the Extension Pack has been installed, open the settings to the Kali machine installed on VirtualBox, navigate to the USB option, and ensure that the USB 2.0 option is selected and the Atheos UB91C is activated.

Kali atheros.jpg

Next, start your Kali machine. Once connected, use the iwconfig command to ensure that the wireless adapter is being seen.




While this is not a hack, this will document how to change the MAC address using the macchanger command in Kali. To accomplish this, I first needed to disable the wireless adapter by using the command ifconfig wlan0 down. Additionally, running the macchanger --help command shows what options there are when changing the MAC address of the wireless adapter.

Using the --random flag, I was able to change the MAC address of the wireless device.

Step 3 - change mac address using random flag.jpg

More to come...

Comments

Popular posts from this blog

Master Port List

Reflected Cross Site Scripting (XSS) Attacks

Installing and Configuring WebGoat