From 385ef668fd95b671fd48d709cd5b630f869a45b8 Mon Sep 17 00:00:00 2001 From: waituck Date: Mon, 31 Jul 2017 22:37:01 +0000 Subject: [PATCH] Fixed minor bug in puppet-naivesigning. Closes #953 --- scripts/puppet-naivesigning.nse | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/puppet-naivesigning.nse b/scripts/puppet-naivesigning.nse index ff1916d01..f6a727291 100644 --- a/scripts/puppet-naivesigning.nse +++ b/scripts/puppet-naivesigning.nse @@ -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)