1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-08 21:51:28 +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 json = require "json"
local url = require "url"
local httpspider = require "httpspider"
local table = require "table"
local rand = require "rand"
description = [[
Attempts to discover JSONP endpoints in web servers. JSONP endpoints can be
@@ -64,7 +65,7 @@ end
--Checks if the callback function is controllable from URL
local callback_url = function(host, port, target, callback_variable)
local path, response, report
local value = stdnse.generate_random_string(8)
local value = rand.rand_alpha(8)
if callback_variable == nil then
callback_variable = "callback"
end