WEBVTT

00:01.560 --> 00:07.440
And all of the lectures so far, we were exploiting ESKIL injections manually, so we were injecting

00:07.440 --> 00:11.120
the code into the URL or into the text boxes.

00:12.120 --> 00:17.640
And this video, I'm going to show you a tool called Ezekial Map, which allows you to do everything

00:17.640 --> 00:20.010
we learned so far and even more stuff.

00:21.270 --> 00:26.530
This tool can be used against my Ezekial databases, which is one that we were having the example on.

00:26.760 --> 00:32.520
It can also be used against Microsoft, Ezekial, Oracle and other database types.

00:33.320 --> 00:36.560
The tool is very useful and is very handy in many cases.

00:36.750 --> 00:40.390
Sometimes the injections aren't as nice as the one we see.

00:40.410 --> 00:46.470
Sometimes you only get one output for each record and you have to look through all the outputs so the

00:46.470 --> 00:50.670
tool can automate that and just do everything for you, much easier and much simpler.

00:52.250 --> 00:58.310
So let's, first of all, get the URL that we were using for the injection, so I have that text file

00:58.310 --> 01:02.080
here that we were using and I have the URL that we were using before.

01:02.090 --> 01:06.510
So the user info, the user name is admin password admin pass.

01:06.650 --> 01:09.190
You don't really need to know the username and password.

01:09.200 --> 01:12.400
So I'm actually just going to put anything here.

01:12.410 --> 01:14.510
So just assume that we don't know the password.

01:14.720 --> 01:17.350
So we're only injecting squirrelled injections.

01:17.360 --> 01:19.310
We don't really need to know any of this stuff.

01:20.230 --> 01:21.680
I'm going to do is copy this.

01:22.800 --> 01:24.540
And then I'm going to run a scale mob.

01:26.660 --> 01:34.760
And I'm going to do you specify the URL and I'll put my target.

01:35.650 --> 01:40.240
And I'm going to make sure that I have a choice between two quotation marks so that it doesn't ignore

01:40.240 --> 01:42.930
anything and any signs in the middle.

01:42.940 --> 01:47.860
So we have some signs and characters in the middle that I wanted to all be treated as one year out.

01:48.520 --> 01:55.240
So all I did is Eskil, my view, my target, when I'm going to hit enter and it automatically look

01:55.240 --> 01:56.470
through all the parameters.

01:56.480 --> 02:01.630
So it's going to look through the user info, through the user name and password to see if any of them

02:01.630 --> 02:02.400
is injectable.

02:02.890 --> 02:06.310
And then once it does, that is going to start in its memory.

02:06.310 --> 02:11.210
So it's going to know that this is injectable and then will be able to further exploit the target.

02:11.980 --> 02:17.450
So as you can see now, it's thinking that our target could be MySQL or PostgreSQL.

02:18.730 --> 02:21.880
It's asking me if I if it should skip other tests.

02:21.880 --> 02:24.310
And I'm going to say yes, because I know it's my skill.

02:25.760 --> 02:31.820
And now it's asking me if it should do all the tests for both databases and I'm going to say yes, assuming

02:31.820 --> 02:36.200
that I'm not sure which one it is, I know it's my skill, but I'm just going to let it do its thing

02:36.380 --> 02:38.800
and we'll see if it can do it properly or not.

02:40.890 --> 02:43.830
So at the moment is checking if it's PostgreSQL.

02:45.490 --> 02:47.240
And I'm assuming it's going to.

02:47.380 --> 02:51.190
No, that's not and then we're going to it's going to know that it's my Ezekial.

02:53.010 --> 02:56.370
It just found out that the username seems to be injectable.

02:57.970 --> 03:04.600
And sure enough, it's still not clear that the parameter username is vulnerable and we can inject it.

03:04.610 --> 03:08.590
So it's asking me, do I want to check the other parameters, such as the password and all of them?

03:08.770 --> 03:14.290
I can say yes and to do it, but I'm going to say no, because I don't mind if it just uses the username

03:14.290 --> 03:15.090
for the injection.

03:15.100 --> 03:15.840
So it's all good.

03:16.660 --> 03:22.750
Now, Ezekial Mark knows that the target is injectable and it knows that it's going to use the username

03:22.750 --> 03:24.580
parameter to inject stuff.

03:25.850 --> 03:31.400
And I can see that it's figured out that it's running Linux, Ubuntu, and it's figured out that it's

03:31.400 --> 03:38.240
using HP with Apache to point to point eight and it's using my ESKILD server as the database server.

03:39.230 --> 03:42.190
So that's from Ezekial, my help and see what we can do now.

03:43.750 --> 03:46.970
Now, this tool is really big and it allows you to do a lot of things.

03:47.170 --> 03:51.400
So in this video, I'm actually just going to show you a quick look on the video and.

03:52.410 --> 03:57.650
I recommend you spend more time with it and try to see what else you can do with it.

03:59.430 --> 04:05.160
OK, so let's try to get the current user and we're going to try to get the current database.

04:06.490 --> 04:10.960
So we're going to use the same camera that we used before and I'm just going to add to it.

04:12.780 --> 04:15.780
DBI aims to get the current database's.

04:20.140 --> 04:21.490
Or DHBs, sorry.

04:23.210 --> 04:29.000
As you can see, we got all the database that we have, so we have D.V., the way we have information

04:29.010 --> 04:35.510
schema us, Floyd, my school, our top 10, which was the one that we were exploited before antiquity.

04:36.410 --> 04:39.590
Now, if we do current user.

04:45.190 --> 04:49.420
You can see that we are rude and if I do care and database.

04:52.230 --> 04:55.210
We'll see that our top 10 is our current database.

04:55.890 --> 04:58.840
So now let's try to get the tables for our top 10.

04:58.860 --> 05:05.920
So remember when we did select table name from information schema, the tables where table name were

05:05.950 --> 05:08.030
table schema is equal to ours.

05:08.460 --> 05:11.360
We're going to do we're going to let us open up to all of that for us.

05:11.640 --> 05:18.750
And so the command is going to be we're going to ask you to get all the tables for us and we're going

05:18.750 --> 05:22.380
to use the option to specify the database.

05:22.560 --> 05:26.220
And our database is going to be called outstand.

05:29.660 --> 05:34.580
And as you can see, it got us all the tables that exist and remember, it's the same we got accounts,

05:34.850 --> 05:38.010
blog stable and the credit cards as well.

05:38.720 --> 05:44.030
And now if we want to get the columns, then we can use the same command again and we're going to say,

05:44.270 --> 05:46.400
get me the columns.

05:49.500 --> 05:57.690
Where the table is called accounts and the database is ours 10.

06:00.040 --> 06:06.640
And right here, we can see that we got the columns, so we have these admin password and username and

06:06.640 --> 06:07.690
we can get the data.

06:09.050 --> 06:10.820
Using the dump option.

06:11.870 --> 06:18.200
So it's the same command that we used before, so we're getting the from the table that's called accounts

06:18.560 --> 06:23.720
and the database that is called outstand, I want you to get me all the data.

06:24.710 --> 06:25.850
And here we go.

06:25.850 --> 06:30.590
We got all the data, we have the admin, it's password admin pass and we have Adrian.

06:30.590 --> 06:32.750
And his password is some password.

06:32.930 --> 06:35.240
And we got all the data right here.

06:36.230 --> 06:38.780
So I it as I said, it was very useful.

06:38.930 --> 06:44.540
It can be used to make our life much easier and it does everything automatically and it can do everything

06:44.540 --> 06:46.820
we did and it can even do more stuff.
