WEBVTT

00:01.120 --> 00:07.760
Okay, now it is time to test our program on a real machine remote Windows 7 that we have.

00:08.440 --> 00:13.160
And also I think it is not looks very it doesn't look very beautiful.

00:13.160 --> 00:16.200
I want to add some extra data here.

00:16.240 --> 00:16.440
Okay.

00:16.480 --> 00:20.400
For example, while we are printing the URL we need to have a text here.

00:20.400 --> 00:23.880
So I'm going to just add that here and let's.

00:26.520 --> 00:36.680
Uh let's add this I'm going to tell this HTTP request okay is going to be the HTTP request.

00:38.240 --> 00:40.360
And here we have the URL.

00:40.360 --> 00:44.160
So I'm going to concatenate this with the URL okay.

00:44.200 --> 00:46.200
And also here we are printing the load.

00:46.240 --> 00:50.160
Later we will be adding some details.

00:50.160 --> 00:55.280
So right here you see we have the URL here that this will get me the URL.

00:55.600 --> 00:59.320
So let's change that to a function.

01:00.030 --> 01:01.350
Define a new function.

01:01.350 --> 01:04.750
I'm going to name this get underscore URL.

01:05.070 --> 01:07.470
And this is going to get a package.

01:08.950 --> 01:13.990
And here let's just return this one okay.

01:14.630 --> 01:21.190
So this control x and here use return.

01:23.030 --> 01:24.270
Yes this okay.

01:24.310 --> 01:27.310
While we are returning that then we can use that here.

01:27.310 --> 01:31.230
That method or that function which is called get URL.

01:31.430 --> 01:34.590
And here we need to give that package.

01:35.190 --> 01:35.910
Very good.

01:36.470 --> 01:41.070
So now it is completed this part okay.

01:41.110 --> 01:47.830
And also we need to create another function.

01:47.830 --> 01:51.150
As you see this function this part okay.

01:52.030 --> 01:53.710
That is start from if.

01:55.790 --> 01:59.540
A package has Skpro okay Username.

01:59.540 --> 02:02.940
This will get me the login info for this part.

02:02.980 --> 02:07.820
Okay, so it is better to change this one to a new function as well.

02:07.820 --> 02:10.740
So let's use that here.

02:11.460 --> 02:22.060
And this method is going to be let's use git login info.

02:22.820 --> 02:25.540
It's again asking for a package.

02:26.060 --> 02:32.460
And here I use Ctrl V and I just paste everything that is here okay.

02:33.580 --> 02:38.580
And now you see we are printing and also we are doing a lot of stuff here.

02:38.580 --> 02:43.620
We are using break because there is a git login info and method.

02:43.620 --> 02:47.420
So we need to return this load here from here okay.

02:48.020 --> 02:50.740
So let's use return load.

02:51.460 --> 02:52.100
Perfect.

02:52.340 --> 02:58.800
Now that you're returning this load from here you need to get that from somewhere else again.

02:59.960 --> 03:08.520
For example, inside this function, after you're printing this, uh, after you print that, let's

03:08.520 --> 03:11.320
create a variable, name it login info.

03:12.120 --> 03:18.120
So this login info is equal to get underscore login info.

03:18.440 --> 03:22.520
And I give that package to this.

03:23.880 --> 03:29.200
And then here I need to check because all the time I don't have this login info for each page.

03:29.200 --> 03:30.920
I don't have this login info.

03:31.280 --> 03:38.320
So here I can check if this login info exists then do a print for me.

03:38.360 --> 03:41.720
Okay, here let's use two backslash n.

03:41.720 --> 03:44.520
That means go to new line and then.

03:47.440 --> 03:57.200
Print this one a text for example uh possible username and password maybe.

03:59.470 --> 04:00.590
Is this one.

04:00.630 --> 04:05.750
Okay, so here I need to concatenate that login info.

04:06.070 --> 04:09.630
That is something that I want to change that.

04:09.630 --> 04:15.070
And again okay I'm going to go to new line.

04:15.070 --> 04:16.430
So backslash and backslash.

04:17.430 --> 04:19.310
That looks perfect.

04:19.350 --> 04:19.790
Okay.

04:20.110 --> 04:23.630
Now our program almost completed.

04:23.670 --> 04:27.630
Just we haven't tested this yet.

04:27.670 --> 04:30.270
Let me go back to my Windows 7.

04:33.390 --> 04:33.630
Okay.

04:33.670 --> 04:34.390
That is here.

04:34.390 --> 04:35.150
Perfect.

04:36.230 --> 04:40.590
And also let me go back to my terminal that is here.

04:40.590 --> 04:44.110
Here I have two terminal okay.

04:44.110 --> 04:47.950
One of them is Arpspoof program that we just created.

04:47.950 --> 04:49.830
And also we have packet sniffer.

04:49.870 --> 04:50.790
Okay.

04:50.830 --> 04:55.590
First let me use this one Python spoofer ERP.

04:56.620 --> 04:57.180
Uh.

04:57.220 --> 04:58.140
It's both.

04:58.180 --> 05:01.140
Okay, I'm going to split this.

05:03.340 --> 05:04.780
Alley right now.

05:04.860 --> 05:06.740
It is doing its job.

05:06.940 --> 05:07.340
Okay.

05:08.340 --> 05:11.620
It is spoofing this program, I think.

