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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user