showsmtpversion.nse
来自「Ubuntu packages of security software。 相」· NSE 代码 · 共 32 行
NSE
32 行
id = "SMTP version"description = "Simple script which queries and prints the version of an SMTP server."author = "Diman Todorov <diman.todorov@gmail.com>"license = "See nmaps COPYING for licence"categories = {"demo"}require "shortport"portrule = shortport.port_or_service(25, "smtp")action = function(host, port) local client = nmap.new_socket() client:connect(host.ip, port.number) local status, result = client:receive_lines(1); client:close() if result ~= nil then result = string.gsub(result, "\n", "") end return resultend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?