WEBVTT

00:01.160 --> 00:01.520
Okay.

00:01.520 --> 00:05.240
Now that we have our very, very simple program.

00:05.240 --> 00:05.640
Okay.

00:06.680 --> 00:15.520
And I have this little command here for designing an algorithm to discover clients on a network.

00:15.560 --> 00:16.560
Okay.

00:16.560 --> 00:24.680
So every time if there is a big problem, if you want to solve it very easily, you need to divide it

00:24.680 --> 00:27.360
into very, very small part.

00:27.400 --> 00:30.760
And then you can handle that step by step.

00:30.800 --> 00:31.280
Okay.

00:31.320 --> 00:37.360
As you see here, the goal is to design an algorithm to discover a client on a network.

00:37.400 --> 00:37.960
Okay.

00:38.000 --> 00:39.680
Here we have four steps okay.

00:39.720 --> 00:46.720
The first one is to create an ARP request directed to broadcast Mac asking for IP.

00:47.400 --> 00:49.160
And that is here okay.

00:49.160 --> 00:53.920
We need to create an ARP request and send it to all computer.

00:53.960 --> 00:59.240
Asking that or asking that who has this IP address.

01:00.400 --> 01:04.240
Second one is send packet and receive response.

01:04.280 --> 01:09.720
Okay here we are sending all this packet to all computer.

01:10.200 --> 01:15.200
And the goal is to receive this response okay.

01:15.360 --> 01:20.680
And the third one is to analyze this, analyze this response, okay.

01:20.720 --> 01:22.920
Parse the response or analyze this response.

01:23.560 --> 01:27.120
And finally we need to print the result okay.

01:27.160 --> 01:33.120
So this is the four step that we need to do to create to complete our program.

01:33.440 --> 01:41.240
So here as you see we just created a simple function here that only scan our router okay.

01:41.280 --> 01:49.000
If I give here slash 24 it will come and scan for the whole range okay.

01:49.040 --> 01:52.480
Now let me save it and come back in here.

01:54.480 --> 01:56.560
Let's hit enter and just see.

01:58.360 --> 02:06.520
Now you see that it gives me all the client with its IP and also all the.

02:08.600 --> 02:10.400
Uh, Mac address again.

02:10.440 --> 02:19.200
These two, as you see we have the same Mac address and this one is different.

02:19.240 --> 02:20.000
Okay.

02:20.040 --> 02:22.720
So here we have three client.

02:23.480 --> 02:23.720
So.

02:25.920 --> 02:26.720
Okay.

02:26.760 --> 02:29.440
Now let's go and start building our program.
