mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 17:59:04 +00:00
Adds Jenkins Server detection. Closes #969
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
# Nmap Changelog ($Id$); -*-text-*-
|
# Nmap Changelog ($Id$); -*-text-*-
|
||||||
|
|
||||||
|
o [NSE] http-devframework-fingerprints.lua supports Jenkins server detection
|
||||||
|
and returns extra information when Jenkins is detected [Vinamra Bhatia]
|
||||||
|
|
||||||
o [GH#926] The rarity level of MS SQL's service detection probe was decreased.
|
o [GH#926] The rarity level of MS SQL's service detection probe was decreased.
|
||||||
Now we can find MS SQL in odd ports without increasing version intensity.
|
Now we can find MS SQL in odd ports without increasing version intensity.
|
||||||
[Paulino Calderon]
|
[Paulino Calderon]
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
local http = require "http"
|
local http = require "http"
|
||||||
|
local io = require "io"
|
||||||
local string = require "string"
|
local string = require "string"
|
||||||
|
local table = require "table"
|
||||||
|
|
||||||
---
|
---
|
||||||
-- http-devframework-fingerprints.lua
|
-- http-devframework-fingerprints.lua
|
||||||
@@ -399,4 +401,41 @@ tools = { Django = { rapidDetect = function(host, port)
|
|||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Jenkins = { rapidDetect = function(host, port)
|
||||||
|
|
||||||
|
local response = http.get(host, port, "/")
|
||||||
|
local jenkins = {}
|
||||||
|
|
||||||
|
if response and ( response.status == 200 or response.status == 403 ) then
|
||||||
|
local header_x_jenkins = response.header['x-jenkins']
|
||||||
|
-- Check for 'X-Jenkins' Header
|
||||||
|
if header_x_jenkins ~= nil then
|
||||||
|
table.insert(jenkins, "Jenkins detected. Found Jenkins version " .. header_x_jenkins)
|
||||||
|
if response.header['x-hudson'] ~= nil then
|
||||||
|
table.insert(jenkins, "X-Hudson : " .. response.header['x-hudson'])
|
||||||
|
end
|
||||||
|
if response.header['x-hudson-cli-port'] ~= nil then
|
||||||
|
table.insert(jenkins, "X-Hudson-CLI-Port : " .. response.header['x-hudson-cli-port'])
|
||||||
|
end
|
||||||
|
if response.header['x-jenkins-cli-port'] ~= nil then
|
||||||
|
table.insert(jenkins, "X-Jenkins-CLI-Port : " .. response.header['x-jenkins-cli-port'])
|
||||||
|
end
|
||||||
|
if response.header['x-jenkins-cli2-port'] ~= nil then
|
||||||
|
table.insert(jenkins, "X-Jenkins-CLI2-Port : " .. response.header['x-jenkins-cli2-port'])
|
||||||
|
end
|
||||||
|
if response.header['x-jenkins-session'] ~= nil then
|
||||||
|
table.insert(jenkins, "X-Jenkins-Session : " .. response.header['x-jenkins-session'])
|
||||||
|
end
|
||||||
|
return jenkins
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
|
consumingDetect = function(page, path)
|
||||||
|
return
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user