cldrn / nmap-nse-scripts

My collection of nmap NSE scripts
http://calderonpale.com
954 stars 370 forks source link

smb-vuln-ms17-010: ERROR: Script execution failed (use -d to debug) #9

Closed joy-nunes closed 7 years ago

joy-nunes commented 7 years ago

This error is being displayed in the script output, does this mean that I am safe? exit2

idlethreat commented 7 years ago

Confirmed this is throwing an error. From the debug log:

/opt/smb/nmap-nse-scripts/scripts/smb-vuln-ms17-010.nse:82: variable 'debug1' is not declared

I'm attaching a full debug log to this comment.

debug.txt

UPDATE: Built and installed latest Nmap 7.40 from the site. Confirmed that this is a fix and works as expected. Cheers!

dkhromenko commented 7 years ago

'debug1' is not declared Update nmap to latest version.

rpenzoil commented 7 years ago

New version : https://nmap.org/download.html you will need to compile it !

I-Am-Skoot commented 7 years ago

Here is my error,

NSE: smb-vuln-ms17-010 M:21c5490 against ###.###.###.### threw an error!
./WannaCry/smb-vuln-ms17-010.nse:99: attempt to call field 'pack' (a nil value)
stack traceback:
        ./WannaCry/smb-vuln-ms17-010.nse:99: in function 'check_ms17010'
        ./WannaCry/smb-vuln-ms17-010.nse:168: in function <./WannaCry/smb-vuln-ms17-010.nse:146>
        (...tail calls...)

I have the full -dd if needed.

pyzro commented 7 years ago

I'm getting this error while using zenmap on windows:

`E:\programs\nmap/scripts\smb-vuln-ms17-010.nse:94: attempt to call field 'pack' (a nil value)

stack traceback:

    E:\programs\nmap/scripts\smb-vuln-ms17-010.nse:94: in function 'check_ms17010'

    E:\programs\nmap/scripts\smb-vuln-ms17-010.nse:163: in function <E:\programs\nmap/scripts\smb-vuln-ms17-010.nse:141>`
cldrn commented 7 years ago

It seems you are not using a recent version of Nmap. Install a recent version (7.x) and try again. I also suggest to go over the notes I posted: https://github.com/cldrn/nmap-nse-scripts/wiki/Notes-about-smb-vuln-ms17-010