Lets plug our Wireless adapter into one of the laptops that has Kali Linux running on it. Alpha AWUS036H support Kali out of the box, so you just need to plug the adapter into the laptop. Once you have done this you can check from the Kali terminal that the adapter is found by the laptop.
To check what interfaces are found by the laptop, type the following command:
For our laptop, our internal wi-fi card has the attribute of wlan0, and our wireless adapter has the attribute of wlan1. By default, the internal wi-fi card SHOULD be wlan0. When you start your computer without an adapter attached, typing iwconfig should bring up only wlan0. Then when you attach the wireless adapter to the laptop and after that typing iwconfig, it shows up wlan1 on the bottom. You can also check from the iwconfig, that the wireless adapter has Tx-Power set to 20. In essence, Tx-Power stands for the amount of power transmitted outbound from the device to the antenna – the higher the tx-power, the stronger and extended the signal is. I’m not going to plunge deep into this subject, but if you are interested, here is a link about tx-power.
To bring the wireless attribute up and running, type in the following command:
ifconfig wlan1 up
Then type the following command to check the status of the interface:
You can see the status of the adapter in the second row, where it reads: “UP BROADCAST MULTICAST”
First let’s see what networks are in the area. Type into the terminal following command:
iwlist wlan1 scanning
The iwlist wlan1 scanning command checks for all the networks in your vicinity. You can find the name of the router in the ESSID field to make sure that you have found your own router. Make sure that the MAC address is the correct one, since some routers may have the same name/ESSID.
Now let’s work on connecting our wireless adapter to the router. Type in the following command to connect
iwconfig wlan1 essid *router's name*
You should see the router’s MAC address in the output of iwconfig wlan 1, in the Access Point field.
So we know from the configuration page, that the router’s ip address is 192.168.0.1 so let’s set our IP address in the same subnet with the following command:
ifconfig wlan1 192.168.0.2 netmask 255.255.255.0 up
You can verify with the ifconfig wlan1 command, that the command succeeded.
Now let’s ping our router and test the connection.
Now that we have our wireless adapter connected to the access point, let’s move on to packet sniffing and injection.