Now before doing any thing I want to show you the network settings of my kyley machine.
So I'm going to select it here.
I'm going to go to settings network.
And as you can see it said to you as another network.
So now if I go to my candy machine and if config.
We'll see.
We have an interface called Eating zero.
This interface is a virtual interface created by virtual box because we said this machine to you is
an IDE network.
You can also see that this interface has an IP address which means that it is properly connected to
this network and it will provide the candy machine with Internet access as long as my host machine right
here has Internet access.
So now on my khali if I go and say if I'll just go to being dot com on my browser.
You'll see that I can successfully go to the Web site because karlee is connected to the Internet through
this virtual interface that is called 88 zero.
Now before we go back to our diagram that shows what we need to create an access point.
You can see that we need an interface that is connected to the Internet.
We don't care what type of interface this is as log as this interface has Internet access.
So in our example we're it going to be using e.t. ZERO to provide our fake access point with internet
access.
The other interface that we need.
We said that this needs to be a wireless adapter that is able to act as an access point.
Again if I go back to the result of my if config you can see I already have a wireless adapter connected
to this computer it's called Lines 0.
Keep in mind that this is in managed mode.
It's not in monitor mode.
It is not connected to anything so you can see it does not have an IP address.
This is very very important.
It needs to be first of all in managed mode and secure and not connected to any network.
So even if we go at the network manager in here you can see we have wired connected.
This is my eating zero and Y fi not connected.
Once we have everything configured properly we can go ahead and start the access point both first you'll
need to install my new tool kit because it does not come preinstalled entirely.
We can install it use an app get just like Terminator and other tools.
So all we have to do is just do a good update to update the sources.
Then get install mine a toolkit.
Now I have it installed.
That's why it's still on me mineit is already installed.
What if it's not installed this command will install it for you.
Once you have everything installed you're ready to use mine.
And before we started we should modify its settings.
Mine I said things are stored in a text file so to edit the settings were going to open this file and
edited using leaf 5 which is just a text editor.
So I'm going to type leaf third followed by the location of the file that you want to modify and the
settings file for minor is stored in e.g. C minor tool kit host AP our dot com.
So all we're doing with this command is we're using a text editor called liefeld to open a file that
is stored in this path.
So when we hit enter you'll see we have the text editor.
You open the file for us and all of these are the settings that you can modify for a minor.
You can actually get a full list and a full description of all the settings that you can modify in this
link.
But we don't need this for now.
The main thing that you need to modify is the interface.
This is the interface that you want to use to broadcast the signal.
So basically it is this component.
In my example this is going to be lanzi Hero.
This is my wireless interface so I'm keeping this the same.
The next thing that you might want to modify is the SS idae.
This is the network name that will appear when people look for y fi networks.
I'm going to keep this as Internet so when people look for a note where it's they will see my fake access
point under this name.
So I have nothing to say right now.
But if you modified anything make sure you saved the file from file saved and then close it.
And the next file that we'll need to modify is the start script.
This is the file that will actually start my tool kit for us again.
Were going to use leave to open an edit this file so were going to type please.
Bud followed by the location of mine as a stout script which is in user share mine natwar could run
minor stud.
Now.
Simple DOD s.h..
Now in this file there are two main things that you need to modify.
The first one is the upstream interface.
This is the interface that has Internet access so this is this component right here.
As we see before this is indeed 0.
In my case so I'm going to leave this the same the next to ion P Troy is again the interface that is
going to broadcast this signal.
So in my example this is my wireless adopter and it is called LAN 0 nut line 1 so I'm actually going
to modify this to like zero.
Then I'm going to save it control.
S and quitted control.
Q And that's it were ready to start the fake access point and like we said before were going to be starting
it using this script right here.
Start.
Not simple.
Thats why we modify I did so all we have to do is I'm going to copy this because that's its location.
So in order to start it because this ends with a dot s.h. we're going to do by sh.
Followed by the location of this crypt.
So when we wanted to modify to use in a text editor we use a program called leaf fired followed by the
path of the file.
Right now we don't want to modify it.
We want to execute the code inside the code inside it is a bash script code.
That's why were saying I want to run this file using Bash.
Now I'm going to hit enter.
And as you can see it's still on me that the access point is enabled.
I can press enter to kill the access point so to exit it.
Now sometimes the first time that you write this script it will not work.
It'll actually give you an error.
So it's a good idea to actually just run the code again literally the same command.
If it fails if it complains about a specific error just run the command again then it might work.
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
and help you fix this issue.
So now let's go and try to connect to this network and see if it actually works.
So right here I have a Windows machine.
It's another virtual machine but I have another wireless adapter connected to this machine.
Do not test this from your host machine because the fake access point is getting its Internet access
from the host machine through the night network.
So if you test this network from the host machine the network will not work.
So either tested from another virtual machine with another wireless data or if you don't have another
wireless adapter then you can test it from your phone or from another laptop or any other computer within
range but do not ever tested from the host machine.
So right here I'm going to search for networks to connect to and as you can see I have a network called
Internet.
It does not use a password so I'm just going to connect to it.
As you can see I'm connected now and am going to open Firefox just to check if I have Internet connection
so I'm going to go to being calm.
And as you can see big dot com is loading.
So now I actually have Internet access.
So now anything I do on this computer will have to be sent to the access point if I want to access any
website.
If I enter any passwords and user names everything is going to go to the access point the access point
is the hacker machine.
So the hacker mission is already mine in the middle.
So now you're at the same position that you would be after running an IP spoofing attack so you can
go ahead and use wire showed to sniff packets and analyze them.
Or you can go and you mount in the middle of exactly as they showed you before.
The only thing that you need to keep in mind when using wire sharrock or a man in the middle.
Or any other tool you need to set the interface to the interface that is broadcasting the signal.
So this is the interface that you said in the p-h Y option not in the upstream.
So in my case right now this would be like zero not zero.
Also if you're going to use mine in the middle left theoretically you wouldn't need to use the dash
dash 8 AP dash dash spoof argument.
What I noticed that the tool will not work unless you add that argument so you can add it in and you'll
see that it'll work exactly as from before.