WEBVTT

00:06.720 --> 00:11.060
Hello, guys, and welcome to another video
of this chapter

00:11.090 --> 00:16.200
in this video, we're going to learn how to
perform a Brute-force Attack and

00:16.220 --> 00:23.520
specifically in this situation on FTP,
Brute-force, Attack on one of our FTP

00:23.550 --> 00:27.900
servers that we are going to
host on a Windows environment.

00:27.920 --> 00:30.640
And of course, we are going to learn how

00:30.670 --> 00:38.100
to detect such an attack by using
Wireshark and how to filter out.

00:38.130 --> 00:45.600
The traffic in Wireshark in order to
see the freight looking a dent in this.

00:45.760 --> 00:47.640
So let's start.

00:48.560 --> 00:50.160
First of all, you're gonna need to

00:50.180 --> 00:55.080
download in one of your
Windows machines, XAMPP.

00:57.360 --> 01:02.700
So once you have installed XAMPP, you can
just go ahead and open it

01:02.730 --> 01:08.700
and you're going to need to start
File-Zilla, which is the FTP Server.

01:08.730 --> 01:11.210
So just go ahead and start the service

01:11.240 --> 01:16.930
with this machine so you can see that
File-Zilla had started.

01:16.960 --> 01:22.680
And these are the ports and we're
going to need to add the user.

01:23.200 --> 01:26.060
In our File-Zilla Server

01:26.090 --> 01:30.620
that we are going to use,
we're going to add a user

01:30.650 --> 01:37.560
to file File-Zilla Server that we are
going to be able later on to Brute-force.

01:37.760 --> 01:38.900
And use Wireshark

01:38.930 --> 01:45.320
to detect that Brute-force Attack so you
can just go ahead and press on Admin.

01:45.560 --> 01:47.000
OK.

01:48.080 --> 01:49.840
This panel.

01:50.960 --> 01:56.200
Blow, you can just go to Edit users and.

01:56.880 --> 01:59.660
You can add a user here at the top

01:59.690 --> 02:06.740
the user with a user name of course,
you can just press add.

02:06.770 --> 02:08.600
You press the.

02:09.280 --> 02:12.480
And the username that you are not.

02:12.600 --> 02:14.320
And you can press user name that you would

02:14.350 --> 02:34.760
like press ok once you create a username

02:35.320 --> 02:41.360
Once you create a new user, you will need
to add the Directory that you would like.

02:44.920 --> 02:48.780
To be in the shared folder, that username.

02:48.810 --> 02:53.800
To be activated, so in this
case, we're going to use.

02:54.600 --> 02:56.280
The user.

02:56.520 --> 02:58.480
The user name user.

03:13.520 --> 03:23.200
In this case, we are going to use the
username user. Click Ok, and you can see.

03:23.360 --> 03:30.960
The account has started,
now we can just go ahead to our Linux

03:30.990 --> 03:36.640
machine and use Hydra, which is the one of
the tools that we were using to

03:36.670 --> 03:39.960
Brute-force
our HTTP Server that we just set up on

03:39.990 --> 03:45.880
windows and see how before
you would go to Kali Linux machine.

03:45.910 --> 03:49.520
You can just fire Wireshark choose

03:51.040 --> 03:56.520
network interface press, start
capturing the Picart and let.

03:57.040 --> 04:02.160
Wireshark here captured in the Network
traffic, and then in the meantime, we are

04:02.190 --> 04:07.400
going to go to our Linux machine and
prepare for our Brute-force Attack.

04:12.040 --> 04:14.300
So here we are in a Kali Linux machine,

04:14.330 --> 04:20.280
and now we are going to
prepare for the Brute-force attack by

04:20.300 --> 04:25.940
using Hydra, so did this go ahead by
typing Hydra.

04:25.970 --> 04:30.640
So if you would like to learn more about
how you set up the command for the

04:30.660 --> 04:36.040
Brute-force, Attack you just
go ahead and use the help.

04:36.280 --> 04:40.340
You can just go ahead and use Hydra and

04:40.360 --> 04:47.420
you get all sorts of
information about how you're supposed.

04:47.450 --> 04:53.420
How are you supposed to make a command?

04:53.450 --> 04:59.220
So for these Brute-force Attack, we are
going to use Hydra

04:59.250 --> 05:07.100
before we set up our command in order to
Brute-force Attack our FTP Server.

05:07.130 --> 05:09.680
You can just go ahead and type Hydra and

05:09.710 --> 05:15.420
you can see all the information about how
you can construct your

05:15.450 --> 05:23.580
Hydra command in order to Attack
FTP or SSH. For that Attack, we can just

05:23.600 --> 05:32.200
go and type Hydra, as you can see of the
manual we are going to use.

05:32.360 --> 05:36.320
A file for guessing.

05:36.360 --> 05:39.960
The login name,
suppose that we don't know the user name,

05:39.980 --> 05:47.620
although we set it up earlier or
FTP Server and we're going to use

05:47.650 --> 05:53.980
a password file and the user name
file that we previously created.

05:54.010 --> 05:55.600
So this it's not documents.

05:55.630 --> 05:57.400
So we can.

05:58.360 --> 06:01.560
Go ahead, if you would like to see.

06:04.240 --> 06:12.100
The location of each of these txt files
and just go ahead properties and its.

06:12.130 --> 06:14.520
My machine is home.

06:14.920 --> 06:16.760
So we're going to use.

06:20.520 --> 06:25.600
The user name location
is a name file first.

06:54.720 --> 06:59.920
Space dash capital P and you stop.

07:00.240 --> 07:02.200
The location.

07:05.400 --> 07:10.040
Of your Password file that you
have created or downloaded before.

07:30.160 --> 07:33.760
We would like our results to be
proposed, so in this case, we're going to

