1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 04:09:01 +00:00

Fix some NSE globals

This commit is contained in:
dmiller
2015-02-11 14:20:30 +00:00
parent 7e30cb9c4a
commit 9294365d9b
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
local http = require "http" local http = require "http"
local shortport = require "shortport" local shortport = require "shortport"
local stdnse = require "stdnse" local stdnse = require "stdnse"
local string = require "string"
local vulns = require "vulns" local vulns = require "vulns"
description = [[ description = [[

View File

@@ -175,6 +175,7 @@ action = function(host, port)
end end
end end
local resource_search
if resource_search_arg == "all" then if resource_search_arg == "all" then
resource_search = nil resource_search = nil
else else
@@ -259,7 +260,7 @@ action = function(host, port)
bfqueries[i].installation_version = version bfqueries[i].installation_version = version
--Right now we can only get the version number of plugins through api.wordpress.org --Right now we can only get the version number of plugins through api.wordpress.org
if apicheck == "true" and key=="plugins" then if apicheck == "true" and key=="plugins" then
latestversion = get_latest_plugin_version(bfqueries[i].name) local latestversion = get_latest_plugin_version(bfqueries[i].name)
if latestversion then if latestversion then
output = output .. " (latest version:" .. latestversion .. ")" output = output .. " (latest version:" .. latestversion .. ")"
bfqueries[i].latest_version = latestversion bfqueries[i].latest_version = latestversion