1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Move stdnse.generate_random_string to new rand.lua

This commit is contained in:
dmiller
2018-09-08 17:07:06 +00:00
parent deea96de7c
commit 26ef852a28
43 changed files with 123 additions and 186 deletions

View File

@@ -7,6 +7,7 @@ local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
local url = require "url"
local rand = require "rand"
description = [[
Performs brute force password auditing against http form-based authentication.
@@ -580,8 +581,8 @@ action = function (host, port)
}
-- validate that the form submission behaves as expected
local username = uservar and stdnse.generate_random_string(8)
local password = stdnse.generate_random_string(8)
local username = uservar and rand.random_alpha(8)
local password = rand.random_alpha(8)
local testdrv = Driver:new(host, port, options)
local response, success = testdrv:submit_form(username, password)
if not response then