1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 12:29: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

@@ -6,6 +6,7 @@ local stdnse = require("stdnse")
local table = require("table")
local tls = require "tls"
local vulns = require("vulns")
local rand = require "rand"
description = [[
Detects whether a server is vulnerable to the F5 Ticketbleed bug (CVE-2016-9244).
@@ -207,7 +208,7 @@ local function is_vuln(host, port, version)
-- reduces the chance of a false positive caused by the server
-- issuing us a new, valid session ID that just happens to match the
-- random one we provided.
local sid_old = stdnse.generate_random_string(16)
local sid_old = rand.random_string(16)
local hello = tls.client_hello({
["protocol"] = version,