Let's talk about the man in the middle attack so you can see this picture represents your network and
this private represents that is the within the some area or within some network.
So the first gateway or a first subnet will be your default gateway and this dot 20 and Dot 21 other
clients that is connected to this network.
So to send an IP packet to any network device the sender needs to know the IP addresses of the destination
device that addresses will be assigned to get the data packet to the final network segment.
So in order to deliver the package to the final destination the MAC addresses of that destination computer
must be known.
And there is a protocol on IS A R P protocol which stands for address Reg Lucent protocol always uses
an Internet broadcast to query the N on the network.
So basically it will axe something like weeds nor are weeds computer has the IP addresses and that will
just say Send me your IP addresses or send me your mac addresses if anyone has these IP addresses.
And the node that has this sort in IP addresses will just the response to that request and other will
simply ignore that So the connection is between that network client and the server only by the IP protocol
which is address resolution protocol.
So you can see how important it is the MAC address to the domain the correctness of your information.
So basically the information will be delivered back to that client on the basis of that macro basis.
So the data the final data frame will look like something.
This it will just contain the header and the data.
So data is your portion of our data and there is a header which contains your destination MAC addresses
so as to confirm that this data frame is delivered to that particular computer or to particular node
that is connected to network.
So let's now see the man in the middle.
So we just get the basics about the ADP protocol.
Now let's see this man in the middle floor.
So this is the normal floor.
So client will just request some pace and server is just surrender that.
So this is your normal floor and there is a man in the middle and this man in the middle is basically
a hacker.
And basically what happens is instead of just sending data or sending requests to directly to the server
it will be sent from this hacker machine.
So we have a little tool in order to send the correct information to the client or in order to send
correct the request to the server.
It allows us to see the MAC addresses.
So what we'll do is we'll just sends this.
This is to the MAC addresses of these missing.
So our machine will be calling Linux and we'll just since the galley Linux MAC addresses to be the client
MAC addresses.
And so what happens is now the server will not send directly to client is did it to send to this.
The packet will be sent based on that MAC addresses so that we have since the MAC address is now two
of this client to be the MAC addresses of this person.
So instead of sending the responses directly to the client it would send from here.
And will also connect now to this client from here.
That means the request and responses are from this man in the middle.
That means we are now hacker will just stress every packet that is sent and received from the server
to the client and we'll analyze that using the wires are will do so much of his stuff like using the
screen sort or using to inject the key logger.
So that will be done in the upcoming lecture.
We'll see all the framework all the argument that is given with this man in the middle framework so
you can see that clear example of this man in the middle with this picture.
So the hacker in here is impersonating both side of the conversation to gain the access to the phones.
So this example holds true for a conversation with the client and the server is always person to person
conversation.
In this example we saw that the attacker intercepts a public key.
And with that public debt can transpose his own credentials to treat the people on either into believing
that they are talking to the another securely so you can clearly see it has sent over your key.
That means the man in the middle will send your key and they will edge him that this victim will assume
that they are just communicating with each other but instead they're just going to this man.
So at last it was this crack every information of this victim so that the fund will be into his account
and not in to his or basically not into either of these accounts.
It will be only on this man in the middle.
So basically it is the interceptor.
It will get every information through it.
That means it will just get every access to the information that is sent over the network.
So this is the man in the middle.
We'll see now that how this man in the middle framework works in live action.
So that will be covered in the next leaks.
And that will be done with the help of Kelly Linux.
So see you in the next one.