1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 01:49:03 +00:00

Avoid format-string bugs. Fixes #2634

This commit is contained in:
dmiller
2023-07-20 17:24:16 +00:00
parent 7f435acec9
commit 1a7a96274a
9 changed files with 54 additions and 54 deletions

View File

@@ -102,7 +102,7 @@ function test_get(host, port, proxyType, test_url, hostname, pattern)
return false, socket
end
local req = "GET " .. test_url .. " HTTP/1.0\r\nHost: " .. hostname .. "\r\n\r\n"
stdnse.debug1("GET Request: " .. req)
stdnse.debug1("GET Request: %s", req)
return test(socket, req, pattern)
end
@@ -120,7 +120,7 @@ function test_head(host, port, proxyType, test_url, hostname, pattern)
return false, socket
end
local req = "HEAD " .. test_url .. " HTTP/1.0\r\nHost: " .. hostname .. "\r\n\r\n"
stdnse.debug1("HEAD Request: " .. req)
stdnse.debug1("HEAD Request: %s", req)
return test(socket, req, pattern)
end
@@ -136,7 +136,7 @@ function test_connect(host, port, proxyType, hostname)
return false, socket
end
local req = "CONNECT " .. hostname .. ":80 HTTP/1.0\r\n\r\n"
stdnse.debug1("CONNECT Request: " .. req)
stdnse.debug1("CONNECT Request: %s", req)
return test(socket, req, false)
end