Starting Point Archetype

when running the nmap scan right off the bat i cant get it to display all the information that is shown in the walkthrough. when i run it with the -d flag i find this:
NSE: ms-sql-ntlm-info against 10.129.123.34:1433 threw an error!
/usr/bin/…/share/nmap/nselib/mssql.lua:3334: bad argument #1 to ‘ipairs’ (table expected, got nil)
stack traceback:
[C]: in function ‘ipairs’
/usr/bin/…/share/nmap/nselib/mssql.lua:3334: in function </usr/bin/…/share/nmap/nselib/mssql.lua:3327>
(…tail calls…)

not nearly experienced enough with code to be able to figure this one out. pretty frustrating

For everyone coming here and not finding the solution, look over here: nmap github → issues → 2622

For me it worked patching my /usr/share/nmap/nselib/mssql.lua

  1. Patch line 3206 like this:
3206,3207c3206,3207                                                                                                   
<       local status, instances = Helper.GetDiscoveredInstances(host, port)                                           
<       if status then                                                                                                                                                                                                                      
---                                                                                                                   
>       local instances = Helper.GetDiscoveredInstances(host, port)                                                   
>       if instances then   
  1. Comment out line 3337,3339, 3340 with “–”