WEBVTT

00:00.270 --> 00:03.120
Alright now carry Linux Image Contents.

00:03.120 --> 00:07.850
Most common tools used in the field for penetration testing and team hacking.

00:08.780 --> 00:12.170
Now, however, it is not practical to include every single tool.

00:12.770 --> 00:13.240
All right.

00:13.250 --> 00:16.340
So for that, we will use the Aptx and Aptx.

00:16.340 --> 00:22.970
It is a set of tools that helps manage packages or applications on Debian based system.

00:23.510 --> 00:23.930
Okay.

00:23.930 --> 00:26.480
So the first thing that start with the aptx update.

00:26.750 --> 00:30.380
So we will use apt update command.

00:31.610 --> 00:34.430
Again, it will show us problem permission denied.

00:34.430 --> 00:36.050
We need to provide the sudo command.

00:36.060 --> 00:38.630
So sudo shift one, shift one as we learned previously.

00:39.170 --> 00:41.780
So sudo apt update press enter.

00:41.780 --> 00:47.150
So here it will start updating the repository and resources here.

00:47.510 --> 00:48.800
The resources list.

00:49.520 --> 00:50.720
Let's wait a little bit.

00:51.540 --> 00:52.500
Now it is done.

00:52.650 --> 00:57.200
Now here you can see that to list the upgradable command.

00:57.210 --> 01:01.080
So control shift C, control shift V as you can see.

01:01.680 --> 01:02.970
So press enter.

01:03.000 --> 01:08.190
It will show us everything that can be upgradable in the system and with the version.

01:08.430 --> 01:09.060
All right.

01:09.780 --> 01:12.360
You know, in my case, I didn't want to regret everything.

01:12.390 --> 01:15.020
I just want to operate some of them, for example.

01:15.030 --> 01:15.870
So.

01:16.690 --> 01:24.520
I will type sudo apt upgrade command or sub command oc and then choose the ones we want.

01:24.520 --> 01:26.500
So for example metasploit.

01:28.050 --> 01:29.310
That framework.

01:29.310 --> 01:32.940
And from where I get this, I get it from here.

01:32.940 --> 01:35.730
So if I scroll up a little bit, here it is.

01:35.730 --> 01:38.040
So Metasploit framework.

01:38.250 --> 01:38.910
All right.

01:38.910 --> 01:41.880
So just copy and paste that control shift, see?

01:43.140 --> 01:50.280
And delete this and but control shift v press enter it will start upgrading and it will tell you what

01:50.280 --> 01:53.420
it will install, what it will upgrade and all of that stuff.

01:53.430 --> 01:57.900
You know that it will start downloading 600 megabyte.

01:57.930 --> 01:58.950
I don't need that.

01:59.190 --> 02:00.610
To be honest for now.

02:00.630 --> 02:03.480
It will do the job so we learn how to upgrade.

02:04.390 --> 02:10.450
Either the whole system, by the way, upgrading the whole system just like this without providing any

02:10.450 --> 02:10.900
tool.

02:11.510 --> 02:13.480
Now, forget about the great.

02:13.510 --> 02:20.770
This is the great, which is the autocomplete from the Kelly Bash terminal behavior.

02:21.490 --> 02:27.490
So it will sudo apt upgrade as simple as that like this and it will start upgrading the whole system.

02:27.520 --> 02:32.280
Now what if I want to install a specific package that is not here?

02:32.320 --> 02:37.280
So for example, we don't have HP, so I want to install it.

02:37.300 --> 02:39.850
So as we learned sudo apt for now.

02:39.850 --> 02:43.120
Now not upgrade of course because hp is not here.

02:44.100 --> 02:48.420
The same thing not update to update the resources so it will be installed.

02:48.660 --> 02:52.530
So sudo apt install the hp and press enter.

02:53.130 --> 02:56.020
As you can see that the HP is already with the new way.

02:56.060 --> 02:59.820
So let's have another thing, not be my SQL.

02:59.820 --> 03:03.810
For example, as you can see, my school is not found.

03:04.110 --> 03:05.850
All right, so far, so good.

03:06.120 --> 03:08.250
Now, how to search for such a thing.

03:08.760 --> 03:12.150
Okay, in that case, I will use the search command.

03:12.150 --> 03:16.200
So sudo sudo apt search this time.

03:17.580 --> 03:19.980
My scan press enter.

03:20.010 --> 03:22.350
It will search for everything.

03:23.160 --> 03:28.260
For my school, as you can see, by phone, dash my school view or whatever.

03:28.290 --> 03:29.310
A lot of stuff.

03:30.190 --> 03:31.420
I noticed packages.

03:33.750 --> 03:35.590
So we can choose whatever we want.

