Home page logo
/
Zenmap screenshot
Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News
Example Nmap output

File http-useragent-tester

Script types: portrule
Categories: discovery, safe
Download: http://nmap.org/svn/scripts/http-useragent-tester.nse

User Summary

Checks if various crawling utilities are allowed by the host.

Script Arguments

http-useragent-tester.useragents

A table with more User-Agent headers. Default: nil

max-newtargets, newtargets

See the documentation for the target library.

httpspider.doscraping, httpspider.maxdepth, httpspider.maxpagecount, httpspider.noblacklist, httpspider.url, httpspider.useheadfornonwebfiles, httpspider.withindomain, httpspider.withinhost

See the documentation for the httpspider library.

http.max-cache-size, http.max-pipeline, http.pipeline, http.useragent

See the documentation for the http library.

smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusername

See the documentation for the smbauth library.

Example Usage

nmap -p80 --script http-useragent-tester.nse <host>

This script sets various User-Agent headers that are used by different
utilities and crawling libraries (for example CURL or wget). If the request is
redirected to a page different than a (valid) browser request would be, that
means that this utility is banned.

Script Output

PORT   STATE SERVICE REASON
80/tcp open  http    syn-ack
| http-useragent-tester:
|
|     Allowed User Agents:
|
|     lwp-trivial
|     PHP/
|     Python-urllib/2.5
|     GT::WWW
|     Snoopy
|     MFC_Tear_Sample
|     HTTP::Lite
|     PHPCrawl
|     URI::Fetch
|     Zend_Http_Client
|     http client
|     PECL::HTTP
|     WWW-Mechanize/1.34
|
|     Forbidden User Agents:
|
|     libwww redirected to: https://www.some-random-page.com/unsupportedbrowser (different host)
|     libcurl-agent/1.0 redirected to: https://www.some-random-page.com/unsupportedbrowser (different host)
|_    Wget/1.13.4 (linux-gnu) redirected to: https://www.some-random-page.com/unsupportedbrowser (different host)

Requires


Author: George Chatzisofroniou

License: Same as Nmap--See http://nmap.org/book/man-legal.html

Nmap Site Navigation

Intro Reference Guide Book Install Guide
Download Changelog Zenmap GUI Docs
Bug Reports OS Detection Propaganda Related Projects
In the Movies In the News
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]