Hi.
So in this lesson we are going to learn and understand about i w config where I w stands for interface
wireless.
So any time you connect any wireless device into your computer, so let's say a data dongle which is
used to connect your system to our wi fi point, you can see the IP address of that specific device
using i w config.
It is very much similar to i f config which is interface configuration.
But here you can specifically see all the wireless devices connected to your host machine.
Now if you want, you can change the side name through which you can denote and identify that specific
wireless device that is connected to your host using a name which is known as E as a side name.
Also, we will see how can we change the mode of the wireless device that has been connected to our
system from managed to monitor mode?
Now what is the difference between managed mode and monitor mode?
By default, all the wireless devices that we use that are connected to our systems are in managed mode.
That means that it is only capable to listen all the network traffic or data packets that are coming
to our Linux machine or going out through our Linux machine.
Whereas when we put our devices in monitor mode, we are able to listen the data traffic or packets
which is not being sent to our Linux machine or our Windows machine.
This technique is generally used for wi fi cracking in which we are able to see what data packets are
being transferred from different routers around us in our range.
Make a note over here.
Not all devices support monitor mode.
So before purchasing a device, always check that it supports monitor mode or no.
Let's jump to the practical time and let's see how can we see connect wireless devices to the system,
change their sides and change the mode from managed to monitor.
Here.
You can see I'm onto my terminal.
I'm going to run the command.
If config were in, we can see two such adapters which is at zero and loopback.
I'm going to run the next command which is i w config which stands for interface wireless configuration.
Here we can see there is no wireless device that has been connected.
I have connected a wireless device just now in my system and now we can see it has been detected over
here.
You can see the mode is managed currently as we discussed and the side is off.
If you run the command I f config here we can see it also detects now our external wireless device that
has been connected to the system.
Now we are going to change the inside of the device, that is to denote and identify the wireless device
that has been connected to the system.
The command is I the blue config, the blue line zero, which is the adapter eastside and any name that
you want we can successfully see before the name was off any.
Now the name has been changed to activate.
Now let's change the mode from managed to monitor.
The command to do this.
I the blue config.
The adapter which is w len zero mode monitor.
When we do this, it gives an error.
It's because the device is currently in use and when the device is in use, we cannot change its mode.
Keep that in mind.
So we have to turn off the device first.
So we are going to take that interface down.
Using the command i f config w len zero down and now we will again run the command to put it back to
monitor mode.
And now you can see our device has successfully tuned its mode to monitor.
Now let's turn back the device using w len zero up and you can see our device is back up and running.
Let's again verify the name and the mode.
You can see the mode has been changed to monitor mode.
Now let's turn this off once again and let's change the mode back to managed using the same command.
Let's turn it back up and let's validate once more.
And you can see our external device is again in its default state of managed mode, which can be verified
from here as well.
I hope you guys understood.
Thank you.