WEBVTT

00:06.720 --> 00:11.010
Hello, guys, and welcome to
another video on this chapter.

00:11.040 --> 00:17.460
This is the beginning of Internet, we have
been facing constantly increasing threats,

00:17.490 --> 00:22.660
which can affect the stability
and usability of the networks.

00:22.690 --> 00:28.080
Nowadays, businesses rely on their
networks and the Internet more and more.

00:28.100 --> 00:35.460
So in order to defeat such attacks, we
need to really understand how the work.

00:35.490 --> 00:40.200
Mac Flooding is one of the most common
network attacks and like other Web attacks

00:40.230 --> 00:45.540
. Mac Flooding is not a method of attack
in any host, particularly the network, but

00:45.570 --> 00:48.700
is the method of attacking
the network Switches.

00:48.730 --> 00:53.500
However, the victim of the attack is
the host computer in the network.

00:53.530 --> 00:57.500
We're going to see what the Mac flooding
is and how we can prevent it.

00:57.530 --> 00:59.460
The Mac flooding

00:59.490 --> 01:05.340
is an attack method intended to compromise
the security of the networks, which is

01:05.370 --> 01:09.490
usually the switches maintain a
table structure called mactable.

01:09.520 --> 01:14.440
This Mac table consists of individual
mac addresses of the host computers or the

01:14.470 --> 01:18.050
network which are connected
to the ports of the Switch.

01:18.080 --> 01:20.960
This table allows the switches to direct

01:20.990 --> 01:25.760
the data out of the ports where
the recipient is located.

01:26.520 --> 01:28.320
Perhaps in this lesson I am assuming that

01:28.350 --> 01:33.060
you know what happens, but I am going to
offer some information

01:33.090 --> 01:37.290
in regards to that so you can understand
thoroughly. We have

01:37.320 --> 01:43.180
Broadcast the data to be Internet
the entire network, allowing

01:43.210 --> 01:48.160
the data to reach a host on the network,
which is though send the data to the

01:48.190 --> 01:52.570
specific machines which the
data is intended to present.

01:52.600 --> 01:58.340
This goal is achieved by the use of
Mactables the aim of the mac flooding

01:58.370 --> 02:04.820
Attack does is to take down this mac table
in a typical floodin Attack.

02:04.850 --> 02:08.890
The Attacker estimates range in a huge
number. In send

02:08.920 --> 02:13.940
many user internet switches, this
frames will have BIOS sender address.

02:13.970 --> 02:17.220
The intention of the attacker is

02:17.250 --> 02:22.880
consuming the memory of the Switch that
is used to store the Mac addresses table.

02:22.910 --> 02:25.300
That's the Mac address table becomes full

02:25.330 --> 02:29.380
and it is unable to save
new Mac addresses.

02:29.410 --> 02:34.360
It will lead the Switch
passing will lead the Switch to enter into

02:34.390 --> 02:39.730
a fail open-mode and the Switch will
now behave same as a network hub.

02:39.760 --> 02:45.320
So let's see what are the benefits of
the attacker with the Mac flooding?

02:45.350 --> 02:47.020
Attack Attack.

02:47.040 --> 02:49.080
It is a part of the network, the Attacker.

02:49.110 --> 02:51.560
Can we also get the data packets intended

02:51.590 --> 02:56.240
for the victim machines or
so that the attacker will be able to steal

02:56.270 --> 03:01.540
sensitive data from the communication
of the victim and other computers?

03:01.570 --> 03:06.180
Usually a packet analyzer is used to
capture these sensitive data

03:06.210 --> 03:10.440
after launching the mac flood
Attack successfully the Attack.

03:10.440 --> 03:13.140
You can also follow up with
an Directory Spoofing Attack.

03:13.170 --> 03:18.400
This will help the attacker retaining
access to the previous data even after the

03:18.430 --> 03:21.820
attack, which is recovered
from the flooding Attack.

03:21.850 --> 03:28.100
So to perform this attack, we are going
to use command macof in Kali linux.

03:28.130 --> 03:34.540
macof is a member of the Disney offshoot
to set and mainly used to

03:34.570 --> 03:37.700
flood the switches and local
network with mac addresses.

03:37.730 --> 03:40.920
So these two types of flooding attacks,

03:40.950 --> 03:44.980
the symbol flooding
and the targeted flooding.

03:45.010 --> 03:46.880
So the first.

