Hello everyone and welcome to part five of my lean ethical hacking COURSE.
AND THIS PROBABLY GONNA LOOK I WANT A MAC addresses and how to change it.
So like I said in the introduction of this course I need to go buy yourself a 300 MBP yes USP wireless
adapter which will connect to your host device.
Externally it's important that it's external so that's why I'm recommended and USP adapter.
The reason for this is we need to use this card as the one that captures a little packets and we're
going to use this as the attacking.
Basically think of it like the device that we use to attack the network or pin test the network with
the.
The other reason is when you use in a virtual machine your virtual machine will not recognize internal
wireless cards.
So that's why it has to be plugged in via a USB port externally but not expensive.
There are only about five six pounds on eBay bill.
If you want to continue with the network pen testing then you have to go and buy one.
However you can still follow along but it won't be the same.
If you haven't got one you can skip to the next part so you're not missing out on the whole cause.
The only part you won't be able to do is the network penetration testing anyway.
If you've got one and you've put it in then you can continue.
So each network card the one that you've just plugged in or ESB adapter all have a physical static address
assigned by the card's manufacturer.
This is called the MAC address and it sends for a media access control.
So the MAC address is basically used by the devices to identify each other and transfer packets.
So in the previous video I was talking about the save at the router sending packets with the sensitive
information back and forth from the router to the computer.
Now all these devices will have mac addresses and they'll have a source my address and a destination
MAC address.
So when you send a request through the Internet from your you say from from your USP wireless adapter
that will have a source MAC address and then the destination MAC address will be the the routed that
your connecting to and when you send a request from the US the wireless USP adapter to go to Web sites
then then packets will have to go to the correct destination.
And this is done by matching the destination MAC address with the pockets
so if we open up Kalil and looks now I'm going to show you how to change your MAC address.
And the reason for changing.
So now that we've opened Carly Lennox we can actually start to change the MAC address.
But firstly we need to get your wireless USP adapter directly connected to your virtual machine.
Since to do so I'm going to go to VM go through removable devices.
And here it will display all of the devices connected externally to your host devices USB ports.
So for example this snowball is my microphone but obviously I don't want to disconnect that from the
host because you I wouldn't be able to talk right now.
I know this one at the top is my wireless ISP adapter so I want to connect it directly to the virtual
machine.
So I'm just going to click on connect.
Give it a few seconds you should hear a strange noise.
That way you know it's done.
Well if you go up to this little icon here and this should be a new dropdown list that says Wi-Fi not
connected.
If you click on this dropdown and click select a network as you can see here it says no networks for
people.
If it says that for you give it a few seconds and then network should finally appear.
So these are old routers in my local area that I can pick up I can just click on any of them and click
connect and at last for the Wi-Fi key.
But obviously that's not the point of the video I'm not going to do that in this one.
So click cancel.
That's just to show that or to let you know that your Wi-Fi your wireless your ISP adapter is actually
working correctly.
So once that's done you can actually get on with changing your MAC address.
So just open terminal which should be a neat little show called toolkit here.
I'm going to click view zoom in and just zoom in a few times you don't have to do this bill.
It might come up a little bit small on the video.
The text will be anyway.
Now we're going to learn how to manipulate the card and change its Mac address.
So there's a few commands.
So this idea you can't fake if you enter the click enter you should see all the wireless cards.
Now obviously it's going to show up to that and no one on no wireless extensions or nonviolence extensions.
And one that is the W land zero is my wireless card.
It's currently not connected to any networks but it's actually shown it because it's connected directly
to the virtual machine.
Now to change the MAC address we need to actually disable the wireless card.
Think of it like when you install a new application or on windows you go to the BIOS and you changed
some settings and it says please restart for changes to take effect.
It's similar in that case that we have to disable a wireless card.
Make changes and then enable it again.
So to disable it we're going to do I f conflict not I w the difference between I f config and I w conflict
is that I w config only deals with the wireless elements of a wireless card such as the E SSA I.D. on
the W E P keys but all the normal attributes of the network card such as the IP address and the sudden
that masks a role assigned through the I f config.
So if you do I f config w land 0 which is the not zero which is the name of my wireless card I'm going
to disable it.
So you want to just put down at the end of it.
So once you click enter it should disable the card.
I won't tell you it's disabled but once it does and there's no errors that come up then you know it's
disabled correctly.
Next is Mark change.
So if you take Mark change you without a space so it's a C C H A N G E R but no spaces then do hyphen
hyphen help click enter and you should see this which is just a list of all the commands she can do
with Mark change.
We're only going to focus our attention on a few of them.
So if you look at this one here permanent permanent we'll reset it to the original Mac address that
was assigned by the manufacturer.
So if you change your mac address and you want to go back to the original one you can do so and don't
lose your mac address forever or your original Mac address you don't lose it you can go back to it random
as well I'm going to show you in this video but this also hyphen and now the main reason for changing
the MAC address would be to for example say there was a secret network.
So the three laptops or connected to a router on a secret network that router has a white list in that
white list it's got three MAC addresses so the three MAC address this correspond to the each of them
laptops and it only accepts them MAC addresses to connect to it.
So that's why it's like a secret life saver or network but if you wanted access to it and you just tried
to connect to it it would reject you because you don't have a mac address that is on that white list
Bill if you found out one of their MAC addresses of them laptops that are allowed to connect to the
network then you can actually just change your U.S. wireless USP devices MAC address directly to them
or copy it basically you just copy in the MAC address that's allowed onto the secret network which I
think is the most useful part of it because then once you change your mac address to one that's on the
white list and you try to connect to the network again it will accept you because he thinks anger on
this MAC address is actually allowed.
It's not.
It's on the white list.
Well obviously you're not the person who's should be allowed on a.
It's just you're basically just checking the server.
But we're not going to do any of that.
We're just going to change it randomly or to a random different MAC address.
So to do so I'm going to type Mark change and then hyphen hyphen random which is that and then the name
of the card so w land 0 click enter.
And as you can see it's says current Mac permanent mac address which was set by the manufacturer and
then the new mac address.
So that say we just change the MAC address.
But if we remember we disabled the card so to enable it we need to do I have config w lan 0 up instead
of down it's OK.
So you click enter give her a second and that enables the card again.
So if we go back up to this go back to why find six clicks on a network.
As you can see it allows you to connect or search for networks so we know the constant working no.
And it's it's it's actually enabled.
So that was a that's how to change your mac address.
As you can see here this is the new mac address.
But the main reason for changing MAC addresses is like I said before with the waitlists for secret savers
or secret routers et cetera.
And so that's a let's say for this video in the next video we're going to look at different wireless
modes.
But if this video did help please like comments subscribe for the latest content and I will see you
in the next video.