How to Detect the Operating System of Victim machine using Nmap.
Zubair Shahzad
Senior Software Engineer | Full Stack Engineer| Digitization & Automation Expert | Data Engineer| Data analyst | AI Engineer | Solution Architect | Software Architect |TOGAF Certified Professional
Nmap is a one of the powerful tool that can tell you which OS is using your victim machine. By using Nmap we can also find that which services are running on target machine . I am writing this tutorial to tell you that how can we find the OS of target machine .
Requirements:
Nmap (graphical version is Zenmap)
In kali Linux it is pre installed .
I am using MAC OSX and I have installed Nmap on it. if you want to know more about Nmap then visit (nmap.org).
Steps to find the OS of target.
1. Open the terminal type Nmap command to view the help . Actually from this help page you can read yourself because there's so many options you can use to perform your scanning technique.
2. Simple and basic technique of scanning. Just enter command Nmap <target IP address>
3. Now we use Nmap --script smb-os-dicovery.nse 192.168.xxx.xxx . we can also use Nmap -O <target ip>.
If you see the Nmap help, there's so many switch you can use but in this tutorial I will not describe all of that switch because you can read more on nmap official website help page.
-v : Increase verbosity level (use -vv or more for greater effect)
-S <IP_Address> : Spoof source address -- used to trick the firewall/IDS
-e <iface> : Use specified interface
-Pn : Treat all hosts as online -- skip host discovery
-sV : Probe open ports to determine service/version info -- very useful to get detailed information about the service
-T<0-5> : Set timing template (higher is faster)--see picture below
-O : Enable OS detection
End!
happy hacking
Professional Website Designer and SEO Expert
8 年hping3 also good tool for scanning ports.
Senior Software Engineer | Full Stack Engineer| Digitization & Automation Expert | Data Engineer| Data analyst | AI Engineer | Solution Architect | Software Architect |TOGAF Certified Professional
8 年if you have any suggestion and please comment . no one is perfect