03:47.120 --> 03:50.360
Command is macof -i  -n 10

03:50.720 --> 03:53.860
and you to the Network,
you would like to send the

03:53.890 --> 04:01.100
mac flood Attack
to each one and retargeted flooding Attack

04:01.130 --> 04:08.820
is when you when the random Mac addresses
are testing to a specific destination IPS.

04:08.850 --> 04:14.520
So therefore it's macof -i  -n 10 which is

04:15.360 --> 04:20.660
the network 0 eth1 and then space dash D

04:20.690 --> 04:25.500
lag and then you provide the
destination IP be the target.

04:25.530 --> 04:27.540
It would like to attack the.

04:27.570 --> 04:31.360
We're going to see both of those attacks
and we are going to perform

04:31.390 --> 04:35.500
it IN KALI linux while
having Wireshark aside.

04:35.520 --> 04:37.480
And we're going to see how everything is

04:37.510 --> 04:41.820
behaving and how we can see
that in Wireshark.

04:41.840 --> 04:48.180
So we are in our Kali Linux machine
and we are ready to demonstrate.

04:48.210 --> 04:55.580
And Attack and see how that will
be shown in Wireshark.

04:55.600 --> 05:00.920
So let's just go ahead in our terminal and
type, macof

05:02.880 --> 05:09.000
-i as we said then, we are choosing the
network in this case is ethzero for us.

05:09.030 --> 05:12.820
You can see it on Wireshark.

05:12.840 --> 05:17.840
If you would like to learn it,
you can just go ahead and type.

05:18.520 --> 05:22.600
Ipconfig, of course, and
then you will see it here.

05:24.440 --> 05:28.400
Sort of just clear out and
type again. -i macof

05:34.560 --> 05:40.320
then we are choosing our network
and let's be from this Attack first and

05:40.350 --> 05:44.860
then we are going to do the
targeted flooding later on.

05:44.890 --> 05:47.360
And you can see how the.

05:47.920 --> 05:50.220
Wireshark will capture the whole traffic

05:50.250 --> 05:55.980
in our targeted message later on, but
perform this Attack first that capturing

05:56.010 --> 06:02.160
on the desired network
and then from the Attack.

06:02.640 --> 06:06.560
So you can see there is a
lot of like Mac addresses.

06:07.600 --> 06:12.160
Going by this time, the switches is
already flooded, I guess, after, like a

06:12.190 --> 06:19.340
few seconds and you can see in real time
here in Wireshark, there is all sorts of.

06:19.360 --> 06:25.380
Like it's coming, so before we
stop the Attack, you can see that.

06:25.410 --> 06:29.760
Let's say that there is an opportunity for
you, your capturing packets,

06:31.680 --> 06:35.040
so you're investigating
something, are you exploring something

06:35.070 --> 06:40.920
on wireshark while this is happening, so
while you're exploring something and you.

06:41.480 --> 06:45.120
While you're exploring
something else and you see some packets

06:45.150 --> 06:49.040
coming out like that and
there is no information.

06:49.320 --> 06:54.660
That means that means you are under mac
flooding Attack your network is

06:54.690 --> 07:00.960
so you can see the source and the
destination completely like random.

07:01.240 --> 07:07.880
And the only purpose is to fill
up the mac address, you can see that.

07:08.160 --> 07:11.640
So as soon as we stop this Attack.

07:12.080 --> 07:17.040
You can see that the traffic
will go back to normal.

07:20.640 --> 07:23.060
So the stop this capture.

07:23.090 --> 07:29.440
So now if you have let's say you
have pcap file that you have saved.

07:31.960 --> 07:34.000
So let's say that you have a pcap file

07:34.030 --> 07:38.200
that you have saved,
but then some network traffic from your

07:38.230 --> 07:43.180
Web server or from your company
or from a specific network.

07:43.210 --> 07:49.420
So usually there is a lot of data coming
in and out of machines to the network.

07:49.450 --> 07:53.660
So it's hard to go through
each by one line.

07:53.690 --> 07:59.420
So usually what I do is, as you saw, there
is no information when it's not happening.

07:59.450 --> 08:01.680
And if you see random addresses, the only

08:01.710 --> 08:05.820
thing that you can do, just
be categorized by Info.

08:05.840 --> 08:07.600
And know it's going to
take a little bit of time.

08:07.630 --> 08:10.340
You can see if I press enough again, so

08:10.360 --> 08:14.680
this will categorize everything
by information.

08:14.710 --> 08:17.040
So there you go.
You have it.

08:17.070 --> 08:21.260
You have all the packets
going back and forth from my source, IP to

08:21.290 --> 08:24.360
any destination IP
they have no information on.

08:24.390 --> 08:31.400
This is usually traffic that it's
uploading the switch in the network.

08:35.680 --> 08:42.480
But not everything, and now we can see
how everything will behave.

08:46.520 --> 08:51.140
And we are going to
flood the Switch with random mac address

08:51.170 --> 08:57.160
destined t
o specific IP address, so let's say that

08:57.190 --> 09:04.400
we are lets type the same command,
and this time we're going to use the.

09:05.080 --> 09:12.000
We're going to use additional dash D
flag and then we are going to choose.

09:13.840 --> 09:15.320
Our target.

09:20.840 --> 09:22.460
Let's choose this target.

09:22.490 --> 09:24.400
Start capturing.

09:25.880 --> 09:29.720
And perform the Attack.

09:31.200 --> 09:38.320
So you can see in real time here in
Wireshark, that is a lot of random.

09:40.000 --> 09:42.480
Mac address is specifically going to that

09:42.510 --> 09:48.760
IP address that we
have typed in our command macof command.

09:55.040 --> 09:57.780
So go ahead and stop the Attack

09:57.810 --> 10:00.980
you can see again that the
traffic will go back to normal.

10:01.010 --> 10:07.640
Let's stop the capture and again,
you can use the same methods as before.

10:07.670 --> 10:10.380
Like we said, if you have a lot of

10:10.410 --> 10:17.320
packets and traffic captured in a big
pcap file that you have saved from.

10:19.120 --> 10:20.520
captured from your business, from your

10:20.550 --> 10:26.960
Server or from your from your
computer network, you can just.

10:27.120 --> 10:30.260
No doubt buy in for or in this case,

10:30.290 --> 10:37.340
let's say you can choose a specific IP
address that you may suspect that there is

10:37.370 --> 10:40.740
a destination of this
random mac addresses.

10:40.770 --> 10:45.520
And in this case, you can use the IP dot.

10:47.120 --> 10:48.680
Like that.

10:50.360 --> 10:52.640
So you have now all the packets going to a

10:52.670 --> 10:59.180
specific destination, this 8 dot
one eight six, that was the target of our

10:59.210 --> 11:08.440
flooding Attack and now since the Python
Server reduced to a significant amount.

11:08.800 --> 11:12.740
And to the ones that
not only destined to a specific IP address

11:12.770 --> 11:19.320
that we have set out in our
display filter, there, you can see.

11:19.880 --> 11:23.160
Now in the same manner.

11:25.360 --> 11:31.360
If they use the info, you can see that
started some traffic normal and then.

11:31.800 --> 11:38.540
Random mac addresses appear to
have a specific destination IP

11:38.570 --> 11:44.820
here, some of the major counter measures
against Mac flooding our port security.

11:44.850 --> 11:52.220
The are configured to limit the number
of Mac addresses that can be learned.

11:52.250 --> 11:56.100
to ports are connected to the station.

11:56.130 --> 12:00.360
The implementation of
8 zero two point oneX.

12:01.680 --> 12:04.960
Allows PACKETS, gets
this implementation, allows packets

12:04.990 --> 12:11.640
filtering rules issued by a centralized
AAA Server based on dynamic learning of

12:11.670 --> 12:18.160
clients AAA Server or Deep learning Server
is a Server program that handles user

12:18.190 --> 12:23.000
requests for access to computer resources
and for an enterprise, provides

12:23.030 --> 12:30.060
Authentication authorization and
thus the to play this.

12:30.080 --> 12:33.460
In this method,
they discovered Mac addresses are

12:33.490 --> 12:38.840
authenticated against an Authentication
authorization, an accounting Server and

12:38.870 --> 12:44.660
this addresses are subsequently filtered
also mac filtering, where there is

12:44.690 --> 12:47.980
a limited number of Mac
addresses being set.

12:48.010 --> 12:49.700
So that was it for this video.

12:49.730 --> 12:52.460
I hope it was informative enough.

12:52.490 --> 12:55.700
When you're ready, you can go
ahead and click on the next video.

12:55.720 --> 12:56.480
What are you going to learn?

12:56.510 --> 13:00.600
How to detect ARP Cache Poisoning
Attack with Wireshark.

