1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +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

@@ -22,7 +22,7 @@ require 'url'
-- fetch relative URL with get request
get = function( host, port, path, options )
options = options or {}
local presets = {Host=host,Connection="close",['User-Agent']="Nmap NSE"}
local presets = {Host=host,Connection="close",['User-Agent']="Mozilla/5.0 (compatible; Nmap Scripting Engine; http://nmap.org/book/nse.html)"}
if type(host) == 'table' then
presets['Host'] = host.targetname or ( host.name ~= '' and host.name ) or host.ip
end