-
Notifications
You must be signed in to change notification settings - Fork 55
Nmap user agent
Dean Bushmiller edited this page Nov 10, 2022
·
1 revision
- Pro tip Nmap tells on its self
There are some packet filtering products that block requests using Nmap's default HTTP user agent. You can use a different user agent value by setting the argument http.useragent: To set the user agent in your NSE script, you can pass the header field, as follows:
options = {header={}} options['header']['User-Agent'] = "Mozilla/9.1 (compatible; Windows
NT 5.0 build 1420;)" local req = http.get(host, port, uri, options) https://www.oreilly.com/library/view/nmap-network-exploration/9781786467454/62ae3cc1-af7b-4046-89c1-a6eaa6c0b759.xhtml