mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +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:
parent
746e2872b8
commit
76f7cced70
4 changed files with 4 additions and 4 deletions
|
|
@ -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'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue