mailing list archives
Re: [NSE][patch] Bug in http-wordpress-plugins
From: David Fifield <david () bamsoftware com>
Date: Fri, 22 Jun 2012 12:01:10 -0700
On Fri, Jun 22, 2012 at 11:44:56AM -0500, Daniel Miller wrote:
Came across this bug:
NSE: http-wordpress-plugins against X.X.X.X:80 threw an error!
bad argument #2 to 'for iterator' (invalid option)
[C]: in function 'error'
/usr/local/bin/../share/nmap/nse_main.lua:174: in function
Here's the patch that worked for me:
--- scripts/http-wordpress-plugins.nse (revision 29029)
+++ scripts/http-wordpress-plugins.nse (working copy)
@@ -55,7 +55,7 @@
local function read_data_file(file)
- for line in file:lines(file) do
+ for line in file:lines() do
if not line:match("^%s*#") and not line:match("^%s*$") then
Thanks, committed in r29030.
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/