1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-29 01:29:22 +00:00

Add categories to new SSH scripts

This commit is contained in:
dmiller
2017-07-26 19:34:24 +00:00
parent 743791ce63
commit 71c74770d0
4 changed files with 13 additions and 4 deletions

View File

@@ -3,7 +3,10 @@ local stdnse = require "stdnse"
local libssh2_util = require "libssh2-utility"
description = [[
Returns authenication methods a ssh server supports.
Returns authentication methods that a SSH server supports.
This is in the "intrusive" category because it starts an authentication with a
username which may be invalid. The abandoned connection will likely be logged.
]]
---
@@ -18,9 +21,10 @@ Returns authenication methods a ssh server supports.
-- |_ password
author = "Devin Bjelland"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
license = "Same as Nmap--See https://nmap.org/book/man-legal.html"
categories = {"auth", "intrusive"}
local username = stdnse.get_script_args "ssh.user" or stdnse.generate_random_string(5)
local username = stdnse.get_script_args("ssh.user") or stdnse.generate_random_string(5)
portrule = shortport.port_or_service(22, 'ssh')
function action (host, port)