Hello everyone and welcome to part nine of my learned ethical hacking in this video.
We're going to look at how to disconnect any device that is connected to Wi-Fi router.
In this video we're going to be using my my MacBook laptop as an example.
So I have a router in my room and my macbook is connected to it.
So what I'm going to do is I'm going to prevent the connection from the laptop and the router.
It's not going to be able to connect back to the Wi-Fi router and it's not going to have Internet access
at all.
Now I must say this is for educational purposes only.
I'm not responsible for any damages you cause or consequences.
The whole purpose of this is for education and for people who are generally interested in whites hacking
and also cyber security.
So to get started.
I'm going to check the Wi-Fi card so if I do I w conflict w lan Zero Month click enter.
As you can see the mode is monitor so I can just clear that.
Now I'm going to do a real dump and G then w Le Monde zero click enter.
And this is going to start from packets around the local or local races that are in my area.
I'm using a wireless card.
So if you haven't watched the previous videos and you just happen to find this video then you will need
to go and watch them.
There's a whole playlist on my channel of them and it will give you a better understanding of what is
actually happening here.
So I'm going to press control C to stop it.
I've already explained in part seven what all this means but what we're going to do is we're going to
actually just attack a specific device now.
So my laptop is connected to this network the reason I know this is because obviously it's got the same
ISIS I.D. on the laptop when searching for it.
So we'll just be the same name as the Wi-Fi router.
And this is the MAC address for that router.
So we've sniffed the router.
Now what we need to do is we need to actually target the sniffing.
So basically we're going to actually just sniff every device that is connected to this Wi-Fi router
so to do so I'm going to do a rodent haven energy then the channel channel.
This channel is what the network or the Wi-Fi Rusi uses.
So it uses Channel 6 as you can see here it says CBH 6.
Then we're gonna do hyphen hype and be a society.
So we need to copy this society and paste it here which is the MAC address of the router.
Then you just need to type w lan 0 1.
Now I have explained or have said before in previous videos that this could change for you as long as
your Wi-Fi call it is in monitor mode then you're good to go.
So if I click and to no it's going to start sniffing devices that connected to this Wi-Fi so if I press
control and to stop this device here this MAC address corresponds to my macbook.
The reason I know this is because I know the MacBook and the MacBook mac address if that makes sense
a bit awkward to say.
So what I'm going to do now is I'm going to switch over to my Mac Book and show you that I'm not lying
or making this all so I'll see you on my macbook.
So now that I'm on the Mac book as you can see the Wi-Fi is connected I'm connected to that same specific
Wi-Fi router which is this 2G one.
I will show you that the Internet actually goes way up.
So I'll go on the browser and just go to YouTube click enter as you can see YouTube does load not sounding
because obviously it's all it's new a new device it's not really used but it's just a proof that the
Internet does actually work on this laptop go back here go to advanced.
Then go to hardware.
As you can see the MAC address of this laptop is b 8 8 D 12 forty one zero C so if we go back a few
seconds into the video and you will notice that this MAC address corresponds to the MAC address that
we sniffed when we join the target we targets is the specific Wi-Fi to find devices that are connected
to it.
So VBA data corresponds to the macro address that we have found that way.
Well that's how I know that this is the correct MAC address on this laptop that we are targets and.
So what we're gonna do now is we're going to actually send D authentication packets to this laptop that
will disconnect and prevent further connection to this Wi-Fi spot.
It will way for this device to this device will be basically unable to connect to the Wi-Fi router.
So I'll see you back on the Linux machine and then I'll teach you how to send these d authentication
packets so another way back on the current Linux machine as you can see here.
It's this MAC address.
So like I said it corresponds to the MAC address that is the MAC address of the MacBook.
And that is exactly what we want because we want to target this specific device now to send the authentication
packets or we need to do is this simple code or the simple line.
So air play hyphen energy make sure the.
So I R E an n play a play energy I just call it airplay engines to save up or doesn't matter.
They don't want to hype and hype from deal so d of the D authentication a thousand.
Actually I'll do 10000 so basically this number of packets the number of D authentication Pakistan we're
gonna send that I'm gonna do hyphen A.
Then we need to put the BSE idea of the network or the router.
So like I've said before this MAC address is the MAC address of the router.
Now these are all the same because these are the devices connected to this router.
So it just needs a copy this MAC address which is the MAC address of the router you got to remember
that it's very important that you put them in the right way.
So I'm going to paste it then I'm going to do a space in an n hyphen C then I'm going to put the BSD
idea of the client which is the device that we want to prevent connexion from or to this network which
is this one.
So basically put in the MAC address of the Mac book here then I'm going to type w lan 1 0 w 1 0 1 Sorry
and as soon as I click enter it's going to start flooding the connection between the MacBook and the
router with deal with packets.
So I'm just going to click enter now and quickly show you what's going to happen to my Mac Book.
Well because of the Mac books next to me I don't want it to lock so I have to type the password in and
animist it.
So as soon as I click enter the MacBook screen will appear and I'll show you the effects of what we're
doing so click enter.
It's going to start sending deal packets and I will see you on the MacBook
as you can see on the MacBook now if you noticed up here it's actually struggling to connect to the
Wi-Fi now.
It's gonna keep trying but if I show you the screen on my carry Linux machine then I can see it's just
floating.
The connection with Deal's pockets so obviously this laptop can not connect to the Internet.
It's just gone gray it's gone black there's no even one little bar of connection there's just no connection
at all and I can close out to this and show you.
So as you can see the Wi-Fi is on but no network selected so if I try and select to 2G click on 2G as
you can see this is connected I'll give it a second just to send a few more days of packets and the
connections gone again.
So the connection to stay open a little bit but obviously once it recognizes that deals packets would
be incentive.
It just disconnects.
I'll try and connect back to youtube again so if I click enter I can see there's a problem load in the
page.
So basically this device is rendered useless for connecting to this Wi-Fi router.
Obviously you can connect to different ones but obviously then if we change the attack on the coffee
machines to the or the MAC address of the other router then it will still render useless.
So this can be quite complicated tor quite quick when I'm talking about this stuff because that's how
I am sorry if it doesn't really make sense.
Just go through the video slowly and watch the other parts of this course and it will make sense to
you as you can see there is no Internet connection now I can't connect to the Internet and that is the
whole point of the deal authentication as long as I stop it on the coffee machine then the connection
will come back.
So it's not completely ruined or permanently damaged but obviously the connection will only come back
or on setting off the Linux machine.
So I'm just going to go back to the tally machine now and I will see you on there.
So now that we're back on the cutting machine to stop sending the d off packets so you need to do press
control and see so control C and that will stop the attack.
You can also just close out of the terminal or turn off the column machine.
So that was a for the video.
If it did help please leave.
Like if you're stuck with anything or have any errors please leave it in the comments and I'll be happy
to help.
Describe for the latest contents and I will see you in the next video.