1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 21:09:00 +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

@@ -4,6 +4,7 @@ local ipmi = require "ipmi"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local rand = require "rand"
description = [[
Performs brute force password auditing against IPMI RPC server.
@@ -48,8 +49,8 @@ Driver = {
end,
login = function(self, username, password)
local console_session_id = stdnse.generate_random_string(4)
local console_random_id = stdnse.generate_random_string(16)
local console_session_id = rand.random_string(4)
local console_random_id = rand.random_string(16)
local request = ipmi.session_open_request(console_session_id)
local status, reply