>> In this lesson, I'm going to walk you through
installing Nmap and it's GUI Zenmap in Linux.
Other than a test scan that
ensures Nmap is working properly,
we won't be running any scans just yet,
but by the end of this lesson,
you should have a fully functioning
Linux Nmap scanning station.
Before getting started, I want to
say that I simply don't have the time to
go over installing Nmap on
every distribution and variant of Linux.
I'm going to focus on the installation
that will probably apply to most of
you then show you where to go
in case you are using something else.
Ubuntu and other Debian variants are
currently the most widely used versions
of Linux for modern computers.
In this lesson, I'm going to show you how to install Nmap
using the Debian package management tool
and it's front-end called APT.
APT is the advanced package tool
that widely use the apt-get command
from the Linux terminal.
I'm willing to bet that most of you die-hard Linux
users are way ahead of the curve here.
If not, then this lesson is definitely for you.
Here are the learning objectives for this lesson.
The main focus of this lesson is the lab,
which will help you get Nmap installed on Linux,
which is probably the simplest installation of all.
Prior to that, I just
want to go over a couple of things regarding
Nmaps origins in Linux and Unix using
package managers like the Debian package manager
and the Red Hat,
Mandrake, Fedora package manager or RPM.
We'll complete the lesson with
a short lab on the actual installation of
Nmap on a Debian based Linux distribution
called Linux Lite.
In Theodore's book, he indicates that Nmap
got its start in Linux and Unix based systems.
In fact, in 1997,
the first release of Nmap only ran in Linux.
Additionally, Linux is
the most popular platform for running Nmap with
86 percent of Nmap users saying that Linux
is at least one of the platforms they run Nmap from.
Because of this, I always suggests that
Nmap probably runs best on Linux,
and that's been my experience.
Also installing and removing
it from Linux is the easiest.
You'll see what I mean later.
The Nmap website is nmap.org and
the download page is at nmap.org/download.
From that page, there are
a couple download links for Nmap,
Ncat, Nping and Zenmap for Red Hat,
Mandrake, and Fedora.
There are some simple instructions for
installing it for those distributions.
However, we won't go through
that in our lab because Debian based
Linux distributions like Ubuntu
>> are now far more popular.
>> If you are running or planning to run Nmap on Linux,
I highly recommend taking a look at
the Linux section of Theodore's book,
which I've included as
the last bullet point in this slide.
If you get stuck, want to
compile Nmap from the source code
or use some other distribution of
Linux or some other package manager,
you'll find what you need here.
Using the Debian package manager and its front end,
the advance package tool is
the simplest way to install Nmap, as you'll see.
There is one caveat though,
and that is that it's possible that
your installation of Nmap will be one version behind.
I've never experienced this myself,
but that's what it says on
the Nmap Linux installation page of the website.
If you find out that's the case and you
really want to use the latest version.
You can compile and install Nmap from the source code.
I really don't think you'll ever need to do that,
but I just wanted to put it out there.
All of those details can be found on
the link I provided on the previous slide.
Additionally, you can go
straight to the Debian package details for
Nmap using the link I've included
as the last bullet point of this slide.
Because I'm not going to walk you through
installing Nmap using RPM,
I wanted to include a slide here
with the commands necessary to do that.
Like I said previously,
the Nmap website goes into extreme detail
about installing it on RPM based distributions.
If you're using Red Hat,
Mandrake, or Fedora,
and want to give these commands a shot.
Feel free to pause this slide and try them out.
Now onto the lab, I think you'll find
installing Nmap on Linux extremely easy.
Before starting, make sure you have
your privileged user password handy.
You'll need it when running any pseudo command.
The process of installing Nmap on
Linux is laid out for you in this slide.
After running a few commands and
waiting for everything to install,
we'll run a few simple scans
to make sure everything works.
Let's get started.
Welcome to the lab on installing Nmap in Linux.
The first thing you want to do is
open your Linux terminal.
I'm using Linux Lite.
Like I said, it's a Debian variant,
but all the steps I go
through will work with Ubuntu also.
Once you have your Linux terminal open,
simply type sudo apt-get update.
Type in your privilege user password.
All right, now that that's done,
updating the repository,
I'm going to clear the screen, clear command.
You don't have to do that. Now I'm going to type
sudo apt-get
install nmap.
This will install Nmap and all of
its dependencies. All right, that's done.
I'll clear the screen again.
Now the Nmap is installed,
we'll install Zenmap,
the GUI for Nmap,
sudo apt-get install zenmap-y.
Now that that's done,
I will clear the screen one more time.
Now, Nmap and Zenmap are fully installed.
I'm going to do a Nmap scan
just to make sure it's working.
Type nmap scanme.nmap.org.
The scan of scanme.nmap.org is complete.
If your results look similar to this,
then you know that Nmap is working properly.
I'm going to minimize this screen.
Now we're going to find out if Zenmap is working.
Your version of Linux might be different,
but in general, you'll find it in the Internet tab.
I'm going to click on the Zenmap as root.
They'll ask you for your
>> privilege user account password.
>> After you type it in, Zenmap will
open and I maximize the screen.
Now let's do our first scan in Zenmap.
We'll do scanme.nmap.org again.
Over here by the profile section and drop down,
let's choose regular scan instead of intense scan.
Then simply click on the scan button.
Now that that's complete,
just check your scan results
against mine and make sure
that you have something similar.
You can be certain that
Nmap and Zenmap are both working properly.
That's all you got to do.
Thanks for going through this lab with me.
The purpose of this lesson was to download and
install Nmap on the Linux operating system.
If you're using Linux,
your machine should be ready to go.
Thanks so much for watching and
I'll talk to you on the next video.