Constructing an Nmap Scan Lab Part 2 - NM

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Course
Time
7 hours 1 minute
Difficulty
Beginner
Video Transcription
00:01
Okay, so now that we looked at different target types, let's look at different output types.
00:06
So the first time I think I'm gonna do is I'm gonna create a directory called Results in the root of C.
00:15
Clear the screen.
00:17
All right. So we'll do a M D space
00:22
results
00:24
now do a D i r.
00:28
Results start out just to make sure it's their case. So the results folder is there
00:33
now. We'll do a CD
00:36
results.
00:38
Now we're in the results folder. Clear the screen again.
00:43
All right.
00:44
So I just want to show you quickly where in the end map help, you can find the different output types and Mt. Dash h
00:55
and I'm gonna scroll up,
00:57
and there you can see output.
00:59
And here are the main types right here at the top.
01:02
We'll go over some of these other options to in a later lab,
01:07
so you can see you can scan. You can output a scan to normal XML script, kiddie and
01:14
agreeable format,
01:17
or you can
01:18
output to all
01:21
formats at the same time. Actually, doesn't do all of them. It doesn't do the script kiddie version.
01:26
It doesn't do the script kiddie output type,
01:30
so we will clear the screen again.
01:34
We'll start by doing and
01:38
and map
01:40
scan toe 1 92 that 1 68 that one dot to 54
01:45
Just a default and maps scan,
01:49
and we will output it
01:52
to normal and map file type.
01:57
We'll call it
02:01
results one dot n map
02:05
Enter.
02:08
Okay, so now I'll do a d i r
02:12
in the results folder.
02:14
And
02:15
there you see the results one dot n map file.
02:22
You want to view the output quickly.
02:24
You can type
02:28
note pad space
02:32
results one dot and map will bring up a note pad document with the results of that scan. And
02:39
since it's the default output type,
02:43
what is here will be exactly what showed up on the screen when you did The end Maps can
02:49
so just close out of this,
02:53
clear the screen.
02:55
Now I'll do and
02:59
and map
03:00
Dash Oh, Capital o
03:04
scan me dot and matt dot Borg.
03:10
We'll do it. Oh, capital A
03:16
results too.
03:19
So
03:20
oh, Capital A will output to the three main file types,
03:24
which is the
03:27
default and map file type
03:30
XML and
03:31
the graspable format noticed that I didn't put a file extension in the reason why is Because and Matt will do that for you.
03:39
So hit Enter
03:44
the Dash O is an operating system detection scan.
03:55
Okay, so we got our results. I'll clear the screen
04:00
now. I'll do another D i r.
04:01
And you can see that and map out. Put it to
04:06
regrettable and mount format,
04:10
the Regular and Matt Format and XML, and you can see that the XML file is the largest.
04:21
Okay, so the next thing I want to cover waas
04:25
just the fact that you can put options
04:30
or scan types
04:30
a target and the output in different locations in the command line in all of them will work the exact same.
04:40
So we'll do it and map.
04:44
I'll clear the screen
04:46
so we'll do an end map.
04:47
Dash
04:48
oh
04:50
capital end
04:55
results three dot unmapped space
05:00
1 92.1 68.1 dot 254 And then we'll put this time will put our skin option for the operating system detection
05:11
at the very end,
05:14
instead of at the beginning.
05:15
Hit, enter,
05:24
clear the screen, do a D I R. And there you can see your results three dot in mt.
05:30
Now we'll do an end map Dash Capital O.
05:44
And this time I'll put the
05:45
scan option at the beginning
05:47
and then I'll put the target and then I'll put the results
05:50
and hit Enter.
05:57
I really like doing it this way because
05:59
just like any
06:01
Windows command line tool, you can
06:04
hit up arrow and you can easily get to the
06:10
output type and the output file. And you can easily get to the target
06:15
because they're at the very end of the command line.
06:17
Because a lot of the time you'll have a lot of options besides just dash capital. Oh, we have a lot of your different options
06:26
at the beginning.
06:27
And if he had the, uh, pero, it's very easy to just simply change your target and change your results.
06:43
And there's the scan.
06:46
Do it, D I R. And there you can see the scan results for result five for that last scan.
06:53
So again, the point waas that
06:56
in this last scan we ran,
06:58
the output
06:59
and the target are at the end
07:04
rather than at the beginning,
07:06
and I hope you agree with me that it's easier. And if you don't yet, you will later. Once we start doing
07:15
more complex scans,
07:17
Okay, so now I just want to cover too
07:20
other things. And that is
07:25
how much detail is in the results of your scan. And you can control that somewhat by using Dash V or Dash V V
07:33
and the V stands for verbosity.
07:36
So your screen
07:45
and we'll do it and map
07:48
dash
07:50
capital O
07:51
Dash V,
08:09
then hit Enter
08:13
and you can already see that. That's a lot more detail than the last time that we ran that scan.
08:22
I'll do a D i. R.
08:24
And
08:26
we can basically compare
08:31
well right now. Well, look, way have results. Six that end map.
08:37
Um,
08:37
what I could do is
08:39
also run that again.
08:41
We'll do. We'll call it Results five,
08:46
and then we'll take away the verbosity on that. Scan
08:50
it Enter.
08:58
I'll do another D I. R.
09:00
And really what I want to show you here is if you look at
09:03
that last scan I did, it was only 100 38 bites.
09:07
Whereas when I use the Dash V command line switch,
09:11
it's 1000 45 bites.
09:15
So let's do. One more scan will do and map
09:18
dash
09:18
capital O Dash V V
09:31
Hit, Enter
09:33
and again you'll see a lot more stuff going on
09:37
A lot more details there.
09:39
So I will do a D i R.
09:43
And so now we we can compare the three files one with no verbosity,
09:48
138
09:50
one with a dash V and then one with
09:52
dash V V, and you can see that there's a lot more detail. If you want to open him up in no pad or whatever text editor you like,
10:01
um, you'll be able to compare the difference between the three.
10:05
Okay, so we'll end it there. Thanks so much for going through this lab on constructing basic and maps cans with me.
Up Next