Vulnerability Scanning Tools
Table of Contents
Vulnerability scanners automate the identification of known weaknesses across hosts, services, and web applications. Distinct from exploitation — scanners identify and report; exploitation is a separate manual step. Output should always be validated manually before reporting — false positives are common.
Related: Nmap Nikto Masscan Searchsploit Vulnerability Databases CVSS
1. Nmap
Network scanner and port mapper — the starting point for every engagement. With scripts (NSE) it crosses into vulnerability scanning territory.
# Service version detection nmap -sV -sC -p- $IP # Vulnerability scripts nmap --script vuln -p 80,443,445 $IP # Specific CVE scripts nmap --script smb-vuln-ms17-010 -p 445 $IP nmap --script http-shellshock $IP nmap --script ssl-heartbleed -p 443 $IP # List all vuln scripts ls /usr/share/nmap/scripts/ | grep vuln
See Nmap for full flag reference.
2. OpenVAS / Greenbone
Full-featured network vulnerability scanner. The open-source core is OpenVAS; Greenbone Community Edition (GCE) is the maintained distribution with a web UI. Enterprise equivalent of commercial tools like Nessus and Qualys — appropriate for internal infrastructure scanning rather than quick CTF work.
Setup (Greenbone Community Edition)
# Docker-based deployment — easiest setup docker pull greenbone/community-edition docker-compose -f docker-compose.yml up -d # Access web UI at https://localhost:9392 # Default credentials: admin / admin (change immediately)
Workflow
1. Targets → New Target → enter IP range or hostname 2. Tasks → New Task → select target and scan config Scan configs (ascending thoroughness/time): - Discovery → host and port discovery only - Full and fast → default, balanced - Full and very deep → comprehensive, slow 3. Start task → monitor progress 4. Reports → view findings, filter by severity 5. Export as PDF or XML for documentation
Key Points
- Feed updates (NVTs — Network Vulnerability Tests) must be kept
current — run
greenbone-feed-syncregularly or findings will be stale - Authenticated scans (providing credentials) find significantly more than unauthenticated — configure credentials in the target settings for internal assessments
- Output is verbose — focus on Critical and High findings first, validate manually before reporting
3. Nikto
Web server scanner — checks for common misconfigurations, outdated software, and known vulnerable paths. Fast, noisy, and broad rather than deep.
# Basic scan nikto -h http://$IP # HTTPS nikto -h https://$IP -ssl # Save output nikto -h http://$IP -o nikto.html -Format htm # Route through Burp nikto -h http://$IP -useproxy http://127.0.0.1:8080
See Nikto for full flag reference.
4. Nuclei
Template-based vulnerability scanner maintained by ProjectDiscovery. Fast, accurate, and actively maintained with community-contributed templates covering CVEs, misconfigurations, exposed panels, and default credentials. Better signal-to-noise ratio than Nikto for web targets.
# Install go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest # Update templates nuclei -update-templates # Basic scan nuclei -u http://$IP # Specific severity nuclei -u http://$IP -severity critical,high # Specific template categories nuclei -u http://$IP -tags cve nuclei -u http://$IP -tags default-login nuclei -u http://$IP -tags misconfig # Scan multiple targets nuclei -l targets.txt -severity critical,high -o nuclei_results.txt # CVE-specific template nuclei -u http://$IP -t cves/2021/CVE-2021-44228.yaml
Why Nuclei over Nikto for web targets
- Template-driven — each check is explicit and auditable
- Actively maintained — new CVE templates added rapidly
- Lower false positive rate
- Can be run against specific CVEs or vulnerability classes
- Integrates well into automated pipelines
5. Masscan
Extremely fast port scanner — scans the entire internet in under 6 minutes at full speed. Useful for large IP ranges where Nmap's per-host approach is too slow. Less accurate than Nmap — use Masscan for fast discovery, then Nmap for detailed scanning of discovered hosts.
# Scan a range quickly masscan 10.0.0.0/8 -p 80,443,445,22 --rate 10000 # Output to file masscan $IP/24 -p 1-65535 --rate 1000 -oL masscan.txt # Nmap follow-up on discovered hosts masscan 192.168.1.0/24 -p 1-1000 --rate 5000 -oL hosts.txt # Extract IPs then feed to nmap awk '/open/ {print $4}' hosts.txt | nmap -sV -iL -
6. Tool Selection Guide
| Scenario | Tool |
|---|---|
| Port discovery on a single host | Nmap |
| Fast port discovery across a large range | Masscan → Nmap |
| Web server misconfiguration check | Nikto or Nuclei |
| CVE-specific web vulnerability check | Nuclei |
| Full infrastructure vulnerability assessment | OpenVAS/Greenbone |
| Quick NSE vuln check on known services | Nmap –script vuln |
| CTF initial recon | Nmap |
| Internal network assessment at work | OpenVAS/Greenbone |
7. Scanning Workflow
1. Host discovery — ping sweep or masscan across the range 2. Port scan — nmap -sV -sC on discovered hosts 3. Web targets — nikto or nuclei on HTTP/HTTPS ports 4. Service-specific — nmap NSE scripts targeting discovered services 5. Full authenticated scan — OpenVAS/Greenbone for internal assessments 6. Validate findings manually — never report scanner output unvalidated 7. Cross-reference with NVD/Exploit-DB for exploit availability
Tips
- Scanner output is a lead list, not a findings list — validate every flagged item manually before including it in a report
- Authenticated OpenVAS scans find dramatically more than unauthenticated — always use credentials for internal work
- Nuclei is worth adding to your standard web enumeration workflow alongside Nikto — faster, more accurate, better CVE coverage
- Masscan + Nmap is the standard two-phase approach for large ranges — Masscan finds open ports fast, Nmap provides the detail
- On CTFs, Nmap covers 95% of what you need — OpenVAS and Greenbone are for real infrastructure work
- Rate limiting matters — aggressive scanning rates can crash
fragile services or trigger network-level blocks; reduce
--rateon production targets