Configuring our wireless Adapter

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:

 iwconfig

1

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
Screenshot from 2018-04-04 14-38-17
In case you get the following error: “SI0CSIFFLAGS: Operation not possible due to RF-kill” – it means that the wifi is not turned on. You can turn it on by just selecting the wi-fi on the top right of the Kali UI, and turning it on.

Then type the following command to check the status of the interface:

ifconfig wlan1

lol.png

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

masa

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*

hole

You should see the router’s  MAC address in the output of iwconfig wlan 1, in the Access Point field.

pete

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.

kokojuttu

Now let’s ping our router and test the connection.

kokojuttu

Now that we have our wireless adapter connected to the access point, let’s move on to packet sniffing and injection.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s