From b3f34bbdd404ab5e4b0cc4dfb991b6aa5ff8a8e6 Mon Sep 17 00:00:00 2001 From: paulino Date: Sat, 23 Jun 2018 19:52:45 +0000 Subject: [PATCH] Removes target library as IP addresses aren't included --- scripts/broadcast-jenkins-discover.nse | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/scripts/broadcast-jenkins-discover.nse b/scripts/broadcast-jenkins-discover.nse index a41d56db8..98aadf104 100644 --- a/scripts/broadcast-jenkins-discover.nse +++ b/scripts/broadcast-jenkins-discover.nse @@ -2,7 +2,6 @@ local nmap = require "nmap" local packet = require "packet" local stdnse = require "stdnse" local string = require "string" -local target = require "target" description = [[ Discovers Jenkins servers on a LAN by sending a discovery broadcast probe. @@ -19,8 +18,7 @@ For more information about Jenkins auto discovery, see: -- Pre-scan script results: -- | broadcast-jenkins: -- | Version: 2.60.2; Server ID: d5e31b7a9d69cf3c89cc799c23199760; Slave Port: 35928 --- | Version: 2.60.2; Server ID: b98e8e1b862c3eecb14e8be0028cf4ee; Slave Port: 45435 --- |_ Use --script-args=newtargets to add the results as targets +-- |_ Version: 2.60.2; Server ID: b98e8e1b862c3eecb14e8be0028cf4ee; Slave Port: 45435 -- -- @args broadcast-jenkins.address -- address to which the probe packet is sent. (default: 255.255.255.255) @@ -87,14 +85,8 @@ action = function() if (not hash[v]) then table.insert( response, v ) hash[v] = true - if target.ALLOW_NEW_TARGETS then - target.add(v) - end end end - if not target.ALLOW_NEW_TARGETS then - response[#response + 1] = "Use --script-args=newtargets to add the results as targets" - end return response end end