mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Removes target library as IP addresses aren't included
This commit is contained in:
@@ -2,7 +2,6 @@ local nmap = require "nmap"
|
|||||||
local packet = require "packet"
|
local packet = require "packet"
|
||||||
local stdnse = require "stdnse"
|
local stdnse = require "stdnse"
|
||||||
local string = require "string"
|
local string = require "string"
|
||||||
local target = require "target"
|
|
||||||
|
|
||||||
description = [[
|
description = [[
|
||||||
Discovers Jenkins servers on a LAN by sending a discovery broadcast probe.
|
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:
|
-- Pre-scan script results:
|
||||||
-- | broadcast-jenkins:
|
-- | broadcast-jenkins:
|
||||||
-- | Version: 2.60.2; Server ID: d5e31b7a9d69cf3c89cc799c23199760; Slave Port: 35928
|
-- | Version: 2.60.2; Server ID: d5e31b7a9d69cf3c89cc799c23199760; Slave Port: 35928
|
||||||
-- | Version: 2.60.2; Server ID: b98e8e1b862c3eecb14e8be0028cf4ee; Slave Port: 45435
|
-- |_ Version: 2.60.2; Server ID: b98e8e1b862c3eecb14e8be0028cf4ee; Slave Port: 45435
|
||||||
-- |_ Use --script-args=newtargets to add the results as targets
|
|
||||||
--
|
--
|
||||||
-- @args broadcast-jenkins.address
|
-- @args broadcast-jenkins.address
|
||||||
-- address to which the probe packet is sent. (default: 255.255.255.255)
|
-- address to which the probe packet is sent. (default: 255.255.255.255)
|
||||||
@@ -87,14 +85,8 @@ action = function()
|
|||||||
if (not hash[v]) then
|
if (not hash[v]) then
|
||||||
table.insert( response, v )
|
table.insert( response, v )
|
||||||
hash[v] = true
|
hash[v] = true
|
||||||
if target.ALLOW_NEW_TARGETS then
|
|
||||||
target.add(v)
|
|
||||||
end
|
|
||||||
end
|
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
|
return response
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user