05:11.660 --> 05:17.220
And also, I have this Python package sniffer.

05:17.220 --> 05:19.580
Dot py, hit enter.

05:19.620 --> 05:22.740
So right now this bot is doing their jobs.

05:22.860 --> 05:24.780
I need to go back here.

05:25.140 --> 05:29.340
I want to capture a username and password for example.

05:29.380 --> 05:31.220
Okay let's see.

05:31.260 --> 05:34.260
We have this one which is admin.

05:34.260 --> 05:37.420
And this one is going to be for example name.

05:37.420 --> 05:41.420
And the password is going to be name at login.

05:42.660 --> 05:43.100
No.

05:44.580 --> 05:45.820
And let's see.

05:48.220 --> 05:49.220
It is waiting.

05:51.460 --> 05:52.860
Right now it is doing nothing.

05:55.810 --> 05:56.290
Okay.

05:56.410 --> 05:57.050
Oh my God.

05:57.090 --> 06:01.290
I think I know why this is not loaded.

06:01.490 --> 06:03.570
That is because of this one.

06:05.130 --> 06:08.850
I happened to Sue.

06:10.730 --> 06:16.370
Okay, echo, I'm sure that is because of this one.

06:17.690 --> 06:18.290
Is it?

06:18.410 --> 06:21.650
Now I can execute this.

06:23.690 --> 06:26.330
And oh my God.

06:26.330 --> 06:29.890
We have again an error that is HTTP request.

06:29.890 --> 06:32.370
Still not to the URL.

06:32.370 --> 06:37.610
Which line is this line 21 in a packet sniffer.

06:37.650 --> 06:39.050
Okay, we have an error here.

06:39.090 --> 06:39.890
No problem.

06:40.250 --> 06:44.410
Again it is because of this okay URL and also the other one.

06:44.490 --> 06:49.450
We need to again go back to line 21 which is here we have the URL.

06:49.450 --> 06:52.370
I need to change this to str.

06:54.640 --> 06:54.920
Okay.

06:54.960 --> 06:55.760
Maybe again.

06:55.800 --> 06:57.160
We have some here.

06:57.200 --> 06:57.880
No problem.

06:57.880 --> 07:01.560
If we have it, we will be finding it.

07:05.160 --> 07:05.520
Okay.

07:05.560 --> 07:07.200
Right now it is running.

07:07.720 --> 07:10.960
And again I'm going to go to my Windows 7.

07:13.320 --> 07:13.760
Okay.

07:13.920 --> 07:15.320
Let's go back.

07:20.160 --> 07:20.760
Search.

07:22.800 --> 07:23.080
Okay.

07:23.120 --> 07:24.240
It is Windows 7.

07:28.760 --> 07:32.040
Now again I am going to go here.

07:33.280 --> 07:34.520
What was that website.

07:34.520 --> 07:35.000
It is.

07:35.080 --> 07:36.880
It was one web.

07:36.960 --> 07:37.600
Com.

07:38.920 --> 07:39.320
Okay.

07:40.600 --> 07:41.760
This site can't be reached.

07:41.800 --> 07:42.120
Why?

07:46.480 --> 07:53.820
Okay, let's go and see if we have captured anything on windows on Kali Linux or not.

07:55.820 --> 07:56.380
Oh my God.

07:56.420 --> 07:59.420
Again I have another error that is login info.

08:01.060 --> 08:03.460
Okay, this login info needs to be changed to.

08:06.540 --> 08:09.700
Going to this one.

08:10.300 --> 08:10.740
Okay.

08:11.540 --> 08:12.140
Very good.

08:12.180 --> 08:13.020
Like this.

08:13.140 --> 08:17.820
You can find all the error and fix it okay.

08:19.180 --> 08:25.220
Having this kind of error is one of the job of each programmer.

08:27.540 --> 08:28.020
Okay.

08:30.420 --> 08:33.340
Now you see, we have something very good.

08:33.940 --> 08:35.420
Let me come back here.

08:38.820 --> 08:41.420
And I want to execute this once again.

08:49.100 --> 08:49.820
Hit enter.

08:52.450 --> 08:55.370
Okay, let's go back to Windows 7.

08:57.370 --> 08:57.610
Okay.

08:57.650 --> 08:59.690
It was 1.com.

09:00.730 --> 09:01.770
It's this one.

09:03.570 --> 09:03.890
Uh.

09:06.490 --> 09:10.090
Why is it doing this for me now?

09:12.850 --> 09:13.250
Okay.

09:14.690 --> 09:17.490
It looks like we lost the connection.

09:17.490 --> 09:17.970
Network.

09:18.010 --> 09:18.970
Internet connection.

09:19.010 --> 09:20.650
No problem.

09:20.690 --> 09:21.650
Uh, I will fix this.

09:21.690 --> 09:26.050
Okay, let's go and see if this program captured anything or not.

09:28.210 --> 09:28.410
Okay.

09:28.410 --> 09:30.010
It looks like it did.

09:30.010 --> 09:32.610
Captured like this.

09:33.130 --> 09:33.370
Okay.

09:33.410 --> 09:36.690
It did capture the data like URL.

09:36.730 --> 09:37.130
Okay.

09:38.090 --> 09:41.130
And I will fix the network connection.

09:41.130 --> 09:47.890
And then I will show you that it will capture the username and also the password that we provide into

09:47.890 --> 09:51.850
that, uh, website here.
