mirror of
https://github.com/nmap/nmap.git
synced 2026-11-16 12:59:09 +00:00
Move stdnse.generate_random_string to new rand.lua
This commit is contained in:
parent
deea96de7c
commit
26ef852a28
43 changed files with 123 additions and 186 deletions
|
|
@ -1,6 +1,7 @@
|
|||
local shortport = require "shortport"
|
||||
local stdnse = require "stdnse"
|
||||
local libssh2_util = require "libssh2-utility"
|
||||
local rand = require "rand"
|
||||
|
||||
description = [[
|
||||
Returns authentication methods that a SSH server supports.
|
||||
|
|
@ -24,7 +25,7 @@ author = "Devin Bjelland"
|
|||
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 rand.random_alpha(5)
|
||||
portrule = shortport.port_or_service(22, 'ssh')
|
||||
|
||||
function action (host, port)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue