Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:02,140 --> 00:00:09,130
Now, like I said, the course is going to be highly practical, so I want to teach everything by example.
2
00:00:09,310 --> 00:00:15,110
Therefore, we'll literally go to start programming without even covering Python basics.
3
00:00:15,130 --> 00:00:19,450
We're going to cover the basics as we write our first program.
4
00:00:19,990 --> 00:00:25,420
Now, the first program that I want to write is going to be a mac address changer.
5
00:00:25,900 --> 00:00:29,290
Mac address stands for Media Access Control.
6
00:00:29,470 --> 00:00:37,120
It's a permanent physical and unique address assigned to network interfaces by the device manufacturer.
7
00:00:37,420 --> 00:00:44,320
So whether you have a wireless card or a Wired or Ethernet card, each one of these network cards come
8
00:00:44,320 --> 00:00:47,920
with a specific address that is unique to this card.
9
00:00:47,920 --> 00:00:54,250
So there is no two devices in the world that would have the same Mac address, and this address will
10
00:00:54,250 --> 00:00:57,630
always be the same to this specific device.
11
00:00:57,640 --> 00:01:03,460
Even if you unplug it from your computer, connect it to another computer, then this network device
12
00:01:03,460 --> 00:01:06,250
will always have the same address.
13
00:01:07,320 --> 00:01:15,240
So you might already know that the IP address is used in the internet to identify computers and communicate
14
00:01:15,240 --> 00:01:17,160
between devices on the Internet.
15
00:01:17,670 --> 00:01:25,320
The MAC address is used within the network to identify devices and transfer data between devices.
16
00:01:26,230 --> 00:01:33,760
So each piece of data or packet that is sent within the network contains a source mark and a destination
17
00:01:33,760 --> 00:01:34,360
mark.
18
00:01:34,630 --> 00:01:40,030
Therefore, this packet would flow from the source mark to the destination mark.
19
00:01:40,750 --> 00:01:48,340
So because this is a physical, unique address to each interface, to each network device, and because
20
00:01:48,340 --> 00:01:54,580
it is used to identify devices, then changing it will make you anonymous on the network.
21
00:01:55,420 --> 00:02:02,110
Not only that, but the Mac address is often used by filters to prevent or allow devices to connect
22
00:02:02,110 --> 00:02:05,700
to networks and do specific tasks on the network.
23
00:02:05,710 --> 00:02:11,740
So being able to change your Mac address to another device as Mac address will allow you to impersonate
24
00:02:11,740 --> 00:02:16,750
this device and allow you to do things that you might not be able to do.
25
00:02:16,750 --> 00:02:23,470
So you'd be able to bypass filters or connect to networks that only specific devices with specific MAC
26
00:02:23,470 --> 00:02:25,030
addresses can connect to.
27
00:02:25,030 --> 00:02:28,210
And you will also be able to hide your identity.
28
00:02:29,200 --> 00:02:32,020
Now changing the Mac address is very, very simple.
29
00:02:32,050 --> 00:02:37,960
Let me show you how to do that manually and then we'll see how we can write a program to do that.
30
00:02:38,620 --> 00:02:46,240
So first of all, we can use the if config command to list all the interfaces on the current computer.
31
00:02:46,780 --> 00:02:50,290
When I say interface, I mean a network card.
32
00:02:50,710 --> 00:02:53,710
So right here we have ETA zero.
33
00:02:54,010 --> 00:02:56,590
This is actually a virtual interface.
34
00:02:56,590 --> 00:02:57,620
It's not real.
35
00:02:57,640 --> 00:03:03,850
It is created by virtual box because we set this computer to use an ad network.
36
00:03:04,510 --> 00:03:10,720
So remember when I said that this computer thinks it is connected to a wired network and you can see
37
00:03:10,720 --> 00:03:12,340
it says Wired Connected.
38
00:03:12,670 --> 00:03:19,630
And all of this is done through a virtual network and a virtual interface in here connected to that
39
00:03:19,630 --> 00:03:20,350
network.
40
00:03:21,370 --> 00:03:25,720
You can also see the low, which is a virtual interface created by Linux.
41
00:03:25,720 --> 00:03:35,020
And I also have Land Zero, which is an external USB wireless adapter, so you might not have Land zero.
42
00:03:35,050 --> 00:03:35,800
It's okay.
43
00:03:35,800 --> 00:03:41,710
You don't really need it unless you want to run some of the attacks that we will do later on against
44
00:03:41,710 --> 00:03:43,000
our wireless network.
45
00:03:43,390 --> 00:03:44,890
So don't worry about it now.
46
00:03:44,890 --> 00:03:46,600
We'll talk more about it later.
47
00:03:46,600 --> 00:03:49,060
But it is not mandatory anyway.
48
00:03:49,970 --> 00:03:57,440
Now other than the interfaces, the IFF config command also lists information about each one of these
49
00:03:57,440 --> 00:03:58,460
interfaces.
50
00:03:59,360 --> 00:04:05,090
So you can see if this interface is connected to a network, you'll see it has an IP.
51
00:04:05,600 --> 00:04:09,230
You can see this one does not have an IP because it is not connected.
52
00:04:10,190 --> 00:04:18,230
You can also see the net mask and the broadcast for this network and you can also see the Mac address
53
00:04:18,230 --> 00:04:19,829
of this interface.
54
00:04:19,850 --> 00:04:25,430
So right now, the MAC address for ETA zero is the highlighted part right here.
55
00:04:26,340 --> 00:04:28,260
Same for ETA zero.
56
00:04:28,260 --> 00:04:30,330
We have the Mac address in here.
57
00:04:31,590 --> 00:04:35,610
Now to change this Mac address we're going to do if config.
58
00:04:37,000 --> 00:04:42,120
Followed by the name of the interface that we want to change its Mac address.
59
00:04:42,130 --> 00:04:46,990
So if you want to change the MAC address of eight zero, you do it at zero.
60
00:04:47,020 --> 00:04:51,790
If you want to change the MAC address of zero, you would do like zero.
61
00:04:52,870 --> 00:04:58,840
Now in this example, I want to do it for zero because everybody will have to zero.
62
00:04:58,870 --> 00:05:02,150
Only people who have a wireless adapter will see LAN zero.
63
00:05:02,170 --> 00:05:06,670
So I'm going to do it for zero so that everybody can follow this.
64
00:05:07,800 --> 00:05:12,270
Then I'm going to type down to disable this interface.
65
00:05:12,360 --> 00:05:13,970
So this is the first step.
66
00:05:13,980 --> 00:05:16,650
We're going to disable our interface.
67
00:05:17,600 --> 00:05:19,910
I'm going to hit enter and that's done.
68
00:05:19,940 --> 00:05:24,620
If you don't see any errors, that means the command got executed properly.
69
00:05:25,460 --> 00:05:29,960
Now that the interface is disabled, we can modify its options.
70
00:05:29,960 --> 00:05:35,090
And the option that we want to modify is the other, which is the MAC address.
71
00:05:36,080 --> 00:05:38,900
So I'm going to say if config.
72
00:05:39,660 --> 00:05:44,910
Again, put the name of the interface that you want to modify its option, which is ETA zero.
73
00:05:46,070 --> 00:05:49,970
And we're going to say, hey, w other.
74
00:05:50,760 --> 00:05:54,990
And we're going to specify the new Mac address that we want to use.
75
00:05:55,200 --> 00:05:58,120
So you can use any Mac address that you want.
76
00:05:58,140 --> 00:06:07,440
And for example, I'm just going to use 0011, two, two, three, three, four, four, five, five.
77
00:06:08,190 --> 00:06:14,430
So make sure at least 12 characters, make sure you split it using the colon and that's it.
78
00:06:15,550 --> 00:06:17,020
So I'm going to hit enter.
79
00:06:18,130 --> 00:06:19,900
And again, we don't see any errors.
80
00:06:19,900 --> 00:06:27,940
So that means the command got executed properly and now all we have to do is enable the interface because
81
00:06:27,940 --> 00:06:30,220
we disabled it using this command.
82
00:06:31,120 --> 00:06:38,620
So to enable the interface we're going to do if config interface name, which is ETA zero and I'm going
83
00:06:38,620 --> 00:06:40,840
to say up to enable it.
84
00:06:41,050 --> 00:06:45,730
So we do down to disable the interface and up to enable it.
85
00:06:46,580 --> 00:06:48,050
So I'm going to hit enter.
86
00:06:48,200 --> 00:06:50,020
And again, we don't see any errors.
87
00:06:50,240 --> 00:06:53,180
So that means the command got executed properly.
88
00:06:53,270 --> 00:07:00,470
And the last thing that I'm going to do now is do if config again, to see if the Mac address did actually
89
00:07:00,470 --> 00:07:01,460
get changed.
90
00:07:01,970 --> 00:07:03,500
So I'm going to hit Enter.
91
00:07:04,070 --> 00:07:11,360
And as you can see now, if we look at the other part of ETA zero, you can see that this has been changed
92
00:07:11,360 --> 00:07:15,560
to 00112, two, 334455.
93
00:07:16,600 --> 00:07:19,720
So as you can see, it is very easy to do that.
94
00:07:19,750 --> 00:07:24,010
And like I said, this would be useful in so many scenarios.
95
00:07:24,700 --> 00:07:30,340
Now, the main point why I'm showing you how to change it manually is because I want you to understand
96
00:07:30,340 --> 00:07:33,220
what a mac address is, how to change it.
97
00:07:33,220 --> 00:07:39,580
And then in this section, we're going to write a program that will automatically change the Mac address
98
00:07:39,580 --> 00:07:40,510
for us.
9843
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.