mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 18:09:01 +00:00
Fixed minor bug in puppet-naivesigning. Closes #953
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
local shortport = require "shortport"
|
||||
local stdnse = require "stdnse"
|
||||
local http = require "http"
|
||||
local vulns = require "vulns"
|
||||
local string = require "string"
|
||||
local table = require "table"
|
||||
local io = require "io"
|
||||
local base64 = require "base64"
|
||||
@@ -91,7 +89,7 @@ local PATHS = {
|
||||
}
|
||||
|
||||
--- Checks if the csr's requester matches the provided node's name
|
||||
-- @param csr The whole certificate signing request as a string
|
||||
-- @param csr The whole certificate signing request
|
||||
-- @param node The name of the node that you wish to check
|
||||
-- @return the start and end index of the node's name in the decoded CSR, if the node's name is not found
|
||||
local function has_node_csr (csr, node)
|
||||
@@ -187,8 +185,6 @@ action = function(host, port)
|
||||
break
|
||||
elseif not response.status then
|
||||
puppet_table = "Puppet CA timeout!"
|
||||
else
|
||||
return
|
||||
end
|
||||
end
|
||||
return stdnse.format_output(scan_success, puppet_table)
|
||||
|
||||
Reference in New Issue
Block a user