Skip to content
This repository was archived by the owner on Apr 30, 2026. It is now read-only.

Latest commit

 

History

History
35 lines (25 loc) · 605 Bytes

File metadata and controls

35 lines (25 loc) · 605 Bytes

Nmap Scripting Engine

Scripts stored in: /usr/share/nmap/scripts

locate *.nse | grep smb

Banner grabbing:

nmap --script banner 10.10.10.5

Vulnerability scanning:

nmap -sV --script vulners [--script-args mincvss=<arg_val>] <target>
nmap --script vuln 10.10.10.5
nmap -p 139,445 --script=$scriptname $targetip

With wildcards:

nmap -p 139,445 --script=smb-vuln* $targetip
nmap -v -p 21 --script=ftp-anon.nse 10.11.1.1-254
nmap -v -p 139, 445 --script=smb-security-mode 10.11.1.236

To learn more about specific scripts:

--script-help scriptname