showsshversion.nse
来自「Ubuntu packages of security software。 相」· NSE 代码 · 共 37 行
NSE
37 行
id = "Stealth SSH version"description = "Connects to an SSH server, queries the version string and echos it back. This tends to result\in the scanning attempt not being logged by the ssh daemon on the target."author = "Diman Todorov <diman.todorov@gmail.com>"license = "See nmaps COPYING for licence"categories = {"demo"}require "shortport"portrule = shortport.service("ssh")action = function(host, port) local result, socket local catch = function() socket:close() end local try = nmap.new_try(catch) result = "" socket = nmap.new_socket() try(socket:connect(host.ip, port.number)) result = try(socket:receive_lines(1)); try(socket:send(result)) try(socket:close()) return "" .. string.gsub(result, "\n", "") end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?