WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.400 --> 00:00:05.700
Hi.

1
00:00:06.600 --> 00:00:09.000
So in this lesson, we are going

2
00:00:09.800 --> 00:00:13.100
 to learn and understand about iwconfig.

3
00:00:13.700 --> 00:00:16.200
where I W stands for

4
00:00:16.200 --> 00:00:17.900
 interface Wireless

5
00:00:19.100 --> 00:00:22.800
So anytime you connect any wireless device

6
00:00:22.800 --> 00:00:23.900
 into your computer.

7
00:00:24.800 --> 00:00:27.500
So let's say our data dongle,

8
00:00:27.500 --> 00:00:30.800
 which is used to connect your system to our Wi-Fi

9
00:00:30.800 --> 00:00:31.300
 point.

10
00:00:32.700 --> 00:00:36.000
You can see the IP address of

11
00:00:35.900 --> 00:00:39.000
 that specific device using IW

12
00:00:38.000 --> 00:00:39.600
 config.

13
00:00:40.200 --> 00:00:43.800
It is very much similar to ifconfig, which

14
00:00:43.800 --> 00:00:45.100
 is interface configuration.

15
00:00:46.100 --> 00:00:49.800
But here you can specifically see all the

16
00:00:49.800 --> 00:00:52.700
 wireless devices connected to your host machine.

17
00:00:54.500 --> 00:00:58.200
Now if you want you can change the E SSID

18
00:00:57.200 --> 00:01:00.700
 name through which you can denote

19
00:01:00.700 --> 00:01:03.700
 an identify that specific wireless

20
00:01:03.700 --> 00:01:07.400
 device that is connected to your host using a

21
00:01:06.400 --> 00:01:09.800
 name which is known as esid name.

22
00:01:11.300 --> 00:01:15.100
Also, we will see how can we change the mode of

23
00:01:14.100 --> 00:01:17.600
 the wireless device that has been connected to our

24
00:01:17.600 --> 00:01:20.900
 system from managed to monitor mode?

25
00:01:21.600 --> 00:01:24.200
Now what is the difference between managed mode

26
00:01:24.200 --> 00:01:25.300
 and monitor mode?

27
00:01:26.200 --> 00:01:30.000
By default all the wireless devices that we use that

28
00:01:29.400 --> 00:01:32.100
 are connected to our systems are in

29
00:01:32.100 --> 00:01:35.200
 managed mode. That means that it is

30
00:01:35.200 --> 00:01:37.200
 only capable to listen.

31
00:01:38.400 --> 00:01:41.800
All the network traffic or data packets that

32
00:01:41.800 --> 00:01:44.300
 are coming to our Linux machine or going

33
00:01:44.300 --> 00:01:46.100
 out through our Linux machine.

34
00:01:47.100 --> 00:01:51.100
Whereas when we put our devices in monitor

35
00:01:50.100 --> 00:01:51.200
 mode?

36
00:01:51.800 --> 00:01:53.500
We are able to listen.

37
00:01:54.500 --> 00:01:57.900
The data traffic or packets, which

38
00:01:57.900 --> 00:02:01.100
 is not being sent to our Linux

39
00:02:00.100 --> 00:02:02.600
 machine or our Windows machine.

40
00:02:03.500 --> 00:02:06.800
This technique is generally used for

41
00:02:06.800 --> 00:02:09.500
 Wi-Fi cracking in which we

42
00:02:09.500 --> 00:02:12.500
 are able to see what data packets are being transferred

43
00:02:12.500 --> 00:02:15.700
 from different routers around us in

44
00:02:15.700 --> 00:02:16.400
 our range.

45
00:02:18.600 --> 00:02:22.500
Make a note over here. Not all devices support

46
00:02:21.500 --> 00:02:24.800
 monitor mode. So before

47
00:02:24.800 --> 00:02:27.400
 purchasing a device always check

48
00:02:27.400 --> 00:02:30.200
 that it supports monitor mode or no?

49
00:02:31.500 --> 00:02:34.200
Let's jump to the Practical time. And let's see.

50
00:02:34.200 --> 00:02:38.200
 How can we see connect wireless devices

51
00:02:37.200 --> 00:02:41.000
 to the system change their ESS

52
00:02:40.700 --> 00:02:42.100
 IDs and

53
00:02:43.100 --> 00:02:46.800
change the mode from managed to monitor.

54
00:02:50.300 --> 00:02:53.500
Here you can see I'm onto my terminal. I'm going

55
00:02:53.500 --> 00:02:56.400
 to run the command ifconfig wherein we

56
00:02:56.400 --> 00:02:59.600
 can see two such adapters, which

