mirror of
https://github.com/nmap/nmap.git
synced 2026-08-30 05:37:05 +00:00
Avoid format-string bugs. Fixes #2634
This commit is contained in:
parent
7f435acec9
commit
1a7a96274a
9 changed files with 54 additions and 54 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue