Nmap Development mailing list archives

http.useragent script argument


From: David Fifield <david () bamsoftware com>
Date: Thu, 7 Jan 2010 18:05:11 -0700

I added a new script argument, http.useragent, that allows overriding
the default HTTP User-Agent of
        Mozilla/5.0 (compatible; Nmap Scripting Engine; http://nmap.org/book/nse.html)
You use it like this:
        nmap --script-args http.useragent=Nmap
        nmap --script-args http.useragent=\"\"
Setting it to the empty string disable sending of the User-Agent header.

This was easy to implement so I just did it. It's not too late to change
the script argument name if you have another opinion about what it
should be.

It just occurred to me that it might also be useful to be able to set
the User-Agent from within a script. Maybe there's some application that
changes its behavior in a way we care about with different agents. Can
anyone think of an application for this proposed feature?

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: