>> In this lesson, I'm going to walk you through
installing Nmap and it's a GUI Zenmap on the macOS.
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
Mac Nmap scanning station.
Installing Nmap on the macOS is really simple,
and there are a couple of ways to do it.
In this lesson,
I'll walk you through my favorite way to do
it using the Homebrew package manager.
>> Let's get started.
>> 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
the macOS, which is pretty easy.
Prior to that, I just want to go over a couple of
things regarding Nmap's origins in Unix,
which is what the current version of
the macOS is based on.
Then we'll discuss finding, downloading,
and installing Nmap from the official Nmap website.
We'll move on to discuss
using a package manager called Homebrew.
Then finally, we'll complete the lesson
>> with a short lab on the actual
>> installation of Nmap on a Mac.
>> In Theodore's Nmap book,
he indicates that Nmap got its start in
Linux and Unix-based systems back in 1997.
Since the macOS has been based on Unix since
the introduction of OSX using Intel processors,
you can be sure that Nmap not only
runs on a Mac but it runs very well.
The Nmap website is nmap.org and
the download page is at nmap.org/download.
On that page, you'll find
some quick and easy installation instructions
of Nmap on a Mac.
The process described is similar to the installation
of Nmap on a PC running Windows.
Our lab we'll walk through a different process though,
because I find this process a little
clunky and it makes
the removal of Nmap a lot more difficult.
If you're running or plan to run Nmap on a Mac,
I highly recommend taking a look at
the Mac section of Theodore's book,
which I've included as
the last bullet point in this slide.
If you get stuck and need to troubleshoot,
you'll find what you need here.
As I mentioned in the learning objective slide,
we'll be using the Homebrew package manager to
perform the installation of Nmap on the macOS.
However, if you don't want to
install Homebrew and you are more
comfortable installing Nmap from
a GUI instead of the command line,
here's a good process to follow.
But go through the lab with me
first before deciding which way you want to go.
It is your machine and I want you to feel
comfortable doing it the way you think is best.
Similar to RPM and DPKG for Linux,
the macOS has several options for package management.
One of my favorite package managers
>> for Mac is Homebrew.
>> According to their website,
Homebrew is the missing package manager
for macOS. What does it do?
Well, the website says that
Homebrew installs the stuff you need that Apple didn't.
It installs packages to
their own directory and then sim links their files
into the [inaudible] . Why use it?
To me, its power comes in
providing an easy interface for installing and
removing software independencies located
on a remote server from the command line.
It is an excellent complement to the macOS and works with
almost all the mainstream software repository services.
If you want to read more about it
before running through it install with me,
go to docs.brew.sh,
or just give it a shot.
I think you'll be glad you did.
Now onto the lab. I think you'll find
installing Nmap on the macOS extremely easy.
The process of installing it on
a Mac 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 using
Nmap and its GUI Zenmap to make sure everything works.
Let's get started. Welcome to the lab
on installing Nmap and Zenmap on the macOS.
First of all, we're going to install
the Homebrew package manager.
Just go to your terminal and open it up,
let me make this bigger so you can see it.
Now the first command is pretty long,
so you can pause the video if you need
to take it down and type it in.
After you typed in that long command,
it tells you what it's going to do,
and just simply hit "Return" or "Enter" to continue.
Now it's going to ask you for your password.
Just type it in, then hit "Enter".
This might take a little bit of time, just be patient.
Now that Homebrew is installed,
we're going to install Wget,
just type brew install
wget with-
libressl and hit "Return".
Right now that's done,
just type brew update.
Now I'm just going to clear the screen
to make it a little bit easier to see.
Right now we're going on to
the install of Nmap and Zenmap.
Now just type brew install Nmap.
This will go through the process of installing Nmap.
That went pretty fast, but it's done.
Now I'm going to clear the screen again.
Now we're going to install the Zenmap GUI interface
for Nmap.
To install we'll type brew cask install zenmap.
If it asks you for your password,
just type it in, hit "Enter" or "Return".
I'm going to clear the screen again.
Now that we have Nmap and Zenmap installed,
we want to do a little scan
to make sure that they working.
We'll do nmap scanme.nmap.org.
If you see these results on
your screen or something similar,
then you know that Nmap is functioning
>> on your computer.
>> I'll go and close this terminal window,
>> and now on your Mac,
>> just go to your launcher,
launchpad, and right
there you can see that Zenmap also is installed.
I'll open that up.
Wants your password again,
that pretty much tells you that it
is running as a privileged user.
Up in the upper left-hand corner
you see where it says target.
Again, we're going to use the standard scanme.nmap.org.
Once you've selected that target
over to the right next to profile,
it says intense scan.
We don't want to do that scan,
it takes a little bit too much time.
Click the drop-down, go down to regular scan,
and then simply click scan over there
in the upper right-hand corner of your window.
We have the results.
If you see results similar to these,
then you know that Zenmap and Nmap are both
functioning together and they're working
properly and that's pretty much it.
We're done with this lab. Thanks a lot for watching.
The purpose of this lesson was to download and
install Nmap on the macOS.
We talked about the origins of Nmap
>> and its use on Macs.
>> I provided you with some simple
instructions on how to install
Nmap and Zenmap directly from the
>> official Nmap website.
>> I discussed the use of Homebrew package manager.
Then I walked you through lab on the installation of
Nmap and Zenmap using Homebrew on a Mac.
Your Mac should be ready to go
for the rest of this course.
Thank you so much for watching
and I'll talk to you on the next video.