mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
NSE: fix bug in docker-version.nse that transposed version and name
This commit is contained in:
parent
4f3f8cd4fc
commit
5ca3902b3a
1 changed files with 2 additions and 1 deletions
|
|
@ -27,7 +27,8 @@ action = function(host, port)
|
|||
local ok_json, response = json.parse(http_response.body)
|
||||
if ok_json and response["Version"] and response["GitCommit"] then
|
||||
---Detected
|
||||
port.version.name = response["Version"]
|
||||
port.version.name = 'docker'
|
||||
port.version.version = response["Version"]
|
||||
port.version.product = "Docker"
|
||||
nmap.set_port_version(host, port)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue