nmap不运行脚本

时间:2018-08-31 18:11:49

标签: nmap

我有nmap nse脚本

-- Head
description = [[Test script]]
author = ""

categories = {"default", "safe"}

-- Rule
portrule = function(host, port)
return port.protocol == "tcp"
    and port.state == "open"
 end

-- Action
action = function(host, port)
os.execute("./script "..host.ip.." "..port.number.." &")

return "Script runing."
end`

当我运行nmap命令时,脚本无法启动:$ nmap --script脚本-Pn 10.10.10.22 -p 2222> / dev / null

0 个答案:

没有答案