07:33.790 --> 07:40.140
use Dash v capital V, and then we

07:40.170 --> 07:44.900
going to write the IP of our target.

07:44.920 --> 07:46.840
So in this case.

07:48.240 --> 07:54.440
The FTP Server is sitting on
localhost on our machine, so we are going

07:54.470 --> 08:00.880
to use the IP address of are we dismissing
to Attack, which is in this case is.

08:06.240 --> 08:08.180
And then space.

08:08.210 --> 08:13.660
And then we can write FTP
in order to start Brute-force.

08:13.690 --> 08:16.620
So let's just go ahead.

08:16.650 --> 08:21.420
Remember that we fired up Wireshark on our

08:21.450 --> 08:25.640
Windows machine, so we are
expecting it to cut or.

08:25.840 --> 08:31.000
So we are expecting it to catch
our looking attempts, so let's go and

08:31.030 --> 08:37.400
perform the Attack by pressing under and
you can see those multiple attempts.

08:38.640 --> 08:43.440
And we are going to wait for
our  attack to begin.

08:44.120 --> 08:46.120
And we are going to wait for our Attack to

08:46.150 --> 08:53.320
finish before we go to our Windows
machine and see if Wireshark captured.

08:53.920 --> 08:59.780
It felt like an attempt on our FTP,
so now we are going to press enter.

08:59.810 --> 09:05.400
In order to perform the attack
on our target machine and.

09:05.560 --> 09:09.920
While we're waiting for the Attack
to finish the Brute-force Attack.

09:10.320 --> 09:16.320
We are going to see if it found the
correct username Password, and of course,

09:16.350 --> 09:21.340
we are going to run
back into our Windows machine

09:21.370 --> 09:27.820
to see if and how Wireshark
captured this

09:27.850 --> 09:35.240
traffic, this unusual traffic, or enough
to be port with the looking attempt.

09:35.600 --> 09:40.220
So as you can see, there is all sorts of
combinations

09:40.250 --> 09:46.400
happening between the username and
password from these two files that we used

09:46.480 --> 09:49.800
you can see all
the Brute-force Attack has finished.

09:49.820 --> 09:56.180
And as you can see,
it found the username and password.

09:56.200 --> 09:59.140
So now we can use

09:59.170 --> 10:05.780
this conditions to remotely Exploit
login and Exploit that service.

10:05.810 --> 10:07.760
But that's not what we're here for, so

10:07.790 --> 10:13.460
let's run back
to our Windows machine and see how

10:13.490 --> 10:20.660
Wireshark captured this attempt for
locating the Backdoor windows machine.

10:20.690 --> 10:23.960
We have Website here still capturing what

10:23.990 --> 10:29.220
we are going to just go ahead
and stop this traffic capture.

10:29.250 --> 10:33.420
And remember that we started capturing

10:33.440 --> 10:41.260
network traffic long before we start the
Brute-force Attack from our Kali machine.

10:41.290 --> 10:44.760
So there is a lot of like stuff happening

10:44.790 --> 10:51.960
here and you can, of course, just go
ahead with one by one.

10:51.990 --> 11:01.340
You can see here there is a request that
is captured from our Kali Linux machine.

11:01.370 --> 11:07.560
About the user attempt, but you can
filter out the looking at them if, let's

11:07.580 --> 11:11.720
say you have like a Server that is like
multiple connections happening so you

11:11.750 --> 11:15.420
don't have the time to go through
each and every line.

11:15.450 --> 11:22.680
You can just go ahead and apply the
FTP display filter Wireshark and the

11:22.710 --> 11:28.700
results appear for the protocol to be
and how many requests have been made.

11:28.730 --> 11:35.880
So user is a Brute-force Attack is.

11:36.200 --> 11:37.920
In this case, we're using a dictionary

11:37.950 --> 11:42.980
Attack it is like a normal looking
attempt, except the Plugins had been done.

11:43.000 --> 11:44.440
Uh.

11:44.840 --> 11:49.720
As we demonstrated by a program
instead of a human, so.

11:50.840 --> 11:54.080
The passwords and the user names are

11:54.110 --> 11:58.340
coming from a text file
and the login attempts are tried

11:58.370 --> 12:05.600
repeatedly, as you saw from from HYDRA
in this case, until it succeeds using a

12:05.630 --> 12:10.500
username and password combinations
from the list that we provided.

12:10.530 --> 12:14.540
So in this filter that we applied on

12:14.570 --> 12:21.180
in our Wireshark, you can see that there
is multiple request with the same username

12:21.210 --> 12:25.140
name trying different
passwords for the user name.

12:25.170 --> 12:29.220
And then the next on the list, which is
the same user name

12:29.250 --> 12:34.360
like in this case, Péter, different from
the last time, which is user name and.

12:35.480 --> 12:40.200
trying multiple
Password to see if it fits the username so

12:40.230 --> 12:42.660
we can achieve Login, so
you can just go ahead.

12:42.680 --> 12:44.160
This is.

12:45.760 --> 12:49.440
Definitely not a human train the same.

12:50.440 --> 12:54.700
A user name and password all over.

12:54.730 --> 12:58.760
For the same username, so
there you go, you have it.

12:58.790 --> 13:01.880
This is how you can filter out from all

13:01.910 --> 13:07.740
this traffic that you captured, possibly
from FTP Server, so you can see

13:07.770 --> 13:14.640
a suspicious looking attempt
in your network traffic.

13:14.960 --> 13:16.580
So that was it for this video.

13:16.600 --> 13:19.700
And when you're ready, please go
ahead and click on the next video.

13:19.720 --> 13:20.640
What are you going to learn?

13:20.670 --> 13:23.240
How to detect suspicious
traffic with Wireshark?

