WEBVTT

00:01.100 --> 00:07.670
Now before doing any thing I want to show you the network settings of my kyley machine.

00:07.670 --> 00:09.640
So I'm going to select it here.

00:09.770 --> 00:12.970
I'm going to go to settings network.

00:14.120 --> 00:18.460
And as you can see it said to you as another network.

00:19.290 --> 00:23.680
So now if I go to my candy machine and if config.

00:24.360 --> 00:25.180
We'll see.

00:25.200 --> 00:28.250
We have an interface called Eating zero.

00:28.380 --> 00:36.940
This interface is a virtual interface created by virtual box because we said this machine to you is

00:36.990 --> 00:38.400
an IDE network.

00:39.170 --> 00:46.760
You can also see that this interface has an IP address which means that it is properly connected to

00:46.790 --> 00:55.550
this network and it will provide the candy machine with Internet access as long as my host machine right

00:55.550 --> 00:58.990
here has Internet access.

00:59.060 --> 01:06.420
So now on my khali if I go and say if I'll just go to being dot com on my browser.

01:08.760 --> 01:16.200
You'll see that I can successfully go to the Web site because karlee is connected to the Internet through

01:16.290 --> 01:21.150
this virtual interface that is called 88 zero.

01:21.210 --> 01:26.970
Now before we go back to our diagram that shows what we need to create an access point.

01:27.150 --> 01:32.270
You can see that we need an interface that is connected to the Internet.

01:32.310 --> 01:40.290
We don't care what type of interface this is as log as this interface has Internet access.

01:40.290 --> 01:48.120
So in our example we're it going to be using e.t. ZERO to provide our fake access point with internet

01:48.150 --> 01:50.160
access.

01:50.160 --> 01:52.320
The other interface that we need.

01:52.320 --> 01:59.940
We said that this needs to be a wireless adapter that is able to act as an access point.

01:59.940 --> 02:07.140
Again if I go back to the result of my if config you can see I already have a wireless adapter connected

02:07.350 --> 02:10.750
to this computer it's called Lines 0.

02:10.770 --> 02:13.040
Keep in mind that this is in managed mode.

02:13.050 --> 02:15.870
It's not in monitor mode.

02:15.990 --> 02:21.480
It is not connected to anything so you can see it does not have an IP address.

02:21.510 --> 02:23.530
This is very very important.

02:23.550 --> 02:30.290
It needs to be first of all in managed mode and secure and not connected to any network.

02:30.480 --> 02:35.910
So even if we go at the network manager in here you can see we have wired connected.

02:35.910 --> 02:40.290
This is my eating zero and Y fi not connected.

02:41.960 --> 02:49.320
Once we have everything configured properly we can go ahead and start the access point both first you'll

02:49.320 --> 02:55.790
need to install my new tool kit because it does not come preinstalled entirely.

02:55.860 --> 03:00.580
We can install it use an app get just like Terminator and other tools.

03:00.630 --> 03:05.230
So all we have to do is just do a good update to update the sources.

03:06.150 --> 03:09.580
Then get install mine a toolkit.

03:11.630 --> 03:13.100
Now I have it installed.

03:13.100 --> 03:16.320
That's why it's still on me mineit is already installed.

03:16.350 --> 03:20.800
What if it's not installed this command will install it for you.

03:22.460 --> 03:25.890
Once you have everything installed you're ready to use mine.

03:25.970 --> 03:30.010
And before we started we should modify its settings.

03:30.110 --> 03:37.340
Mine I said things are stored in a text file so to edit the settings were going to open this file and

03:37.400 --> 03:41.660
edited using leaf 5 which is just a text editor.

03:42.020 --> 03:49.220
So I'm going to type leaf third followed by the location of the file that you want to modify and the

03:49.220 --> 03:59.540
settings file for minor is stored in e.g. C minor tool kit host AP our dot com.

04:00.110 --> 04:08.240
So all we're doing with this command is we're using a text editor called liefeld to open a file that

04:08.300 --> 04:10.510
is stored in this path.

04:10.760 --> 04:14.780
So when we hit enter you'll see we have the text editor.

04:14.780 --> 04:22.280
You open the file for us and all of these are the settings that you can modify for a minor.

04:22.280 --> 04:27.470
You can actually get a full list and a full description of all the settings that you can modify in this

04:27.470 --> 04:28.160
link.

04:28.550 --> 04:30.530
But we don't need this for now.

04:30.530 --> 04:34.460
The main thing that you need to modify is the interface.

04:35.160 --> 04:40.670
This is the interface that you want to use to broadcast the signal.

04:40.680 --> 04:43.780
So basically it is this component.

04:44.070 --> 04:47.160
In my example this is going to be lanzi Hero.

04:47.220 --> 04:51.880
This is my wireless interface so I'm keeping this the same.

04:52.320 --> 04:56.950
The next thing that you might want to modify is the SS idae.

04:57.060 --> 05:03.050
This is the network name that will appear when people look for y fi networks.

05:03.540 --> 05:09.180
I'm going to keep this as Internet so when people look for a note where it's they will see my fake access

05:09.180 --> 05:11.610
point under this name.

05:12.470 --> 05:14.570
So I have nothing to say right now.

05:14.570 --> 05:20.750
But if you modified anything make sure you saved the file from file saved and then close it.

05:22.090 --> 05:27.080
And the next file that we'll need to modify is the start script.

05:27.120 --> 05:33.270
This is the file that will actually start my tool kit for us again.

05:33.270 --> 05:38.500
Were going to use leave to open an edit this file so were going to type please.

05:38.530 --> 05:49.410
Bud followed by the location of mine as a stout script which is in user share mine natwar could run

