Nmap won't run any scripts

When I try to run a Nmap script on Kali Linux I get the following:

root@known:~# nmap --script smb-check-vulns.nse 192.168.1.111

Starting Nmap 7.00 ( https://nmap.org ) at 2015-12-04 03:45 EST
NSE: failed to initialize the script engine:
/usr/bin/../share/nmap/nse_main.lua:801: 'smb-check-vulns.nse' did not match a category, filename, or directory
stack traceback:
    [C]: in function 'error'
    /usr/bin/../share/nmap/nse_main.lua:801: in function 'get_chosen_scripts'
    /usr/bin/../share/nmap/nse_main.lua:1249: in main chunk
    [C]: in ?
QUITTING!

As far as I can tell this seems like a new error. I am running the latest version of Kali Linux as of December 4, 2015. I've tried a few variations of introducing the script such as:

root@known:~# nmap --script=smb-check-vulns.nse <ip>

Thanks for the help.


In Nmap 6.46BETA6, the smb-check-vulns script was split into 6 different scripts:

  • smb-vuln-conficker
  • smb-vuln-cve2009-3103
  • smb-vuln-ms06-025
  • smb-vuln-ms07-029
  • smb-vuln-regsvc-dos
  • smb-vuln-ms08-067

You can run any specific checks you like, or all of them with --script smb-vuln-*, but be aware that many of these can cause a blue screen or other crash on the scanned system. Previously, these required you to add --script-args unsafe=1, so we added these scripts to the "dos" category so you can rule them out with --script "smb-vulns-* and not dos"