WEBVTT

00:01.610 --> 00:04.540
And all of the lectures so far we were exploiting.

00:04.550 --> 00:06.420
Eskil injections manually.

00:06.510 --> 00:13.650
So we were injecting the code into the L or into the text boxes and this video I'm going to show you

00:13.650 --> 00:19.950
a tool called askew mob which allows you to do everything we learned so far and even more stuff.

00:21.270 --> 00:24.140
This tool can be used against my school databases.

00:24.150 --> 00:25.740
Which one was that we were having.

00:25.740 --> 00:29.340
The example on it can also be used against Microsoft.

00:29.340 --> 00:36.750
SAGAL Oracle and other database types the tool is very useful and is very handy in many cases.

00:36.750 --> 00:42.900
Sometimes the injections aren't as nice as the one we see sometimes you only get one output for each

00:42.900 --> 00:48.540
record and you have to look through all the outputs so the tool can automate that and just do everything

00:48.540 --> 00:48.930
for you.

00:48.930 --> 00:56.700
Much easier and much simpler so let's first of all get the URL that we were using for the injection.

00:56.700 --> 01:02.040
So I have that text file here that we were using and I have the URL that we were using before.

01:02.040 --> 01:08.110
So as the user ID for the HP user name is admin password admin pass you don't really need to know what

01:08.110 --> 01:09.150
the username and password.

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

01:12.420 --> 01:17.300
So just to assume that we don't know the password so we're only injecting injecting Eskil injections

01:17.310 --> 01:19.250
we don't really need to know any of this stuff.

01:20.160 --> 01:24.510
All I'm gonna do is copy this and then I'm gonna run a school map.

01:26.760 --> 01:37.610
And I'm gonna do you specify the URL and I'll put my target and I'm gonna make sure that I have it between

01:37.610 --> 01:44.030
two quotation marks so that it doesn't ignore anything and any signs in the middle so we have some signs

01:44.030 --> 01:48.500
and characters in the middle that I wanted to all be treated as one year out.

01:48.500 --> 01:55.430
So all I did is ask your mob you my target and I'm gonna hit enter and the will automatically look through

01:55.430 --> 01:56.380
all the parameters.

01:56.390 --> 02:01.550
So it's going to look through the user info through the username and password to see if any of them

02:01.550 --> 02:02.960
is injectable.

02:02.960 --> 02:08.180
And then once it does that it's going to store it in its memory so it's going to know that this is injectable

02:08.360 --> 02:11.990
and then we'll be able to further exploit the target.

02:11.990 --> 02:17.660
So as you can see now it's thinking that our target could be my school or POS dressed as girl.

02:18.800 --> 02:24.260
That's asking me if I if it should skip other tests and I'm gonna say yes because I know it's my Eskil

02:25.850 --> 02:31.750
and now it's asking me if it should do all the tests for both databases and I'm gonna say yes assuming

02:31.760 --> 02:33.580
that I'm not sure which one it is.

02:33.650 --> 02:38.480
I know it's my skill but I'm just gonna let it do its thing and we'll see if it can do it properly or

02:38.480 --> 02:38.750
not.

02:40.900 --> 02:48.230
So at the moment it's chicken if it's progress que el and I'm assuming it's gonna know that it's not

02:48.260 --> 02:51.280
and then we're going to it's gonna know that it's my escape.

02:53.090 --> 03:00.580
It just found out that the user name seems to be injectable and sure enough it's still in us here that

03:00.580 --> 03:04.560
the parameter username is vulnerable and we can inject it.

03:04.570 --> 03:08.700
So it's asking me do I want to check the other parameters such as the password and all of them.

03:08.830 --> 03:10.270
I can say yes and that'd do it.

03:10.270 --> 03:16.620
I'm gonna say no because I don't mind if it just uses the user name for the injections so it's all good.

03:16.690 --> 03:22.510
Now I ask you Mark knows that the target is injectable and it knows that it's going to use the user

03:22.510 --> 03:29.050
name parameter to inject stuff and I can see that it's figured out that it's running Linux you want

03:29.050 --> 03:36.460
to and it's figured out that it's using view with a patch two point 2.8 and it's used in my ask crowd

03:36.460 --> 03:42.150
server as the database server so let's run a scale map help and see what we can do now.

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

03:47.160 --> 03:53.570
So in this video I'm actually just going to show you a quick look on the video and I recommend you spend

03:53.570 --> 03:57.590
more time with it and try to see what else you can do with it.

03:59.500 --> 04:07.240
OK so let's try to get the current user and we're going to try to get the current database so we're

04:07.240 --> 04:09.430
going to use the same command that we used before.

04:09.520 --> 04:11.190
And I'm just going to add to it.

04:12.780 --> 04:15.750
D.B. I'm asked to get the current databases

04:20.190 --> 04:26.090
or DB is sorry as you can see we got all the database that we have.

04:26.140 --> 04:31.190
So we have the v w a we have information schema which exploit my as well.

04:31.200 --> 04:36.360
I was 10 which was the one that we were exploiting before antique weeki.

04:36.440 --> 04:39.530
Now if we do current user

04:45.230 --> 04:49.340
you can see that we are rude and if I do current database

04:52.280 --> 04:55.880
will see that I was 10 is our current database.

04:55.880 --> 04:58.790
So now let's try to get the tables for Rs 10.

04:58.820 --> 05:05.870
So remember when we did select table name from information schema the tables where table name were a

05:05.870 --> 05:11.640
table schema is equal to ours then we're gonna do we're gonna let ask you a map do all of that for us.

05:11.690 --> 05:18.660
And so the command is going to be we're going to ask it to get all the tables for us and we're going

05:18.660 --> 05:26.180
to use the D option to specify the database and our database is going to be called I was 10

05:29.730 --> 05:32.270
and as you can see it got us all the tables that exist.

05:32.280 --> 05:38.690
And remember it's the same we've got accounts logs table and the credit cards as well.

05:38.790 --> 05:44.580
And now if we want to get the columns then we can use the same command again and we're gonna say Get

05:44.580 --> 05:46.350
me the columns

05:49.480 --> 06:02.000
where the table is called accounts and the database is I was 10 and right here we can see that we got

06:02.000 --> 06:10.770
the columns so we have these admin password and username and we can get the data using the dump option

06:11.910 --> 06:18.180
so it's the same command that we used before so we'll get in the from the table that's called accounts

06:18.600 --> 06:26.250
and the database that is called I was 10 I want you to get me all the data and here we go we got all

06:26.250 --> 06:32.670
the data we have the admin it's password admin pass and we have Adrian and his password is some password

06:32.970 --> 06:35.940
and we got all the data right here.

06:36.190 --> 06:36.870
So I is it.

06:36.930 --> 06:42.690
As I said the tool is very useful it can be used to make our life much easier and it does everything

06:42.720 --> 06:46.740
automatically and it can do everything we did and it can even do more stuff.
