1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 18:39:03 +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

@@ -10,6 +10,7 @@ local bin = require "bin"
local table = require "table"
local nmap = require "nmap"
local sslcert = require "sslcert"
local rand = require "rand"
_ENV = stdnse.module("sslv2", stdnse.seeall)
SSL_MESSAGE_TYPES = {
@@ -230,7 +231,7 @@ function client_hello (ciphers)
cipher_codes[#cipher_codes+1] = ck
end
local challenge = stdnse.generate_random_string(16)
local challenge = rand.random_string(16)
local ssl_v2_hello = bin.pack(">CSSSSAA",
1, -- MSG-CLIENT-HELLO