daytimetest.nse
来自「Ubuntu packages of security software。 相」· NSE 代码 · 共 26 行
NSE
26 行
id = "Daytime"description = "Connects to the UDP daytime service and on success prints the daytime."author = "Diman Todorov <diman.todorov@gmail.com>"license = "See nmaps COPYING for licence"categories = {"demo"}require "shortport"portrule = shortport.port_or_service(13, "daytime", "udp")action = function(host, port) local socket = nmap.new_socket() socket:connect(host.ip, port.number, "udp") socket:send("dummy") local status, result = socket:receive_lines(1); socket:close() if (result ~= nil) then return "Daytime: " .. result endend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?