57
00:02:59.600 --> 00:03:02.000
 is ET h0 and loopback.

58
00:03:02.800 --> 00:03:05.700
I'm going to run the next command, which

59
00:03:05.700 --> 00:03:08.200
 is IW config which stands

60
00:03:08.200 --> 00:03:10.600
 for interface Wireless configuration.

61
00:03:11.300 --> 00:03:14.900
Here we can see there is no wireless device

62
00:03:14.900 --> 00:03:15.800
 that has been connected.

63
00:03:16.600 --> 00:03:20.400
I have connected a wireless device just now in

64
00:03:19.400 --> 00:03:22.100
 my system and now we can

65
00:03:22.100 --> 00:03:24.400
 see it has been detected over here.

66
00:03:25.700 --> 00:03:29.000
You can see the mode is managed currently as

67
00:03:28.100 --> 00:03:31.700
 we discussed and the E SSID is

68
00:03:31.700 --> 00:03:32.100
 off.

69
00:03:33.200 --> 00:03:36.100
If it in the command I have config here we can

70
00:03:36.100 --> 00:03:39.600
 see it also detects now our external wireless

71
00:03:39.600 --> 00:03:41.700
 device that has been connected to the system.

72
00:03:43.700 --> 00:03:47.200
Now we are going to change the ESS ID

73
00:03:46.200 --> 00:03:49.300
 of the device that is to

74
00:03:49.300 --> 00:03:52.500
 denote and identify the wireless device

75
00:03:52.500 --> 00:03:54.500
 that has been connected to the system.

76
00:03:55.100 --> 00:03:58.800
The command is iwconfig wlens 0

77
00:03:58.800 --> 00:04:01.900
 which is the adapter essid and

78
00:04:01.900 --> 00:04:03.000
 any name that you want.

79
00:04:03.800 --> 00:04:06.500
We can successfully see before the name was off

80
00:04:06.500 --> 00:04:09.200
 any now the name has been changed to

81
00:04:09.200 --> 00:04:10.300
 hackify.

82
00:04:11.300 --> 00:04:14.700
Now, let's change the mode from managed to

83
00:04:14.700 --> 00:04:15.500
 monitor.

84
00:04:16.500 --> 00:04:20.100
The command to do this is iwconfig the

85
00:04:19.100 --> 00:04:22.400
 adapter which SW line 0

86
00:04:22.400 --> 00:04:24.200
 mode monitor.

87
00:04:24.900 --> 00:04:28.000
When we do this, it gives the error it's

88
00:04:27.300 --> 00:04:30.800
 because the device is currently in use

89
00:04:30.800 --> 00:04:33.700
 and when the device is in use we

90
00:04:33.700 --> 00:04:36.400
 cannot change its mode keep that

91
00:04:36.400 --> 00:04:36.900
 in mind.

92
00:04:37.700 --> 00:04:40.700
So we have to turn off the device first. So

93
00:04:40.700 --> 00:04:43.900
 we are going to take that interface down using the

94
00:04:43.900 --> 00:04:46.600
 command ifconfig wlan0 down

95
00:04:46.600 --> 00:04:49.100
 and now we will again run the command

96
00:04:49.100 --> 00:04:52.100
 to put it back to monitor mode and now you

97
00:04:52.100 --> 00:04:54.400
 can see our device has successfully.

98
00:04:55.800 --> 00:04:58.100
Turned. It's more to monitor.

99
00:04:59.100 --> 00:05:03.800
Now let's turn back the device using wln0

100
00:05:02.800 --> 00:05:05.000
 up and you can

101
00:05:05.100 --> 00:05:09.000
 see our device is back up and running. Let's again

102
00:05:08.800 --> 00:05:11.100
 verify the name and the

103
00:05:11.100 --> 00:05:14.100
 mode you can see the more has been

104
00:05:14.100 --> 00:05:16.600
 changed to monitor mode.

105
00:05:18.400 --> 00:05:20.500
Now let's turn this off once again.

106
00:05:21.600 --> 00:05:24.800
And let's change the mode back to managed.

107
00:05:25.500 --> 00:05:28.500
Using the same command. Let's turn it back

108
00:05:28.500 --> 00:05:29.100
 up.

109
00:05:30.100 --> 00:05:33.100
And let's validate once more and you can

110
00:05:33.100 --> 00:05:37.000
 see our external device is again in its

111
00:05:36.500 --> 00:05:39.400
 default state of managed mode,

112
00:05:39.400 --> 00:05:41.700
 which can be verified from here as well.

113
00:05:43.100 --> 00:05:45.200
I hope you guys understood. Thank you.
