Okay, now that it is almost completed, here we the first section we have two parts.
First is creating an ARP request and the second one is set the destination to the broadcast.
And that is because we need to send a package to all clients.
Okay.
So we can do that by using ETH air ether.
Okay.
Here the first part I have done is done for IP.
Now let's create another variable.
Let's name it broadcast.
Okay.
Broadcast.
And it is equal to Scapy.
Dot header.
Okay.
Now here.
Uh, let's remove this.
Actually, we don't need this right now.
Here and here I'm going to use skip list.
And we can use that skip dot either to see details escape dot.
Either method.
Now let's run this and see what is going to happen.
Okay.
Now you see we have all the fields that we need okay.
First one is destination.
We need to set the destination to that broadcast.
This is the broadcast okay.
Six ifs.
This is the broadcast and this is the source Mac address.
And, uh, that's it.
Okay.
So.
And now we need to set that to.
Set the destination to this one.
Okay.
So we have the DST destination.
We can set that in two ways.
Okay.
Uh, one of them is right here.
Okay.
Let's use that.
DST is equal to here.
23456.
Okay.
Now, instead of having ls here, let's print the summary of the broadcast.
Okay.
So let's use print.
And then we have broadcast dot summary.
Also we can use show as well.
I will show that to you.
Now you see that the summary is telling me that the destination is this one.
Okay.
And here.
Now.
We can, uh.
Now we can have both of this.
Okay.
Uh, LP request and broadcast both in one place.
Okay.
So what do I mean by that?
Is the LP request, uh, broadcast?
Broadcast is going to be equal to.
I'm going to have both of these.
Okay.
LP request and broadcast in one place.
So this is allowing us to do that.
So let's use broadcast then by using this slash LP request we are able to do this now instead of just
broadcast.
I'm going to use ERP or ERP broadcast request broadcast.
Okay.
Now let's see what do we have.
Okay.
Now as you see we have two things here.
One of them is either and we have ERP both in one place.
Okay.
And this is telling that this is the destination Mac address.
That means which is the broadcast Mac address.
Okay.
And this one is PTSD or, uh, this is the IP.
Okay.
So we improved this in a bit.
Uh, more or better.
Now also if you want to see more detail.
Okay.
More details here you see very simple information you may not understand.
Okay.
What is that?
Now here I am going to use another function that is called show.
And it will give me a lot of information here.
Let's use ARP request broadcast dot show method and let's see what do we have.
Okay.
Now it is giving me more details.
And as you see the destination is the broadcast.
This is the source which is Mac address for my computer.
And you see we have IP, we have OP who has okay.
And.
Okay.
Everything we need is down here now.
And also for these broadcast and AARP also we can use this show method.
Okay.
Let me remove this print from here.
Here if I use broadcast dot show.
Method.
And also then up here are request dot show.
And if I save this.
Now let's compare this both and see what is going to happen.
So the first one it is for ARP request okay.
The second one which is this one for Ethernet okay.
It is for broadcast.
As you see we have the destination which is this one and source.
And here we have combination of both okay ARP both of them down here.
Very good.
Now that we have these okay.
Let's go and see how we can improve this uh more and better.