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:
@@ -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
consent to monitoring.
</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
|
||||
|
||||
Reference in New Issue
Block a user