1
00:00:00,920 --> 00:00:01,640
Hi.

2
00:00:02,120 --> 00:00:12,920
So in this lesson we are going to learn and understand about i w config where I w stands for interface

3
00:00:12,920 --> 00:00:13,940
wireless.

4
00:00:14,570 --> 00:00:23,510
So any time you connect any wireless device into your computer, so let's say a data dongle which is

5
00:00:23,510 --> 00:00:33,530
used to connect your system to our wi fi point, you can see the IP address of that specific device

6
00:00:33,530 --> 00:00:35,270
using i w config.

7
00:00:35,840 --> 00:00:41,090
It is very much similar to i f config which is interface configuration.

8
00:00:41,450 --> 00:00:48,650
But here you can specifically see all the wireless devices connected to your host machine.

9
00:00:50,060 --> 00:00:58,850
Now if you want, you can change the side name through which you can denote and identify that specific

10
00:00:58,850 --> 00:01:05,600
wireless device that is connected to your host using a name which is known as E as a side name.

11
00:01:06,590 --> 00:01:12,950
Also, we will see how can we change the mode of the wireless device that has been connected to our

12
00:01:12,950 --> 00:01:16,670
system from managed to monitor mode?

13
00:01:17,270 --> 00:01:21,080
Now what is the difference between managed mode and monitor mode?

14
00:01:21,710 --> 00:01:28,910
By default, all the wireless devices that we use that are connected to our systems are in managed mode.

15
00:01:29,120 --> 00:01:38,000
That means that it is only capable to listen all the network traffic or data packets that are coming

16
00:01:38,000 --> 00:01:41,900
to our Linux machine or going out through our Linux machine.

17
00:01:42,670 --> 00:01:53,080
Whereas when we put our devices in monitor mode, we are able to listen the data traffic or packets

18
00:01:53,080 --> 00:01:58,480
which is not being sent to our Linux machine or our Windows machine.

19
00:01:59,020 --> 00:02:07,300
This technique is generally used for wi fi cracking in which we are able to see what data packets are

20
00:02:07,300 --> 00:02:12,280
being transferred from different routers around us in our range.

21
00:02:14,110 --> 00:02:15,550
Make a note over here.

22
00:02:15,580 --> 00:02:19,710
Not all devices support monitor mode.

23
00:02:19,720 --> 00:02:25,960
So before purchasing a device, always check that it supports monitor mode or no.

24
00:02:27,070 --> 00:02:34,930
Let's jump to the practical time and let's see how can we see connect wireless devices to the system,

25
00:02:34,960 --> 00:02:42,310
change their sides and change the mode from managed to monitor.

26
00:02:45,910 --> 00:02:46,150
Here.

27
00:02:46,150 --> 00:02:48,580
You can see I'm onto my terminal.

28
00:02:48,610 --> 00:02:50,060
I'm going to run the command.

29
00:02:50,080 --> 00:02:57,790
If config were in, we can see two such adapters which is at zero and loopback.

30
00:02:58,450 --> 00:03:06,460
I'm going to run the next command which is i w config which stands for interface wireless configuration.

31
00:03:06,820 --> 00:03:11,800
Here we can see there is no wireless device that has been connected.

32
00:03:12,100 --> 00:03:19,750
I have connected a wireless device just now in my system and now we can see it has been detected over

33
00:03:19,750 --> 00:03:20,230
here.

34
00:03:21,240 --> 00:03:28,050
You can see the mode is managed currently as we discussed and the side is off.

35
00:03:28,780 --> 00:03:35,820
If you run the command I f config here we can see it also detects now our external wireless device that

36
00:03:35,820 --> 00:03:37,530
has been connected to the system.

37
00:03:39,300 --> 00:03:48,090
Now we are going to change the inside of the device, that is to denote and identify the wireless device

38
00:03:48,090 --> 00:03:50,250
that has been connected to the system.

39
00:03:50,670 --> 00:03:58,290
The command is I the blue config, the blue line zero, which is the adapter eastside and any name that

40
00:03:58,290 --> 00:04:03,310
you want we can successfully see before the name was off any.

41
00:04:03,330 --> 00:04:05,760
Now the name has been changed to activate.

42
00:04:06,780 --> 00:04:11,280
Now let's change the mode from managed to monitor.

43
00:04:12,120 --> 00:04:13,630
The command to do this.

44
00:04:13,920 --> 00:04:15,360
I the blue config.

45
00:04:15,360 --> 00:04:19,890
The adapter which is w len zero mode monitor.

46
00:04:20,430 --> 00:04:22,950
When we do this, it gives an error.

47
00:04:22,980 --> 00:04:31,320
It's because the device is currently in use and when the device is in use, we cannot change its mode.

48
00:04:31,470 --> 00:04:32,700
Keep that in mind.

49
00:04:33,210 --> 00:04:36,000
So we have to turn off the device first.

50
00:04:36,000 --> 00:04:38,820
So we are going to take that interface down.

51
00:04:38,880 --> 00:04:45,810
Using the command i f config w len zero down and now we will again run the command to put it back to

52
00:04:45,810 --> 00:04:46,770
monitor mode.

53
00:04:46,950 --> 00:04:53,850
And now you can see our device has successfully tuned its mode to monitor.

54
00:04:54,450 --> 00:05:03,330
Now let's turn back the device using w len zero up and you can see our device is back up and running.

55
00:05:03,600 --> 00:05:07,530
Let's again verify the name and the mode.

56
00:05:07,740 --> 00:05:12,330
You can see the mode has been changed to monitor mode.

57
00:05:13,850 --> 00:05:22,640
Now let's turn this off once again and let's change the mode back to managed using the same command.

58
00:05:22,670 --> 00:05:27,890
Let's turn it back up and let's validate once more.

59
00:05:27,890 --> 00:05:36,380
And you can see our external device is again in its default state of managed mode, which can be verified

60
00:05:36,380 --> 00:05:37,580
from here as well.

61
00:05:38,840 --> 00:05:40,250
I hope you guys understood.

62
00:05:40,280 --> 00:05:41,090
Thank you.
