Nmap Development mailing list archives

Brute library bug in enumeration mode


From: Phil <mainframed767 () gmail com>
Date: Tue, 16 Aug 2016 11:12:51 -0500

Just updated to most recent version on a blank vm to test this. Basically, when using a script that uses:
engine.options.passonly = true
the script dies with:

/usr/local/bin/../share/nmap/nselib/brute.lua:721: bad argument #3 to 'format' (number has no integer representation)
stack traceback:
        [C]: in function 'string.format'
        /usr/local/bin/../share/nmap/nselib/brute.lua:721: in method 'start'
        tso-enum.nse:204: in function <tso-enum.nse:193>
        (...tail calls...)

Line 721 from brute.lua is:
result.Statistics = ("Performed %d guesses in %d seconds, average tps: %d"):format( self.counter, time_diff, tps )

The source for the script I’m using is here: https://github.com/zedsec390/NMAP/blob/master/tso-enum.nse 
<https://github.com/zedsec390/NMAP/blob/master/tso-enum.nse>

Version info:

Nmap version 7.25SVN ( https://nmap.org )
Platform: x86_64-unknown-linux-gnu
Compiled with: liblua-5.3.3 libpcre-8.38 nmap-libpcap-1.7.3 nmap-libdnet-1.12 ipv6
Compiled without: openssl
Available nsock engines: epoll poll select


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

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

Current thread: