mirror of
https://github.com/nmap/nmap.git
synced 2026-01-25 23:59:01 +00:00
Lua 5.2 upgrade [1] for NSE.
[1] http://seclists.org/nmap-dev/2012/q2/34
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
local ndmp = require "ndmp"
|
||||
local nmap = require "nmap"
|
||||
local shortport = require "shortport"
|
||||
|
||||
description = [[
|
||||
Retrieves version information from the remote Network Data Management Protocol
|
||||
(ndmp) service. NDMP is a protocol intended to transport data between a NAS
|
||||
@@ -19,8 +23,6 @@ author = "Patrik Karlsson"
|
||||
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
||||
categories = {"version"}
|
||||
|
||||
require 'shortport'
|
||||
require 'ndmp'
|
||||
|
||||
portrule = shortport.port_or_service(10000, "ndmp", "tcp")
|
||||
|
||||
@@ -58,4 +60,4 @@ action = function(host, port)
|
||||
port.version.extrainfo = port.version.extrainfo .. ("OS ver: %d.%d; OS Build: %d; OS Service Pack: %d"):format(major, minor, build, smajor)
|
||||
end
|
||||
nmap.set_port_version(host, port, "hardmatched")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user