Welcome to this selective so in the previous lecture.
We just strived to make this a net discover.
So basically what we did was we just made a use of this escapee module to do that.
So in the escape module we just made use of this simple method which is our being matter which will
this pretty much scan all of these clients and get them make addresses.
But in this lecture we are going to do this manually so first of all we have to just create the entropy
request we'll send it to the broadcast to MAC addresses and we'll just commandoes back it and see the
responses of the packet.
So one thing what I want you to see here is this massive nobody is showing that it has received 2 Two
packets and got to answer.
So that means there will be the responses like answers and unanswered.
That means we can make a use of these responses to list out these MAC addresses.
So in this lecture we're going to do pretty much that.
So.
So if we just see here in this figure what do we have.
Is this client.
So this is us basically so what we are going to do in this lecture is we're going to make a repeated
quiz saying that who has these a bunch of IP address which is inside these subnet list which is obviously
you can see what we just have over here.
So this will be the IP that will be sent.
They are requested by this client.
After that we're going to give this to the broadcast MAC address.
So instead of just giving this our request to Klein's directly we are going to give this a request to
Mac broadcast or broadcast MAC address because this is going to give this ADP request to everyone and
this ADP request will have the IP addresses of each of these client and that will just give us the responses
in the form of MAC address back to us.
That means we'll just achieve IP addresses and MAC addresses of ease of decline that is connected to
this network.
So let's do that.
So first of all as I've already said.
So first tasks will be to clear the air request so you can see now we have to modify this quarter were
here.
So first of all let's see how we can this modified and we can just make use of this call.
So first of all we have to make use of these kind of class or basically scanner function.
So next is to create the request.
So I'll say it is a request.
Obviously it our request.
So in order to create this request it is done by this ERP plus.
So let's make use of these air partners.
And now this is all too clear the request in Python.
So it is very much it.
So users make use of this Arabic class to create the request.
So next thing you can see is the sprint.
The summary first so let's see the summary.
So somebody will give the brief information about this request.
So let's see let's run these main module and let's see what this works.
So let me give her time it'll take some time so it has on that.
Yeah.
Be who has none says that this IP address so if I just open this BMD which is going to be my command
prompt to see my gateway so you can see here this is a wireless LAN Adapter and this is my IP address.
So that means that this ADP request was done from this IP address.
So we have successfully created the ad request.
Now next thing what you need to see here is the broadcast so broadcast is to send to the broadcast the
MAC address liability.
So when you before these tapes.
So first of all will discredit the AARP request which we just created.
So next is to send or basically to get that broadcast MAC address because that broadcast MAC address
is going to send this ATP request to every client.
So let's make that broadcast now.
So first of all let's go again to our editor.
And here are the same broadcast
so in this broadcast you have to create the broadcast from escapee and we have the entire framework
to do that.
So this entire framework will create the broadcast for us.
So now next thing what you need to see here is to give the destination MAC address so what we just learned
from here in this figure is first of all it's always will create the Arabic request and send that Arabic
was to broadcast a MAC address.
So here in order to this a sign that broadcast a Makris we have to learn about the arguments for us.
So let's see what are the arguments that is given by the escape module.
So in order to see those lists of argument we have to make use of DHS funding.
And as I say Skippy we won the argument or the attribute of this entire module.
So that should be ether.
And now if I just run this you'll see the list of attributes printed right over here.
So it.
Give it time to run so you can see we have here that is DST.
Yes I see in a type argument.
So you can see this DST is the destination MAC field which is what we just need because I already say
to you that this ERP request which we just created over here should be sent to this destination MAC
field which is obviously the MAC address of the broadcast.
So this is the MAC address of the broadcast.
So first of all we have to make use of this DST.
So the way to do that is first of all you have to this use this broadcast and give that attribute that
is DST.
And in that DSD you have to pass this MAC address which is obviously your virtual MAC address.
So it is given right here.
That is the.
Yes.
If that is six times so let me just copy this and go back here and let me just spaced it.
So this is the way to just assign these a broadcast a MAC address.
That means now we have created our request which is the first part.
So I have say here our request is created.
So next one was broadcast Mac.
So the next thing what you need to learn is to send this packet and this broadcast to the broadcast
MAC address.
So let's see how we can do that.
So first of all let me just remove this because this is going to source the sum of the attribute that
we just need.
And we only need this DST MAC address because this source is us.
So this is mac address of my P.C..
That means we don't need this.
We just want this broadcast Mac.
So let me just remove this line of code right from here or you can also comment this out.
And after that we'll just see some of the information that is given by the broadcast.
So let's see first.
So how we can do that is we can this print the summary first.
So if I say broadcast at somebody's
so let's see the summary of the broadcast first.
If I just sit on these men and let me just make here and it has given the information saying that this
is the source MAC address that is our mac address.
We had this IP address and it is thus sending the packet to this MAC address which is obviously the
broadcast of MAC address.
This MAC address is going to send this ATP request to every line that is connected to this network.
So this is the one step that we just did here.
We just submitted the use of this air request had to be closed to create the request and we just now
made the broadcast a MAC address to be just working on this situation.
That means we have to now combine this request with this broadcast and we have to send this over the
network which will be done in the next lecture.
So before that I want to make you clear about the some of these requests.
So first let me.
So instead of the summary let's clear this out and I want to this make use of these so matter to so
you these layers.
So I'll just say broadcast dot.
So again and I'll just remove this and if I just run this segment again then you'll see that it will
just give us some information.
And these are the same information that we have here.
And this is the HP layer and we have your internet layer which was done by this escaping module.
So this is the Internet layer you can see the destination MAC address which is all the broadcast MAC
address.
This is source MAC address and we have C D E R B packet over here.
So you has seen here who has this which is basically the way to so who has that IP addresses in the
network.
So next thing what do you need to do is we have to combine these request in the broadcast and we have
to send these over the network so to do that we have to first combine these requests.
So I say a request broadcast I just give the name again.
That is a combination of both this request and broadcast.
So in order to this combined these first of all we have to pass the broadcast and we have the special
this forward slice which is basically to combine this request and the broadcast.
So if you wonder what this is about so if you see this is not the division sign in this Skippy because
we're using this escape module and in the escapee This is the way to just combine these two packets.
So we have created now whole single packet over here.
So this is the way.
So next thing what you can do here is this again.
So this layer so this is so method again.
So let me just run this and you'll see the three layer.
Now it will have our resource request first.
So this is they had a request that we saw in the previous lecture.
This was the Internet that we just made for the broadcast MAC address.
And the next one here is internet our be combined which is for this request a broadcast packet.
So now we have to do something like we have to send this broadcast packet over the network.
So that is the way to just send this packet to where the network is by using the SRP method which will
be covered in the next lecture.
We'll see how we can just get these MAC addresses to be printed and see the network that is connected
to our Internet or to the connections so see you in the next one.