Nmap Development mailing list archives

Re: LDAP script crash


From: Daniel Miller <bonsaiviking () gmail com>
Date: Sun, 17 Jan 2016 12:48:21 -0600

Mike,

It's not immediately obvious what the problem is. I'd guess the ASN.1
parser expected an integer but was at the end of the data. If this is
reproducible, the output of this command would be helpful: nmap -d -p 389
--script ldap-rootdse --script-trace

This will show a packet trace of what inputs the script is getting. Then we
can manually trace it through to find what is wrong.

Dan

On Sat, Jan 16, 2016 at 10:56 PM, Mike . <dmciscobgp () hotmail com> wrote:

Hi all

attempting to just do a standard LDAP script run i hit a wall....

NSE: [ldap-rootdse 192.168.0.2:389] no decoder for etype: 3A
NSE: [ldap-rootdse 192.168.0.2:389] no decoder for etype: 74
NSE: [ldap-rootdse 192.168.0.2:389] no decoder for etype: 78
NSE: [ldap-rootdse 192.168.0.2:389] no decoder for etype: 2F
NSE: [ldap-rootdse 192.168.0.2:389] no decoder for etype: 74
NSE: [ldap-rootdse 192.168.0.2:389] no decoder for etype: 6C
NSE: ldap-rootdse against 192.168.0.2:389 threw an error!
C:\Program Files\Nmap/nselib/asn1.lua:252: bad argument #1 to 'tonumber'
(string
 expected, got nil)
stack traceback:
        [C]: in function 'tonumber'
        C:\Program Files\Nmap/nselib/asn1.lua:252: in function <C:\Program
Files
\Nmap/nselib/asn1.lua:249>
        (...tail calls...)
        C:\Program Files\Nmap/nselib/asn1.lua:187: in function <C:\Program
Files
\Nmap/nselib/asn1.lua:180>
        (...tail calls...)
        C:\Program Files\Nmap/nselib/ldap.lua:292: in function
'searchRequest'
        C:\Program Files\Nmap/scripts\ldap-rootdse.nse:124: in function
<C:\Prog
ram Files\Nmap/scripts\ldap-rootdse.nse:100>
        (...tail calls...)


Mike



_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: