jeredbare / ms17-010_to_slack

Scans for the MS17-010 vulnerability and drops the alert into slack.
15 stars 1 forks source link

Issue "smb-vuln-ms17-010.nse:82: variable 'debug1' is not declared" #1

Open joseaguardia opened 7 years ago

joseaguardia commented 7 years ago

Hi!

Great work. However, I get this error in Ubuntu 15.04 and Nmap 6.47 (running as root) CentOS 7.2.1511 + Nmap 6.40 (running as root)

nmap --script smb-vuln-ms17-010.nse -p445 192.168.1.209

Starting Nmap 6.47 ( http://nmap.org ) at 2017-05-16 09:23 CEST
Nmap scan report for 192.168.1.209
Host is up (0.00055s latency).
PORT    STATE SERVICE
445/tcp open  microsoft-ds
MAC Address: 00:21:9B:17:AC:A3 (Dell)

Host script results:
|_smb-vuln-ms17-010: ERROR: Script execution failed (use -d to debug)

Nmap done: 1 IP address (1 host up) scanned in 0.55 seconds

In debug mode I get:

NSE: smb-vuln-ms17-010 against 192.168.1.209 threw an error!
smb-vuln-ms17-010.nse:82: variable 'debug1' is not declared
stack traceback:
        [C]: in function 'error'
        /usr/bin/../share/nmap/nselib/strict.lua:80: in function '__index'
        smb-vuln-ms17-010.nse:82: in function 'check_ms17010'
        smb-vuln-ms17-010.nse:163: in function <smb-vuln-ms17-010.nse:141>
        (...tail calls...)

Thanks!

joseaguardia commented 7 years ago

Anybody has that issue?

jeredbare commented 7 years ago

Let me spin up a few boxes and see if I can replicate the error. If I can I will look into a fix.

joseaguardia commented 7 years ago

Hi jeredbare.

I've solved it updating nmap to the latest version in web (7.40)

Now I get an "Could not connect to 'IPC$'" error

Thanks