我有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