All right so second to last video here in our Olympic series.
And this one is a very important one.
So we're going to cover a few things I want to cover how to install files how to install updates and
how to get files from GitHub.
All these are going to be very important in things that you're going to encounter as a pen tester all
the time.
So from a Linux perspective let's say that you want to update your system and you're in the terminal.
Well you can do is you can say something along the lines of APT update and we'll say also apt upgrade
when you're done with that.
So what this is going to do is this is going to go out and you can see these archives that Linux.
I'll scroll back up here and all these tools need to be installed.
But this archive of Linux that you use this is what's called a repository.
So we're going out to these repositories and we're saying hey what's been updated lately and what do
we need to download.
And you can see OK these packages that are automatic and saw no longer required.
We can auto remove them if we need to and then we have all these new packages that need to be installed.
If you look through the list it's quite a bit.
And then we've got the packages that will also be upgraded through here as well so we have all these
updates upgrades et cetera if we want to perform this it's going to take up a hundred and seventy one
megabytes of additional disk space and it will probably take a little bit of time to download upgrade
etc..
So if you want to do this go ahead and push your update you actually don't have to to be successful
in the course.
But just to provide clarification in understanding of how it's done and what it's doing.
Just wanted to point that out.
Now let's say we just wanted a tool a specific tool.
You see all these things in here.
A lot of them are related like python which is interesting because I do want to install a python tool.
So let's install a tool called Pip.
So what we're gonna do is we're going to say at install and then the tool is called Pip.
But it is Python dash Pip like this.
So type that in Hit enter instead of go check for it.
It's going to look for it.
And it found it which is great.
If it weren't to find it it would say something a little different we can show you say hit some numbers
in there say unable to locate that package.
So you'll know you're on the right track with the package name here.
So I'm going to go ahead and actually hit yes to install this.
It's going to go out and download everything we need for Pip and you're gonna see why Pip is important
here.
So there is Pip Pip three.
Now both of those go out and do some installs for us and we're gonna go ahead and just say yes and those
installs are related to Python so we're gonna use a lot of tools in this course that are related to
Python and it's going to install those tools for us so Pip is 4 for Python Pip 3 is for Python 3.
Now Python 3 is the latest and greatest Python 2 is actually being deprecated in 2020 or end of service
in 2020.
So a lot of things are actually moving away from that now.
So when we get into the python section of the course we're actually going to be working completely in
Python 3 for this reason solely.
So while we wait for this let's go ahead and go out to the inter webs and I'm just going to applications
up here and then Firefox terminal and what we're gonna do is we're gonna go to Google and I want to
look for something on github.
So I want you to look for get hub and then just type in impact.
Now impact is a toolkit that we're gonna be using when we get to the exploitation part of this course.
But it's going to be a good tool that we're going need to install anyway so why not go ahead and take
care of it while we're here.
So we're gonna do is we're going to click on this secure off Corp here and we're going to do this clones
service a clone or download right here we're going to just copy this and now in our our terminal what
we're gonna do is we're gonna see these and I like to put all my installs and this is very common for
Linux in my opt folder.
And here's what we're gonna do.
We're gonna say get clone and we're going to paste this here.
So get is just downloading from GitHub.
We're cloning this this repository and we're going to go ahead and just hit enter.
And now if we C.D. into the name of it.
So here it is in packet.
We're just gonna say C.D. and packet OK.
And a lot of times with Pip what you have to do with Pip with with the Get cloning you have to go in
actually look at the get hub page to see how to install it.
So if we scroll down it says grab the latest stable version unpack it which we did and then run pip
install period from the director replaced it isn't that easy.
Yes.
So what we're gonna do is full screen this and we're just going to say it install period and it's to
go out and download all the things that we need for Python related to this program.
And now it should be install the quick way to check off its install there's one tools called yes exact
pie.
You can just P.S. exact sir typing that hit tab and it should auto tab complete for that.
So that will allow you to have this installed so this showed you really briefly three ways to do installs.
One is the way of using updates and upgrades to download everything at once that you need to update.
The other one is to say app to install and actually just install a specific package that you need.
So in this case we installed Pip because we actually were going to need Pip anyway to install impact.
So the third way the third most common way is to download something off of get hub.
And we just use get clone cloned that down and then we went in follow the instructions for the install.
In this case it was pip install period and now we have our tool installed and ready to go.
So a lot of times you're gonna have to download tools off of get hub or things that are just not by
standard or by default.
Come with Cally that you're going to have to go out there and find.
So this impact tool kit for example does come with Cally but I don't like the one that comes with Cally
it's always unstable for me.
So I like to go out and I like to get the latest stable version off of GitHub and install this and it
works really well.
And this is some of my methodology than passing on to you.
So hopefully this makes sense and this will give you an idea of how to install these packages or how
to make updates or how to get something off GitHub.
So in the next video we're going to go ahead and cover some bash scripting get into a little bit of
that and have some fun and then we'll be moving on to Python and learn even a little bit more scripting.
So I will get you over in the next video.