Hello everyone and welcome to this course
now we are going to start with.
how to scan a IP address
so as you can see over here the syntax to scan an
IP address using nmap is nmap and
the target IP address.
You can scan a Target by simply typing the target IP
and end map will start scanning for the default top
1000 ports.
If you want to see what is happening in the background just add The
Hyphen V flag.
And it will show you the verbose output.
how to scan a host or a domain name
or a URL address so the syntax
is nmap and the website name for instance
www.example.com
So you can scan a Target by simply typing the
host name and nmap will start scanning for
the default 1000 ports. You can also
add The Hyphen V option to see the output in verbose mode.
So let's see the Practical as you can see. This machine
is the target machine which we
are going to scan and has the IP address 192 168
43 dot to win three.
And this is my machine through
which I'm going to scan which contains
my nmap and the IP address of this machine of
nmap is 182 168 43.97.
So I'm going to scan by typing the command and map
and my target machines IP, which was 213.
And I will also add The Hyphen
V.
Flag to see the output in verbose mode.
That what is happening in the background?
So as you can see, the scan has started and unmap
has already discovered two ports, which
are open which is port number 22, which is
SSH and port number one one RPC bind.
As you can see the scan has been completed and we
have identified two ports and the
host is up.
So now let's scan.
The domain name or the host name so and
map google.com and output inverse mode.
So we have identified two ports are open which is
Port 80 and Port 443 as you
can see over here.
Now let's scan one more host which is
scanmy Dot and maps.org using nmap.
So the scan has started but this time
you can notice I have not given the hyphen V attribute
or hyphen V flag. So I'm
not able to see the output of what is
happening in the background onto my screen.
So it is important that you use hyphen
V flag, so you can see the output in
verbose mode onto your screen.
Now we have to wait till the scan is completed and
it will show us what are the open and close post
ports of the
host
if you want to see the progress, just press any key on
your keyboard that you want and you will be able to see the progress.
Perfect, as you can see the scan has been completed and I have identified Port
22 or 25 80
9929 and 3 1 3
3 7. These are the ports out of which
for 25 which is SMTP is filtered and other
ports are open. So there is
three state of a port
first state is open which means the port
is open so that we can connect to it second state
is closed which means the port is
closed and we cannot go through that port or we
cannot utilize that port to connect
to the specific server.
The third state is for filtered which means that there
can be a firewall placed which is not allowing us
to connect to that port.
So I hope you guys understood.
How we can do scanning of an IP
address as well as a host using and map. Thank
you.