mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Simplify code by using random_alpha
This commit is contained in:
@@ -178,7 +178,7 @@ function action (host, port)
|
|||||||
-- We default to HEAD requests unless the server returns
|
-- We default to HEAD requests unless the server returns
|
||||||
-- non 404 (200 or other) status code
|
-- 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
|
if response.status ~= 404 then
|
||||||
method = "GET"
|
method = "GET"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user