WEBVTT

00:00.670 --> 00:05.440
In this video, we're going to see how to interact with Waverly and some of the basic commands.

00:06.620 --> 00:11.270
So I'm going to connect to the shells that we already uploaded in the previous video, so all I'm going

00:11.270 --> 00:16.070
to do is we really the URL where the shell is located, followed by the password.

00:17.050 --> 00:18.700
Can hit, enter and I'm in.

00:19.710 --> 00:26.250
So the first thing we're going to do is run the help command, so if you just type in help, you'll

00:26.250 --> 00:29.260
see all the commands that you can run using Mevoli.

00:29.940 --> 00:32.400
So these are all the functions that you can do.

00:33.760 --> 00:38.630
So you can see the name of the function, followed by the description of what the function does.

00:39.610 --> 00:44.650
So the first thing the first thing that we're going to have a look on is system info, which basically

00:44.650 --> 00:48.280
displays information about the current server that we have access to.

00:49.090 --> 00:53.390
So for any of these commands, all they have to do is type it and it'll run.

00:53.860 --> 00:57.410
Now, some of them require options and we'll see how we do that.

00:57.790 --> 01:02.590
So the first thing you want to do before you even run the command is you just tap the command.

01:04.400 --> 01:06.230
So in our case, it's system info.

01:08.510 --> 01:14.750
And then type minus, to see the options and the required, some of them have required commands and

01:14.750 --> 01:18.050
some of them have only optional arguments that you can give.

01:18.620 --> 01:23.180
So for this one, you can specify what kind of information you want by putting minus info.

01:23.750 --> 01:29.330
But generally you can just run system info and we will show you information about the current operating

01:29.330 --> 01:29.720
system.

01:30.200 --> 01:32.090
So I'm just going to run it normally.

01:32.090 --> 01:33.710
So I'm just going to type system info.

01:37.730 --> 01:43.790
As you can see, it collects information about the current server, so you can see the IP, you can

01:43.790 --> 01:45.710
see where your shell is located.

01:47.370 --> 01:50.010
You can see the folder where the shell is located.

01:50.640 --> 01:54.960
You can see information about the operating system, so you can see it's a Linux operating system.

01:55.110 --> 01:56.510
You can see the kernel version.

01:56.520 --> 02:02.430
And as I said before, this is useful when you're trying to find local buffer overflow exploit so that

02:02.430 --> 02:04.170
you can escalate your privileges.

02:05.140 --> 02:09.880
You can see where the conflict is, and again, we're going to talk about that in the future, we can

02:09.880 --> 02:15.100
see the HP version again, very useful when you're trying to bypass functions, when you're trying to

02:15.100 --> 02:16.390
exploit vulnerabilities.

02:17.170 --> 02:23.190
And again, we can see that the next operating system and our current user is the data.

02:23.200 --> 02:25.690
So it's the result of the who who am I command.

02:26.200 --> 02:32.680
And you can also see the document route, which basically refers to the directory which Apache uses

02:32.680 --> 02:33.570
as its base.

02:34.000 --> 02:39.800
So you can see that are we know already that in our meters floatable, all the websites are stored and

02:39.800 --> 02:45.270
where the WW and then after that, if you put device, you'll be in the way.

02:45.460 --> 02:48.460
If you put Mattilda, you'll be in Mattilda.

02:48.940 --> 02:54.070
So again, this is very important information if you're trying to navigate from one website to another.

02:56.770 --> 03:01.750
Speaking of navigating from one website to another, we've seen before how we can Dukat.

03:03.100 --> 03:09.490
Etsi password, and that'll give us the locations that'll give us the users on the current operating

03:09.490 --> 03:15.820
system and the locations where the document route is, and I told you that you can use these locations

03:16.000 --> 03:20.860
to navigate within the server and go from one website to another.

03:22.700 --> 03:27.900
They also have a function that will automatically display this information for you without doing Cat

03:28.170 --> 03:31.860
ETEK password, and the function is called if you just do the help.

03:33.750 --> 03:35.070
The function is called.

03:37.290 --> 03:38.930
Audit ETEK password.

03:39.360 --> 03:42.720
So, again, all you have to do is just type in audit.

03:45.320 --> 03:46.490
ETEK password.

03:49.380 --> 03:54.750
And before I run this again, I'm going to do the minus to see the help, and here you see, why is

03:54.750 --> 03:58.710
this useful now you're going to you might think that why would I even need this function?

03:58.740 --> 04:02.690
All I have to do is just Dukat ETEK password and I'll see the results.

04:02.700 --> 04:04.040
Why would I need this function?

04:04.050 --> 04:04.950
Why would I use it?

04:05.280 --> 04:08.400
And what's handy in here is the vector argument.

04:09.070 --> 04:17.160
So this argument allow you to do is it specifies the method of reading that file because depending on

04:17.160 --> 04:22.860
how you gained your access, depending on the configuration on the server, on the web applications,

04:22.950 --> 04:29.150
on the current user and a lot of variables, you might not be able to read what's inside that file.

04:29.700 --> 04:34.680
So you might look at ETEK password and you'll get nothing or you'll get permission denied.

04:35.760 --> 04:42.510
So what's useful with this command is he can specify a number of methods to read that file and these

04:42.630 --> 04:48.210
methods are listed in here and the vector argument, and if you can't get it with one method, then

04:48.210 --> 04:49.270
just try the next one.

04:49.740 --> 04:51.420
So I'm going to show you how to do this now.

04:51.570 --> 04:57.600
And this is very useful because you have this vector argument with a lot of the functions in Waverly.

04:57.840 --> 05:02.430
And it's really handy because, as I said, depending on the permissions, some of the functions might

05:02.430 --> 05:02.970
not work.

05:03.090 --> 05:05.760
And you can just use a different vector and it'll work.

05:06.480 --> 05:09.270
So for our example, we can just do audit.

05:11.470 --> 05:16.540
ETEK password, and this will actually work, but what I want to do is I want to show you how to use

05:16.540 --> 05:18.510
the vector in case that didn't work for you.

05:18.820 --> 05:22.420
So all you have to do is just put in the vector argument.

05:23.700 --> 05:28.320
Followed by the vector that you want to use, so an example would be filed right here.

05:29.310 --> 05:31.140
So all you have to do is just type and file.

05:35.110 --> 05:37.750
And we can see that this particular vector, Dannevirke.

05:39.960 --> 05:44.760
So we can just try a different vector and we're going to go with Elfriede.

05:48.230 --> 05:53.360
Again, this one didn't work, so we try another one and let's go with the.

05:55.060 --> 05:56.350
File Geth contents.

06:03.630 --> 06:04.840
Again, no luck.

06:05.130 --> 06:08.840
Let's go and try POSIX get updated.

06:13.210 --> 06:13.990
And here we go.

06:14.710 --> 06:20.830
So like I said, in your example or in your case, try all the vectors, some of them will work, some

06:20.830 --> 06:23.260
of them might not work depending on the configuration.

06:24.800 --> 06:30.280
So it's really had the option to use if the normal cat ATC password didn't work.
