Alright now carry Linux Image Contents.
Most common tools used in the field for penetration testing and team hacking.
Now, however, it is not practical to include every single tool.
All right.
So for that, we will use the Aptx and Aptx.
It is a set of tools that helps manage packages or applications on Debian based system.
Okay.
So the first thing that start with the aptx update.
So we will use apt update command.
Again, it will show us problem permission denied.
We need to provide the sudo command.
So sudo shift one, shift one as we learned previously.
So sudo apt update press enter.
So here it will start updating the repository and resources here.
The resources list.
Let's wait a little bit.
Now it is done.
Now here you can see that to list the upgradable command.
So control shift C, control shift V as you can see.
So press enter.
It will show us everything that can be upgradable in the system and with the version.
All right.
You know, in my case, I didn't want to regret everything.
I just want to operate some of them, for example.
So.
I will type sudo apt upgrade command or sub command oc and then choose the ones we want.
So for example metasploit.
That framework.
And from where I get this, I get it from here.
So if I scroll up a little bit, here it is.
So Metasploit framework.
All right.
So just copy and paste that control shift, see?
And delete this and but control shift v press enter it will start upgrading and it will tell you what
it will install, what it will upgrade and all of that stuff.
You know that it will start downloading 600 megabyte.
I don't need that.
To be honest for now.
It will do the job so we learn how to upgrade.
Either the whole system, by the way, upgrading the whole system just like this without providing any
tool.
Now, forget about the great.
This is the great, which is the autocomplete from the Kelly Bash terminal behavior.
So it will sudo apt upgrade as simple as that like this and it will start upgrading the whole system.
Now what if I want to install a specific package that is not here?
So for example, we don't have HP, so I want to install it.
So as we learned sudo apt for now.
Now not upgrade of course because hp is not here.
The same thing not update to update the resources so it will be installed.
So sudo apt install the hp and press enter.
As you can see that the HP is already with the new way.
So let's have another thing, not be my SQL.
For example, as you can see, my school is not found.
All right, so far, so good.
Now, how to search for such a thing.
Okay, in that case, I will use the search command.
So sudo sudo apt search this time.
My scan press enter.
It will search for everything.
For my school, as you can see, by phone, dash my school view or whatever.
A lot of stuff.
I noticed packages.
So we can choose whatever we want.
So, for example, this one or this one or whatever.
Now, if I want my actual dash server press enter, you can see that this is the default core one,
which is the default currency of our core.
This is for my school server or default my school.
I'll just copy and paste it.
So sudo apt install and just copy and paste this for example and press enter.
I don't need that for now.
Okay.
Now for example, actually let's have let's have it installed.
So sudo apt.
From here let's copy and paste that.
Sudo apt install default may as well and it will start installing oc.
And as you can see that the stalled and it is ready.
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
one, the default, my SQL Server, not the default, my SQL Server core.
Okay.
How to do such a thing?
I will use this command sudo apt remove.
By the way, you can see that we are using the app command and with sub commands install update upgrade
list upgradable and remove.
So remove search and remove.
So remove and just put the name of the package and let's remove it.
It will ask me.
Yeah, after this operation, ten kilobytes of that, this could be freed.
PRESS Yes.
And you can see that now it has been removed.
All right, cool.
So far, so good.
Now, by the way, sometimes this doesn't remove everything just to remove the pointer or some.
Dependencies.
But if you want to remove everything, you need to put dash, dash, command.
But be aware and be cautious while using the purge.
Because the purge, it will remove everything related to this package.
So if I press enter.
You can see that by the way, it is already installed.
Sorry, and installed and removed.
So yeah, nothing to be removed.
Now again, I'm telling you that on a production system, not on the server.
Not on the Linux system because in Linux we don't care.
We want things to be running and to start.
Attacking the systems.
All right.
Because after all, we are looking from the perspective of a red team, not the blue team here.
Now, finally, we have another thing, which is the DD package.
Okay.
Now, this is not using the APT.
So if I type it here, this is a package manager for Debian as you can see D which means debian bug.
So which means packages.
All right.
So sudo the package we will use dash I command which which means installed and what the name of the
package for example test dot.
DB the.
Now this is just a test now not something to be installed, but I can, for example if I want to install
specific packages from the internet for Python, for BHP, my school or whatever, and I don't need
to use the app.
I want it to be installed.
The Debian file.
So after I install it, for example, its name is test.
So sudo de package dash.
I install this package which is the package and it will start install.
Alright.
Okay, cool.
So far so good.