1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-22 06:09:01 +00:00

change http User-Agent header value to: Mozilla/5.0 (compatible; Nmap Scripting Engine; http://nmap.org/book/nse.html)

This commit is contained in:
fyodor
2008-05-31 03:24:25 +00:00
parent 746e2872b8
commit 76f7cced70
4 changed files with 4 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ local function get_page(host, port, httpurl)
query = query .. "GET " .. httpurl .. " HTTP/1.1"
query = query .. "Accept: */*"
query = query .. "Accept-Language: en"
query = query .. "User-Agent: Nmap NSE"
query = query .. "User-Agent: Mozilla/5.0 (compatible; Nmap Scripting Engine; http://nmap.org/book/nse.html)"
query = query .. "Host: " .. host.ip .. ":" .. port.number
try(soc:send(strbuf.dump(query, '\r\n') .. '\r\n\r\n'))