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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user