📄 showsmtpversion.nse
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -