Okay.
Now that we have our very, very simple program.
Okay.
And I have this little command here for designing an algorithm to discover clients on a network.
Okay.
So every time if there is a big problem, if you want to solve it very easily, you need to divide it
into very, very small part.
And then you can handle that step by step.
Okay.
As you see here, the goal is to design an algorithm to discover a client on a network.
Okay.
Here we have four steps okay.
The first one is to create an ARP request directed to broadcast Mac asking for IP.
And that is here okay.
We need to create an ARP request and send it to all computer.
Asking that or asking that who has this IP address.
Second one is send packet and receive response.
Okay here we are sending all this packet to all computer.
And the goal is to receive this response okay.
And the third one is to analyze this, analyze this response, okay.
Parse the response or analyze this response.
And finally we need to print the result okay.
So this is the four step that we need to do to create to complete our program.
So here as you see we just created a simple function here that only scan our router okay.
If I give here slash 24 it will come and scan for the whole range okay.
Now let me save it and come back in here.
Let's hit enter and just see.
Now you see that it gives me all the client with its IP and also all the.
Uh, Mac address again.
These two, as you see we have the same Mac address and this one is different.
Okay.
So here we have three client.
So.
Okay.
Now let's go and start building our program.