1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Add ssh banner to ssh-auth-methods

This commit is contained in:
dmiller
2024-03-27 19:51:37 +00:00
parent 17ee0b3362
commit b7ee15c186
6 changed files with 3393 additions and 2333 deletions

View File

@@ -16,10 +16,20 @@ username which may be invalid. The abandoned connection will likely be logged.
--
-- @output
-- 22/tcp open ssh syn-ack
-- 22/tcp open ssh syn-ack
-- | ssh-auth-methods:
-- | Supported authentication methods:
-- | publickey
-- |_ password
-- | password
-- | Banner: This is a private system. Use of this system constitutes
-- |_consent to monitoring.
--
-- @xmloutput
-- <table key="Supported authentication methods">
-- <elem>publickey</elem>
-- <elem>password</elem>
-- </table>
-- <elem key="Banner">This is a private system. Use of this system constitutes&#xa;consent to monitoring.&#xa;</elem>
author = "Devin Bjelland"
license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
@@ -38,6 +48,7 @@ function action (host, port)
local authmethods = helper:list(username)
result["Supported authentication methods"] = authmethods
result["Banner"] = helper:banner()
return result
end