A network administrator needs to identify open ports and the operating system of a device on their network to ensure no unauthorized services are running. Given the device has the IP address 192.168.1.123, which Nmap command should be used to perform this scan?
The correct answer is nmap -O -sT 192.168.1.123. This command performs a TCP connect scan (-sT) to identify common open ports, along with operating system detection (-O). This combination meets the administrator's need to check for open services and identify the OS. nmap -p- 192.168.1.123 runs a scan for all 65,535 TCP ports but lacks the required OS detection. nmap -F 192.168.1.123 performs a fast scan, which checks only the 100 most common ports and does not perform OS detection. nmap -sn 192.168.1.123 is only a ping scan to check if a host is online; it does not scan ports or detect the operating system.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Nmap used for?
Open an interactive chat with Bash
Can you explain the different flags used in the Nmap command?
Open an interactive chat with Bash
Why is it important to identify open ports and the operating system?