Nmap Development mailing list archives
brute script - bad argument error
From: Eli Shemer <eli.shemer () greensql com>
Date: Fri, 29 Jul 2016 22:18:28 +0300
On the current svn branch, I ran: nmap -d -sV --script http-brute.nse -p 80 localhost and I got this error: NSE: http-brute against localhost (127.0.0.1:80) threw an error! /usr/local/nmap/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/nmap/bin/../share/nmap/nselib/brute.lua:721: in method 'start' /usr/local/nmap/share/nmap/scripts/http-brute.nse:163: in function </usr/local/nmap/share/nmap/scripts/http-brute.nse:132> (...tail calls...) This patch fixed it for me [root@localhost nmap]# diff nselib/brute.lua /usr/local/nmap/bin/../share/nmap/nselib/brute.lua 721c721 < result.Statistics = ("Performed %d guesses in %d seconds, average tps: %d"):format( self.counter, time_diff, tps ) ---
result.Statistics = ("Performed %d guesses in %d seconds, average
tps: %f"):format( self.counter, time_diff, tps ) and I got the following output in the second run. |_ Statistics: Performed 50009 guesses in 32 seconds, average tps: 1614.547619 | -- Eli Shemer | Software Engineer | GreenSQL |Office: +972-3-687-0033 | Mobile:+ 972-54-617-5724| eli.shemer () greensql com www.greensql.com
_______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- brute script - bad argument error Eli Shemer (Jul 29)