Skip to content

Commit

Permalink
Simplify code by using random_alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
nnposter committed Jan 30, 2019
1 parent 9ad1808 commit 483f10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/http-drupal-enum.nse
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 483f10d

Please sign in to comment.