Using Nmap to scan for the famous Conficker worm.
Nmap 4.85beta5 has all the scripts included, download it at http://nmap.org/download.html.
You'll still need to run a scan:
nmap --script=smb-check-vulns --script-args=safe=1 -p445 -d <target>
If you're having an OpenSSL problem, read this!
OpenSSL isn't included by default in the Nmap RPMs, and I wasn't properly checking for that in my scripts. Fyodor will have a beta5 RPM up tonight, which will fix that issue.
Until then, you have two options:
1. Use a source RPM
2. Compile straight from source, from the svn
If you're still having OpenSSL issues, try installing openssl-dev package, and install Nmap from source. Or, download the latest rpm (beta5) or svn version -- they have fixed the issue altogether (OpenSSL is no longer required!)
Further, if you're having an issue with error messages, this great post by Trevor2 might help:
NT_STATUS_OBJECT_NAME_NOT_FOUND can be returned if the browser service is disabled. There are at least two ways that can happen: 1) The service itself is disabled in the services list. 2) The registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters\MaintainServerList is set to Off/False/No rather than Auto or yes. On these systems, if you reenable the browser service, then the test will complete. There are probably many other reasons why NT_STATUS_OBJECT_NAME_NOT_FOUND can be returned (e.g. not a windows OS, possibly infected) but I have not confirmed these.
Furthermore, this error will occur against on Windows NT.
Hot on the coattails of the Simple Conficker Scanner, I've added detection for Conficker to Nmap. Currently, there are two ways of doing this -- you can check out the SVN version of Nmap and compile from source, or you can update the three necessary files.
Update from SVN
If you're on a Unix-like system, this is probably the easiest way. You can install it either system-wide or in a folder. Here is the system-wide command:
$ svn co --username=guest --password='' svn://svn.insecure.org/nmap $ cd nmap $ ./configure && make $ sudo make install $ nmap --script=smb-check-vulns --script-args=safe=1 -p445 -d <target>
If you prefer to run it from a local folder, use the following commands:
$ svn co --username=guest --password='' svn://svn.insecure.org/nmap $ cd nmap $ ./configure && make $ export NMAPDIR=. $ ./nmap --script=smb-check-vulns --script-args=safe=1 -p445 -d <target>
Update just the files
If you're on Windows, or don't want to compile from source, you can install the three datafiles.
First, make sure you're running Nmap 4.85beta4. That's the latest beta version. Then, download this file:
And place it in the "scripts" folder (see below).
Then, download these files:
And place them in the "nselib" folder (see below).
Where are the folders?
On Linux, try /usr/share/nmap/ or /usr/local/share/nmap or even /opt/share/nmap.
On Windows, try c:\program files\nmap
If all else fails, the scripts folder will contain a bunch of .nse files and the nselib folder will contain a bunch of lua files. Try searching your drive for smb-check-vulns.nse and msrpc.lua, and replace those.
Hopefully that helps! If you have any problems or questions, don't hesitate to contact me! My name is Ron, and my email domain is @skullsecurity.net.