From 483f10da4d228dea5192123f1d288693f9a061fc Mon Sep 17 00:00:00 2001 From: nnposter Date: Wed, 30 Jan 2019 03:09:56 +0000 Subject: [PATCH] Simplify code by using random_alpha --- scripts/http-drupal-enum.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/http-drupal-enum.nse b/scripts/http-drupal-enum.nse index 2128f8252..49a24f244 100644 --- a/scripts/http-drupal-enum.nse +++ b/scripts/http-drupal-enum.nse @@ -178,7 +178,7 @@ function action (host, port) -- We default to HEAD requests unless the server returns -- non 404 (200 or other) status code - local response = http.head(host, port, modules_path .. rand.random_string(8, rand.charset('a','z')) .. "/LICENSE.txt") + local response = http.head(host, port, modules_path .. rand.random_alpha(8) .. "/LICENSE.txt") if response.status ~= 404 then method = "GET" end