Home page logo

nmap-dev logo Nmap Development 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)
stack traceback:
       [C]: in function 'error'
       /usr/local/bin/../share/nmap/nse_main.lua:174: in function
       (...tail calls...)
in function
       (...tail calls...)

Here's the patch that worked for me:

Index: scripts/http-wordpress-plugins.nse
--- scripts/http-wordpress-plugins.nse  (revision 29029)
+++ scripts/http-wordpress-plugins.nse  (working copy)
@@ -55,7 +55,7 @@

local function read_data_file(file)
  return coroutine.wrap(function()
-    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.

David Fifield
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]