Top 25 Nmap NSE Scripts Every Ethical Hacker Should Know in 2025!
Nmap's NSE (Nmap Scripting Engine) is one of the most powerful tools in a cybersecurity professional's arsenal. With over 600 built-in scripts, NSE allows ethical hackers to automate information gathering, vulnerability detection, brute force attacks, and service enumeration.
Below are the top 25 NSE scripts that are essential for every ethical hacker and penetration tester in 2025.
Top 25 NSE Scripts:
http-enum
– Enumerates common web paths and directorieshttp-vuln-cve2006-3392
– Checks for vulnerable versions of PHPftp-anon
– Checks for anonymous FTP login accessssh-brute
– Attempts SSH password brute-forcedns-brute
– Performs DNS subdomain brute-forcingsmb-os-discovery
– Gathers OS info over SMBsmb-vuln-ms17-010
– Detects EternalBlue vulnerabilityvulners
– Integrates vulnerability database scandefault
– Runs a set of default scripts (safe for reconnaissance)rdp-enum-encryption
– Analyzes RDP encryption methodshttp-title
– Grabs the title of a web pagemysql-empty-password
– Detects empty MySQL root passwordssmtp-open-relay
– Checks if SMTP is an open relaysnmp-info
– Collects SNMP system infordp-ntlm-info
– Gathers NTLM hash and OS info from RDPhttp-headers
– Displays HTTP response headersssl-cert
– Extracts SSL certificate informationssl-enum-ciphers
– Lists SSL supported ciphershttp-auth
– Detects HTTP authentication methodsssh-hostkey
– Retrieves SSH host keyshttp-methods
– Enumerates supported HTTP methods (e.g., PUT, DELETE)http-vuln-cve2014-3704
– Drupal SQL injection vulnerabilityhttp-slowloris
– Checks for DoS Slowloris vulnerabilityhttp-dombased-xss
– Tests for DOM-based XSS vulnerabilitiesimap-capabilities
– Checks available IMAP capabilities
Script Categories in NSE:
Nmap scripts are categorized as:
- auth – Authentication bypass or brute-force
- broadcast – Discovery of hosts and services
- default – Default set of safe recon scripts
- discovery – Gather more data about target
- exploit – Exploit known vulnerabilities
- external – Rely on external resources
- fuzzer – Test services for unexpected behavior
- intrusive – May be detectable and risky
- malware – Detect signs of malware
- vuln – Identify known vulnerabilities
NSE Script Path (Linux):
/usr/share/nmap/scripts/
Pro Tip:
Use nmap --script-updatedb
after adding new scripts to update the NSE script database.
Final Words
Knowing how to use these top NSE scripts gives you a massive edge in penetration testing and vulnerability assessments. They allow you to automate critical security tasks and provide in-depth insight into target systems.
Keep learning, practicing, and always scan responsibly within legal boundaries.