05:49.430 --> 05:51.380
minor stud.

05:51.430 --> 05:51.890
Now.

05:51.960 --> 05:54.500
Simple DOD s.h..

05:56.640 --> 06:01.150
Now in this file there are two main things that you need to modify.

06:01.470 --> 06:05.090
The first one is the upstream interface.

06:05.100 --> 06:12.740
This is the interface that has Internet access so this is this component right here.

06:12.810 --> 06:15.930
As we see before this is indeed 0.

06:15.930 --> 06:25.830
In my case so I'm going to leave this the same the next to ion P Troy is again the interface that is

06:25.830 --> 06:28.130
going to broadcast this signal.

06:28.140 --> 06:36.810
So in my example this is my wireless adopter and it is called LAN 0 nut line 1 so I'm actually going

06:36.810 --> 06:39.280
to modify this to like zero.

06:39.630 --> 06:41.390
Then I'm going to save it control.

06:41.400 --> 06:43.480
S and quitted control.

06:43.520 --> 06:51.480
Q And that's it were ready to start the fake access point and like we said before were going to be starting

06:51.480 --> 06:53.600
it using this script right here.

06:53.630 --> 06:54.090
Start.

06:54.090 --> 06:54.890
Not simple.

06:54.900 --> 07:01.920
Thats why we modify I did so all we have to do is I'm going to copy this because that's its location.

07:01.980 --> 07:08.420
So in order to start it because this ends with a dot s.h. we're going to do by sh.

07:09.450 --> 07:13.230
Followed by the location of this crypt.

07:13.680 --> 07:19.980
So when we wanted to modify to use in a text editor we use a program called leaf fired followed by the

07:19.980 --> 07:21.900
path of the file.

07:21.990 --> 07:24.560
Right now we don't want to modify it.

07:24.690 --> 07:30.870
We want to execute the code inside the code inside it is a bash script code.

07:30.900 --> 07:35.180
That's why were saying I want to run this file using Bash.

07:36.540 --> 07:38.150
Now I'm going to hit enter.

07:39.150 --> 07:44.120
And as you can see it's still on me that the access point is enabled.

07:44.250 --> 07:49.330
I can press enter to kill the access point so to exit it.

07:50.010 --> 07:54.660
Now sometimes the first time that you write this script it will not work.

07:54.670 --> 07:56.550
It'll actually give you an error.

07:56.790 --> 08:01.570
So it's a good idea to actually just run the code again literally the same command.

08:01.590 --> 08:08.160
If it fails if it complains about a specific error just run the command again then it might work.

08:08.370 --> 08:14.910
If it did it for it for the second time then ask me in the Q and A section and we will respond to you

08:15.000 --> 08:17.610
and help you fix this issue.

08:17.610 --> 08:23.150
So now let's go and try to connect to this network and see if it actually works.

08:24.590 --> 08:27.130
So right here I have a Windows machine.

08:27.230 --> 08:35.010
It's another virtual machine but I have another wireless adapter connected to this machine.

08:35.090 --> 08:42.680
Do not test this from your host machine because the fake access point is getting its Internet access

08:42.830 --> 08:45.630
from the host machine through the night network.

08:45.680 --> 08:50.690
So if you test this network from the host machine the network will not work.

08:51.020 --> 08:58.160
So either tested from another virtual machine with another wireless data or if you don't have another

08:58.160 --> 09:05.750
wireless adapter then you can test it from your phone or from another laptop or any other computer within

09:05.750 --> 09:11.040
range but do not ever tested from the host machine.

09:12.370 --> 09:18.250
So right here I'm going to search for networks to connect to and as you can see I have a network called

09:18.310 --> 09:19.540
Internet.

09:19.540 --> 09:22.970
It does not use a password so I'm just going to connect to it.

09:29.720 --> 09:37.160
As you can see I'm connected now and am going to open Firefox just to check if I have Internet connection

09:37.550 --> 09:39.940
so I'm going to go to being calm.

09:42.370 --> 09:44.960
And as you can see big dot com is loading.

09:45.070 --> 09:48.770
So now I actually have Internet access.

09:49.180 --> 09:55.870
So now anything I do on this computer will have to be sent to the access point if I want to access any

09:55.870 --> 09:56.540
website.

09:56.540 --> 10:03.700
If I enter any passwords and user names everything is going to go to the access point the access point

10:03.760 --> 10:05.310
is the hacker machine.

10:05.350 --> 10:08.720
So the hacker mission is already mine in the middle.

10:08.980 --> 10:16.000
So now you're at the same position that you would be after running an IP spoofing attack so you can

10:16.000 --> 10:20.210
go ahead and use wire showed to sniff packets and analyze them.

10:20.440 --> 10:26.760
Or you can go and you mount in the middle of exactly as they showed you before.

10:27.990 --> 10:32.390
The only thing that you need to keep in mind when using wire sharrock or a man in the middle.

10:32.430 --> 10:39.610
Or any other tool you need to set the interface to the interface that is broadcasting the signal.

10:39.630 --> 10:46.640
So this is the interface that you said in the p-h Y option not in the upstream.

10:46.650 --> 10:52.680
So in my case right now this would be like zero not zero.

10:52.680 --> 10:58.890
Also if you're going to use mine in the middle left theoretically you wouldn't need to use the dash

10:58.890 --> 11:01.920
dash 8 AP dash dash spoof argument.

11:01.950 --> 11:08.070
What I noticed that the tool will not work unless you add that argument so you can add it in and you'll

11:08.070 --> 11:11.500
see that it'll work exactly as from before.
