Hello and welcome to this lecture.
So in this journey of remaining anonymous in the network will start off just sending the MAC addresses
of our machine.
So first of all we'll see what these these IP addresses and MAC addresses and what are the components
of the network first.
So let me open this picture here real quick and you will see that these pictures have these IP addresses
and MAC addresses over here.
So this MAC addresses are the components of a hardware basically it will identify each of these hardware
uniquely.
That means if you have any computer on the network each of these devices will have different MAC address
and different IP address.
So if you want to send packets basically the information packet is the collection are basically a part
of the information.
And if you want to send a packet from one piece to another P.C. in this case this can be from source
ABC to the destination P.S. It should be first based on this MAC address.
So this package will have the header and that will contain the source MAC address and destination MAC
address.
So this MAC address is very important because this is the way in which the network will be sure that
the packet will reach to the destination.
So it is very important the MAC address and the next one is IP address and we all know about the IP
address.
It is the way to remain connected in the network and the IP address within the network continuously
changes.
But the MAC address remain unique because it comes so with the hardware manufacture.
So each of these hardware manufacturer will give different IP addresses are basically the MAC addresses
not the different IP address.
It will be different MAC addresses will be assigned to each of these components are basically to the
pieces so that they will be identified uniquely so you can see it's up these components maybe the rotor
or the P.C. though you can also connect the mobile devices.
Each of these will have different MAC address or a unique MAC address so as to identify them in the
network.
So that is very important.
Now you can see that this MAC address will distract you back because this will be unique.
And that means it can track you back if you do any illegal activities through that machine.
So let's see how to change this MAC addresses temporarily or basically if you want to get into the system
that has blacklisted or basically that has just filters which will just appeal to all of the unnecessary
devices from that system.
That means you can teens to this new mac addresses so as to get into their system and just the star
system.
So there is very much the advantage of just using these maxims.
So first of all we'll see the services that is provided by the college Linux which is the Mac sensor
application and in the next upcoming letter will make our new Max sensor which is our only application
with the help of Python.
So first of all let me just go over here and now let me just show you by opening the terminal.
So this creates a new window and this window will be the new terminal over here.
So what I want to do is first of all let me just zoom in over here and now we have to make use of this
I feel config.
So it is I have config so if I just hit enter you will see these synaptic interfaces over here.
So what this network interface represents is your network card.
So if you see here you will have it with 0 and yellow and the blue line 0.
So this w land 0 is a widely see us to be adapter which I have connected externally.
You can also connected externally and you'll also see this w land 0 will have this IP addresses and
this MAC addresses.
So let me just clear this out first and you can see it has it with 0.
So this is your virtual interface that comes with this virtual box so you can just have this Internet
connection through this connector way.
So if you see here it has a wider connector.
So this interface represents that wide connection.
And this w land 0 is for the wireless connection and this is not the case that is given by the virtual
box it should be disconnected from the external USP adapter.
And basically this is wireless connect and you can see I have both of these wired and wireless so you
can see this is wireless over here so that I have this double lens 0 over here.
So let's see how we can sustain this MAC address of W land 0 which is our external USP adapter two new
one.
So let's see how we can do that.
So first of all if you want to do that we have to first of all make this interface go down.
That means we have to this terminate dissection of this double lens 0 are basically we have to stop
this network interface for now.
So in order to do that we have this command over here that is I have config w land zero which is the
interface and down is the meter in order to stop this interface.
So when it just hit into it to just do this work.
And now our interface is down.
So after you make your interface down you have to use this Max sensor meter.
And if I say help here is an attribute but if I just give the argument as a help to this Max Ensor it
will just give us some of the options that is available to the max sensor so you can see the help ops
and obviously we get this help and the version and the next one is the source so method is going to
print us the MAC address and if we just see here it has the ending it has another end the main important
part of it here is this addendum one and list 1 and the Mac.
So you can also assign your own MAC addresses by using this maxims.
You can also get the random MAC addresses by this argument you can also make this permanent MAC address
is that is reset to ordinal permanent hardware MAC.
So let's make use of this one of these apps and that is available over here using the Mac Genzer.
So just remember if you want to use this maxims or you have to first stop your interface so let's see
how we can do that.
So first of all let me just clear this one and we'll just now make use of random meter which will just
gender the random act gender.
And now I'll just say that after using this Mac Tinder as I say argument which we just assign the random
Mac to our machine and after that I have to give the interface which is the land zero.
So if I hit into now you can see the current mac address was this and the permanent was obviously the
current one but the new Mac was assigned over here.
Now after you change that MAC address you have to roll back your that interface up.
That means you have to this you start your interface again.
So in order to do that you have to just past that IP configured I have config IP config is for the windows
and I have config is for this Sculley and after that I have to the set of land zero and up.
So if you did set down it is going to the this stop that if we just type up now our interface is up
and running.
So now if I say I have config again then you will see the nude scenes in The Terminator over here which
is our mac address.
So this was a sign which is the new mac address here.
You can clearly see in this w land zero the new mac address was the same.
So this is randomly assigned you can also make you use up that set method in order to set your own MAC
addresses to this interface.
So now we'll make our Python code in order to perform this.
So we'll just see how we can this tens or basically make this Max in the application without on court.
So before doing that we have to have some logic.
So we'll see that instead of this maximizes so maximizes basically the application of the package that
comes pre installed with a college Linux and this is bundles of Python code that we don't want to have
clone on our application.
So we'll just make a logic in our own logic in order to just spark from these maxims.
So if you see here first of all in order to Justin's the Mac of any machine we have to first of all
down that interface that means again we'll just sit down and after that the new method that I'm going
to call let me just clear First the new method I'm going to call is I have config.
I have config and now I have to say again the interface with the dollar Len zero and hardware interface.
That is for years a w an eater.
So it was the argument that was associated with our interface MAC addresses.
So after users as that eater.
Now it's time to assign our new mac addresses.
So in this case as I say 0 0 1 1 2 2 3 3 3 3 4 4 and 5 5.
So this will be our mac addresses.
Now if I just hit enter and if I again roll back our though Len zero to the up and running position
and if I just see internal Get over here if I say again if config.
Then it will say we have now again since these ether which is obviously the MAC address of this interface
again to this value.
So we are not going to use the idea of the max in there but we'll just make use of this idea in our
Python code to change the MAC addresses from the ordinal one to this one or basically that is endured
by the user.
So let's see how we can just implement it to end we'll do that in the next lecture.
See you in the next one.