Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Now, like I said, the course is going to be highly practical, so I want to teach everything by example.
Therefore, we'll literally go to start programming without even covering Python basics.
We're going to cover the basics as we write our first program.
Now, the first program that I want to write is going to be a mac address changer.
Mac address stands for Media Access Control.
It's a permanent physical and unique address assigned to network interfaces by the device manufacturer.
So whether you have a wireless card or a Wired or Ethernet card, each one of these network cards come
with a specific address that is unique to this card.
So there is no two devices in the world that would have the same Mac address, and this address will
always be the same to this specific device.
Even if you unplug it from your computer, connect it to another computer, then this network device
will always have the same address.
So you might already know that the IP address is used in the internet to identify computers and communicate
between devices on the Internet.
The MAC address is used within the network to identify devices and transfer data between devices.
So each piece of data or packet that is sent within the network contains a source mark and a destination
mark.
Therefore, this packet would flow from the source mark to the destination mark.
So because this is a physical, unique address to each interface, to each network device, and because
it is used to identify devices, then changing it will make you anonymous on the network.
Not only that, but the Mac address is often used by filters to prevent or allow devices to connect
to networks and do specific tasks on the network.
So being able to change your Mac address to another device as Mac address will allow you to impersonate
this device and allow you to do things that you might not be able to do.
So you'd be able to bypass filters or connect to networks that only specific devices with specific MAC
addresses can connect to.
And you will also be able to hide your identity.
Now changing the Mac address is very, very simple.
Let me show you how to do that manually and then we'll see how we can write a program to do that.
So first of all, we can use the if config command to list all the interfaces on the current computer.
When I say interface, I mean a network card.
So right here we have ETA zero.
This is actually a virtual interface.
It's not real.
It is created by virtual box because we set this computer to use an ad network.
So remember when I said that this computer thinks it is connected to a wired network and you can see
it says Wired Connected.
And all of this is done through a virtual network and a virtual interface in here connected to that
network.
You can also see the low, which is a virtual interface created by Linux.
And I also have Land Zero, which is an external USB wireless adapter, so you might not have Land zero.
It's okay.
You don't really need it unless you want to run some of the attacks that we will do later on against
our wireless network.
So don't worry about it now.
We'll talk more about it later.
But it is not mandatory anyway.
Now other than the interfaces, the IFF config command also lists information about each one of these
interfaces.
So you can see if this interface is connected to a network, you'll see it has an IP.
You can see this one does not have an IP because it is not connected.
You can also see the net mask and the broadcast for this network and you can also see the Mac address
of this interface.
So right now, the MAC address for ETA zero is the highlighted part right here.
Same for ETA zero.
We have the Mac address in here.
Now to change this Mac address we're going to do if config.
Followed by the name of the interface that we want to change its Mac address.
So if you want to change the MAC address of eight zero, you do it at zero.
If you want to change the MAC address of zero, you would do like zero.
Now in this example, I want to do it for zero because everybody will have to zero.
Only people who have a wireless adapter will see LAN zero.
So I'm going to do it for zero so that everybody can follow this.
Then I'm going to type down to disable this interface.
So this is the first step.
We're going to disable our interface.
I'm going to hit enter and that's done.
If you don't see any errors, that means the command got executed properly.
Now that the interface is disabled, we can modify its options.
And the option that we want to modify is the other, which is the MAC address.
So I'm going to say if config.
Again, put the name of the interface that you want to modify its option, which is ETA zero.
And we're going to say, hey, w other.
And we're going to specify the new Mac address that we want to use.
So you can use any Mac address that you want.
And for example, I'm just going to use 0011, two, two, three, three, four, four, five, five.
So make sure at least 12 characters, make sure you split it using the colon and that's it.
So I'm going to hit enter.
And again, we don't see any errors.
So that means the command got executed properly and now all we have to do is enable the interface because
we disabled it using this command.
So to enable the interface we're going to do if config interface name, which is ETA zero and I'm going
to say up to enable it.
So we do down to disable the interface and up to enable it.
So I'm going to hit enter.
And again, we don't see any errors.
So that means the command got executed properly.
And the last thing that I'm going to do now is do if config again, to see if the Mac address did actually
get changed.
So I'm going to hit Enter.
And as you can see now, if we look at the other part of ETA zero, you can see that this has been changed
to 00112, two, 334455.
So as you can see, it is very easy to do that.
And like I said, this would be useful in so many scenarios.
Now, the main point why I'm showing you how to change it manually is because I want you to understand
what a mac address is, how to change it.
And then in this section, we're going to write a program that will automatically change the Mac address
for us.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.