In this video, we'll cover how to set up
Kali Lennox as a virtual machine with an
all hypervisor.
What exactly is Kali Lennox to put
simply Kali? Lennox is one
of the most popular Lennox beasts penetration testing
operating system that is available within
the industry. The cool thing is it is
commonly used by both cyber Security
Professionals on researchers to Simply discover
unexployed Security vulnerableties
on systems are Networks.
Furthermore Kali Lennox is free and
it contains a lot of pre-installed penetration
testing tools that are commonly
used by industry professionals.
So let's get started with setting up
our version or our personal Carly
Linux virtual machine.
To get started. Let's head over to
Google.
And let us search for kali.org, which
is simply the official website for the
Kali lungs operating system, as you
can see we have found actual carly.org website.
So let's click on it.
Once you click on akali.org website, we want
to click on getcaly.
like so
once you click on getcarly we can see
their various different images data for
different types of deployments. But since
we are setting up a virtual machine, we
can simply click on this box right
here. So let's do that.
Once we click this we are carried down
to the various virtual Machines of
Kali Linux. There's a VMware
version the virtualbox version and there's
even the Q mu version.
But because we are using the virtualbox version, let's click
on this download link right here. Once you
click this download link, it should take probably a few
minutes to download onto your computer. However, I
actually went ahead and download this
prior to the recording of this video simply because the
download size it is a little over two gigabytes
in size and that me take
some time.
So you can pause a video start your download Once the
download is complete we can continue.
So now the download is completed. Let's head over
to actually get started setting up Kali locks.
As you can see I have the Kali Linux virtualbox image
that is already downloaded. However, if
you look closely you can see that it's with another
zip file so you can use an unzipper
tools such as 7 zip to actually extract the
files to extract the files simply right click
on simply select.
more options
and then select 7 zip, and now
we can simply choose option to extract
files like so
once everything is set. We can simply click OK
and this should take a few seconds. So
perhaps similar to the complete.
Okay, great. So now the files extracted
let's take a look at how these files what are
these files? So I'm going to double click an extracted
folder like so and we can see that there are
two files in particular. There's a virtual
this image and then there's a virtualbox machine definition.
So what I'm gonna do is I'm gonna copy these two
files.
And I'm gonna put it in a
very special location where I have all my virtual machines stored.
So I typically put all of my virtual machines
within a another hard drive.
Well another solid drives. This one's
called virtualbox VM and here I
can simply create a new folder. So let's
create a new folder. I'm gonna call
this Kali
Lennox
I'm going to call this on 2022 because it's new.
Then I'm gonna enter the folder like so and simply
paste these two files inside here.
Okay, great. So now these files are placed.
Let's open virtualbox.
So now we have the user interface of virtualbox and we
can do a couple of things. So, let's
Click On Tools like so and we
can either click on import or click on ADD.
I think we should click on Art, which is a better option right now.
So let's click on ADD.
And this will allow us to actually search for
our virtual machine or our
new virtual machine files. So simply navigate
to where you had copied the Kali
Linux virtual images and I
copied mines, right and this
will notice Kali Lux 2022 and here you
can see we can see select the virtualbox machine definition
file simply click on open.
And just like that Kali Linux
is now imported within virtualbox. So are
you all set to go while not quite this some
minor tweaks and changes. I need you to
make so firstly select the Kali
Linux virtual image or the virtual machine like so
click on tools
Once you click on tools click on system.
Here you can simply adjust the amount of
memory. You are looking to your virtual machine.
I highly recommend to do not enter the orange
zone or the red zone. So for instance,
my computer currently has 16 gigabytes
of RAM, but Kali, let's
get operate efficiently or approximately 2
to 4 gigs of RAM. Alright, the processor
you can again increase the
number or even decrease a number of virtual CPUs.
I usually leave this hot too.
A good practice is if you have the option to
enable nested virtualization, you can simply enable it
if you don't have the option available. That's totally
fine. That's it visualization. Simply allows
you to install a virtual machine
inside of a virtual machine.
Technically it's like virtual section.
If you catch my drift.
Next we can click on network.
The thing about our laptopology is Kali Lennox
actually has two network interfaces one
network interface connects to the actual internet and
an other network interface connects
to our pen test net Network.
Let's configure our first network
adapter or our first network interface.
We will use our first network interface to connect directly to
the internet.
So you can click on attach to change the
drop-down option to bridge adapter.
Then you will have a name. These are different
network adapters on your personal computer. However, the network
adapters on my computer may be different
from yours simply select your network adapter on
your computer, which is being used to connect to your physical Network
what it's a wide Network or a
wireless network. So for instance, my computer is
using a wireless network adapter to
connect to my Wi-Fi network. So therefore I selected
my Wi-Fi adapter.
On the preference actually on the
advanced simply change the promiscuer smooth
to allow all next.
Click on an adapter to Simply click
on enable adapter change our attached
to to internal Network once you
change it to internal Network.
If there's a name simply delete the name and specify
the pen test network if you use
a drop-down option, you may not see the pen test
network available. So therefore you need to insert it
manually and keep in mind it is key
sensitive.
Last but not least click on promiscuous mode
set it to a low all and simply ensure the
cable is connected.
Once you're finished, you can simply double check your settings for
your system and to make sure that everything is
configured correctly. But most importantly we
want to ensure that your cardiologics machine has approximately
two to four gigs of memory located.
At least one to two CPUs and most
importantly again, the network adapters
are configured correctly. So simply click on okay.
And now that this configuration is made let us
create a snapshot the snapshot of the virtual
machine will simply allow us to revert to a previous
point in time. If any sort of
issue should occur and we need to restore the virtual
machine quickly.
To create a snapshot simply click on this icon
right here select snapshots then click
on tick. Once you click
on take we can create a name for the snapshot because this
is a fresh installation. I usually call
this fresh install all fresh
installation.
You can also add an additional description in
this field here. However, simply click
on OK once you are done.
Then let's change the spark to details.
And to power on our virtual machine we simply
click on start like so and within
a second or two, the virtual machine
is going to be powered on and we will
be able to interact with it.
So now the virtual machine is powered on.
To login. The username is Kali.
And the password is also Kali.
When your virtual machine boots, sometimes the interface may
not scale to your desktop resolution to resolve.
This is you simply have a
mouse on view.
And toggle with auto resize gas display.
like so
and now your Carly learns which on machine desktop interface
has no skilled automatically to match
your resolution on your computer.
There's a few things I want you to do.
Firstly let us change our password
on our Kali lungs machine simply because
it's good practice. We don't want anyone
else to log into our Carly likes Machine by using
the default credentials.
Simply click on the terminal which is this icon here.
Wanted to know window opens.
We can maximize it.
You can press control shift and a plus
sign on your keyboard to increase the font size. You can
even press the control and pee combination to
change the user interface to represent my
own.
If you want to change a background, it's quite simple. You
can right click anywhere on a terminal
and click on preferences.
Here we can change a team so we could
have green on black so you can look pretty cool or
we can leave it as default.
However, if it is you want to adjust the transparency
or perhaps disable it we can simply disable
it so it will transference you
can set it to zero like so
Click apply and click. Ok, but once you
do, so we'll definitely need to adjust our
font size once more.
Alright, so now we have everything set.
Let us change our password.
So to change our password we could
type pass WD like so
and press enter.
Now it will ask for the current password for the user
account Kali simply enter Kali keep in
mind that when you are entering a password. It is invisible on
the terminal for security purposes. Once you
enter a password, press enter now you can enter your new
pop password.
Once you enter a new password, press enter one more
time. No, it will ask you to re-enter the password to
ensure it is correct simply enter it and hit
enter and know the password is changed.
Let's clear the screen.
now let us test our internet connectivity because we
need we need to ensure that our internet is
we can properly
so let's ping and let's do ping
e dot e dot e dot eat -
C4. What is command will do
it will send 4 icmp messages to Google
DNS server, and hopefully we'll get responses.
So great. We are able to actually ping Google's
DNS server.
But we are able to Ping it via IP.
What if our DNS is not working? That's verify
if the analysis working for us. Let's ping.
Google's mean website.
and dash C to specify four icmp
messages
unfortunately
It has resolved the IP address to an
IPv6 IP address for www.google.com.
However, even though it was able to
resolve we got some lost messages.
We'll fix this momentarily. So let's do clear.
To verify the IP addresses are configured correctly.
We can simply right click on this
network icon.
as shown here simply right click and then choose
edit connections like so
once you click on edit connections, you should be able to
see that you have two network adapters. Remember one
network adapter is connected to the internet and
another network adapter is connected
to the pen test Network that
we have created. So let's click on wired
connection one simply because that is
the virtual network adapter one. Click on the
gear icon to upon the properties.
And what we can do is we can click on
IP version 4 settings and let us
change our DNS servers just ensure that our
audience servers are configured correctly. So let's use Google's
DNS server like so
We will have the primary and also.
the secondary
Okay.
And just be on a safe side. Let us see
well IPv6.
So we will have good connectivity and this
is to prevent any sort of routine issues with
the IP version 6 address scheme.
So once the DNS servers are
set correctly. Let's click on Save.
And we should be fine.
So as a good practice, just once more let
us reboot our computer. Actually. Sorry, let
us reboot Kali Linux.
On the top right hand corner, simply click the power button.
And next click on restart.
So this will restart khalidonax and it
will flush any DNS information phone within
the operating system. So in other words, it will
clay any sort of cash that is stored on all
the virtual machine.
Let's login.
Specify the new password that you are
created previously.
on the desktop interface should boot in
like so
let's open the terminal.
Rumble we can click on control shift on
the plus sign to increase the font size. We can
even click on control P to even change the orientation
or the formatting or for
command prompt. Well the terminal from that
is
So let's ping.
Google's DNS super via IP address should
get responses like so
let's try to Ping the website itself.
Now, let's see if this will resolve any sort of whose name
to IP addresses.
And there we go. It was able to resolve the IP version 4
address of Google's website. Are you
able to successfully ping Google hand
get some responses so great by the
sealant IPv6 it seems so how solve the
problem for us.
All right. The other thing is lettuce update
all the source repositories
that is found on Kali Linux
operating system to do this. Let's type
sudo up update like so
and press enter.
Once you use a sudo command it specifies to escalate privileges
temporarily. So now is
it is asking for the password simply enter the new password
at your set for the Kali Linux user account. Once you
enter it, press enter button on your
keyboard, and this will automatically switch on update
any sort of Source on repositories on
your local Kali lyrics operating
system, depending on your internet connection this meeting
a few seconds to perhaps a few
minutes to complete.
And just like that everything is completed.
Last but not least less verify that we have
two network interfaces and that we are
receiving IP addresses from our physical network via the
Internet connection, and also that we are receiving an
IP address from the virtual Network that you have created to
do so we can simply type ifconfig like
so and press enter.
here we can see we have ethernet0 and
currently ethernet series connected to my physical Network
which in my lab itself, so
Ether2 is actually connected to pen test
net Network which is within our laptopology.
So great. We have a two network adapters
connected and everything seems to be working. Well, so
let's shut down our Kali looks machine,
but before proceeding, let me show you
something.
On the left hand side on the top Corner. If you
click on a Carly icon, we can see that the
menu actually contains a list of
tools and all of these tools out
in categories Beast or on the stage that you
are doing within your ethical arcan or your pastries on
test. For example, the first thing we usually do
in ethical hacking and penetration testing is we'll do
information gathering and here you can
see that I click on 01 information gathering
and then we have a list of tools that are
subcategories as well.
after information guttering then perhapsing I proceed
to
vulnerability analysis. And again,
we have a lot of tools any additional tools that is not
here will install them as we go along with this course.
So please be mindful that some of these tools I intrusive
and should not use it on any network or any
systems. That is not own my you simply for legal
reasons. This is why that we are building our own
Pantry contesting lab so you can hone your skills.
So let's shut down. Khalida nox safely.
Once Kali launches shut down. We can
create another snapshot simply to ensure that we could
always review it back at any point in time. So I'm
going to call this.
source
repos updated
I'm going to click on OK.
So now that we have installed Kali lancs and set
up as a virtual machine plus we have also tested the internet
most importantly we have played our
own just a little bit to get familiar with the terminal and also how
to adjust our network settings.
In the next video, we'll take a look at setting up
cut.
In the next video. We'll take a look at setting up vulnerable horse
machines.