03:35.610 --> 03:38.910
So, for example, this one or this one or whatever.

03:39.720 --> 03:46.050
Now, if I want my actual dash server press enter, you can see that this is the default core one,

03:46.050 --> 03:48.000
which is the default currency of our core.

03:48.030 --> 03:51.330
This is for my school server or default my school.

03:51.330 --> 03:53.640
I'll just copy and paste it.

03:53.640 --> 04:00.470
So sudo apt install and just copy and paste this for example and press enter.

04:00.480 --> 04:01.850
I don't need that for now.

04:01.860 --> 04:02.370
Okay.

04:02.400 --> 04:06.270
Now for example, actually let's have let's have it installed.

04:06.270 --> 04:07.980
So sudo apt.

04:08.550 --> 04:10.740
From here let's copy and paste that.

04:10.980 --> 04:16.350
Sudo apt install default may as well and it will start installing oc.

04:16.560 --> 04:19.590
And as you can see that the stalled and it is ready.

04:19.920 --> 04:26.910
Now what if I don't need this and I want to remove it so I want to install the other one which is this

04:26.910 --> 04:30.980
one, the default, my SQL Server, not the default, my SQL Server core.

04:31.000 --> 04:31.460
Okay.

04:31.470 --> 04:32.760
How to do such a thing?

04:32.760 --> 04:36.440
I will use this command sudo apt remove.

04:36.450 --> 04:43.320
By the way, you can see that we are using the app command and with sub commands install update upgrade

04:43.320 --> 04:46.200
list upgradable and remove.

04:46.200 --> 04:48.330
So remove search and remove.

04:48.330 --> 04:53.220
So remove and just put the name of the package and let's remove it.

04:53.250 --> 04:54.390
It will ask me.

04:54.390 --> 04:59.160
Yeah, after this operation, ten kilobytes of that, this could be freed.

04:59.190 --> 05:00.120
PRESS Yes.

05:00.270 --> 05:03.360
And you can see that now it has been removed.

05:03.660 --> 05:04.790
All right, cool.

05:04.800 --> 05:05.840
So far, so good.

05:05.850 --> 05:13.290
Now, by the way, sometimes this doesn't remove everything just to remove the pointer or some.

05:14.350 --> 05:15.040
Dependencies.

05:15.040 --> 05:19.900
But if you want to remove everything, you need to put dash, dash, command.

05:19.900 --> 05:23.710
But be aware and be cautious while using the purge.

05:23.710 --> 05:28.280
Because the purge, it will remove everything related to this package.

05:28.330 --> 05:29.830
So if I press enter.

05:30.740 --> 05:34.220
You can see that by the way, it is already installed.

05:34.310 --> 05:36.850
Sorry, and installed and removed.

05:36.860 --> 05:38.840
So yeah, nothing to be removed.

05:39.410 --> 05:43.610
Now again, I'm telling you that on a production system, not on the server.

05:44.620 --> 05:48.490
Not on the Linux system because in Linux we don't care.

05:49.290 --> 05:52.440
We want things to be running and to start.

05:53.220 --> 05:54.540
Attacking the systems.

05:54.810 --> 05:55.350
All right.

05:55.920 --> 06:01.500
Because after all, we are looking from the perspective of a red team, not the blue team here.

06:01.530 --> 06:05.820
Now, finally, we have another thing, which is the DD package.

06:05.850 --> 06:06.500
Okay.

06:06.690 --> 06:09.460
Now, this is not using the APT.

06:09.510 --> 06:15.810
So if I type it here, this is a package manager for Debian as you can see D which means debian bug.

06:15.840 --> 06:17.410
So which means packages.

06:17.430 --> 06:18.060
All right.

06:18.060 --> 06:25.680
So sudo the package we will use dash I command which which means installed and what the name of the

06:25.680 --> 06:27.930
package for example test dot.

06:29.440 --> 06:30.190
DB the.

06:31.060 --> 06:38.410
Now this is just a test now not something to be installed, but I can, for example if I want to install

06:38.470 --> 06:45.340
specific packages from the internet for Python, for BHP, my school or whatever, and I don't need

06:45.340 --> 06:46.060
to use the app.

06:46.390 --> 06:48.340
I want it to be installed.

06:48.340 --> 06:49.840
The Debian file.

06:50.410 --> 06:53.740
So after I install it, for example, its name is test.

06:53.860 --> 06:55.770
So sudo de package dash.

06:55.780 --> 07:00.400
I install this package which is the package and it will start install.

07:00.490 --> 07:01.080
Alright.

07:01.090 --> 07:01.890
Okay, cool.

07:01.900 --> 07:02.920
So far so good.
