Hello, everyone.
so in this video we are going to see the nmap
OS detection with hyphen hyphen OS
scan limit
so
this specific flag if we
give with the nmap scan will only perform
the OS detection when nmap finds
at least one TCP open
port.
So if this condition matches then
only nmap will move further to
perform the OS detection or else it
will not perform the OS detection.
the syntax of doing this is and map the target IP address
hyphen OS scan -
limit
you can always add a hyphen V to see the output in
verbose mode.
So, let's see this scan in action so over here
on my screen as you can see, I have written
the command which is nmapped.
Scan dot nmap.org hyphen
o hyphen hyphen, oscan hyphen limit
hyphen we - p n so I'm telling
nmap to perform our OS detection only if
nmap finds one TCP
open port.
So as you can see and map has found some
ports, which are open and successfully have
given the OS cases and it is saying that
the target system is running Linux. 2.6.32.
but
if I show you one more example.
over here
This is my Windows machine.
And I'm specifically scanning the port
80 which is not open which is
closed or filtered.
Just see what happens if nmap is able to
identify that what operating system is running.
As you can see my host is up, but the port
80 is closed or filtered thus and
map is not able to identify.
What operating system is running on that
specific Target?
So I hope you guys understood this video that this
condition should be
matched of finding at least one open port to
perform the OS detection.
Thank you.