mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
make them look better in output. The full list of changes is anonFTP => ftp-anon ASN => asn-query brutePOP3 => pop3-brute bruteTelnet => telnet-brute daytimeTest => daytime dns-safe-recursion-port => dns-random-srcport dns-safe-recursion-txid => dns-random-txid dns-test-open-recursion => dns-recursion ftpbounce => ftp-bounce HTTPAuth => http-auth HTTP_open_proxy => http-open-proxy HTTPpasswd => http-passwd HTTPtrace => http-trace iax2Detect => iax2-version ircServerInfo => irc-info ircZombieTest => irc-zombie MSSQLm => ms-sql-info MySQLinfo => mysql-info popcapa => pop3-capabilities PPTPversion => pptp-version promiscuous => sniffer-detect RealVNC_auth_bypass => realvnc-auth-bypass robots => robots.txt showHTMLTitle => html-title showOwner => identd-owners skype_v2-version => skypev2-version smb-enumdomains => smb-enum-domains smb-enumsessions => smb-enum-sessions smb-enumshares => smb-enum-shares smb-enumusers => smb-enum-users smb-serverstats => smb-server-stats smb-systeminfo => smb-system-info SMTPcommands => smtp-commands SMTP_openrelay_test => smtp-open-relay SNMPcommunitybrute => snmp-brute SNMPsysdescr => snmp-sysdescr SQLInject => sql-injection SSH-hostkey => ssh-hostkey SSHv1-support => sshv1 SSLv2-support => sslv2 strangeSMTPport => smtp-strangeport UPnP-info => upnp-info xamppDefaultPass => xampp-default-auth zoneTrans => zone-transfer
42 lines
988 B
Lua
42 lines
988 B
Lua
description = [[
|
|
Retrieves POP3 server capabilities.
|
|
]]
|
|
|
|
---
|
|
-- @output
|
|
-- 110/tcp open pop3
|
|
-- |_ pop3-capabilities: USER CAPA RESP-CODES UIDL PIPELINING STLS TOP SASL(PLAIN)
|
|
|
|
author = "Philip Pickering <pgpickering@gmail.com>"
|
|
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
|
|
|
categories = {"default"}
|
|
|
|
require 'pop3'
|
|
require 'shortport'
|
|
|
|
portrule = shortport.port_or_service({110}, "pop3")
|
|
|
|
action = function(host, port)
|
|
local capa = pop3.capabilities(host, port)
|
|
if capa then
|
|
local capstr = ""
|
|
local cap, args
|
|
for cap, args in pairs(capa) do
|
|
capstr = capstr .. " " .. cap
|
|
if type(args) == "string" then capstr = capstr .. "(" .. args .. ")" end
|
|
if type(args) == "table" then
|
|
local arg
|
|
capstr = capstr .. "("
|
|
for i, arg in ipairs(args) do
|
|
capstr = capstr .. arg .. " "
|
|
end
|
|
capstr = string.sub(capstr, 1, #capstr - 1) .. ")"
|
|
end
|
|
end
|
|
return capstr
|
|
else
|
|
return "server doesn't support CAPA"
|
|
end
|
|
end
|