wig is a web application information gathering tool, which can identify numerous Content Management Systems and other administrative applications.
The application fingerprinting is based on checksums and string matching of known files for different versions of CMSes. This results in a score being calculated for each detected CMS and its versions. Each detected CMS is displayed along with the most probable version(s) of it. The score calculation is based on weights and the amount of "hits" for a given checksum.
wig also tries to guess the operating system on the server based on the 'server' and 'x-powered-by' headers. A database containing known header values for different operating systems is included in wig, which allows wig to guess Microsoft Windows versions and Linux distribution and version.
- CMS version detection by: check sums, string matching and extraction
- Lists detected package and platform versions such as asp.net, php, openssl, apache
- Detects JavaScript libraries
- Operation system fingerprinting by matching php, apache and other packages against a values in wig's database
- Checks for files of interest such as administrative login pages, readmes, etc
- Currently the wig's databases include 20.000 fingerprints
- Reuse information from previous runs (save the cache)
- Implement a verbose option
- Remove dependency on 'requests'
- Implement a dirbuster-ish/enumeration feature
- Add more fingerprints for interesting files
- Add progress information (non-verbose)
- Implement option to generate site map
- Improve the crawler/spider
- Implement option for output to file: xml,json
- Improve a verbose option
wig is built with Python 3, and is therefore not compatible with Python 2.
The default behavior of wig is to identify a CMS, and exit after version detection of the CMS. This is done to limit the amount of traffic sent to the target server. This behavior can be overwritten by setting the '-a' flag, in which case wig will test all the known fingerprints. As some configurations of applications do not use the default location for files and resources, it is possible to have wig fetch all the static resources it encounters during its scan. This is done with the '-c' option. The '-m' option tests all fingerprints against all fetched URLs, which is helpful if the default location has been changed.
- Check for redirection
- Detect if the application uses custom error pages
- Find the CMS
- Find the CMS version
- Crawl html pages for link, script and img resources
- Stop CMS detection unless option '-a' is specified
- Extract all the headers encountered
- Find JavaScript libraries and their versions without making more requests
- Match all fingerprints agains all URLs if '-m' is specified
- Find Operating System based on header values and the OS database
- Calculate scores and display results
$ python3 wig.py -h
usage: wig.py [-h] [-n STOP_AFTER] [-a] [-m] [--no_cache_load]
[--no_cache_save] [-N] [-e]
host
WebApp Information Gatherer
positional arguments:
host The host name of the target
optional arguments:
-h, --help show this help message and exit
-n STOP_AFTER Stop after this amount of CMSs have been detected. Default:
1
-a Do not stop after the first CMS is detected
-m Try harder to find a match without making more requests
--no_cache_load Do not load cached responses
--no_cache_save Do not save the cache for later use
-N Shortcut for --no_cache_load and --no_cache_save
--verbosity, -v Increase verbosity. Use multiple times for more info
-e Use the built-in list of common files and directories (much
like dirbuster). NOT IMPLEMENTED YET
# python3 wig.py http://www.example.com/
Redirected to http://example.com/. Continue? [Y|n]:
SOFTWARE VERSION COMMENT
sitecore 6.4.1 (rev. 110621) CMS
jquery 1.3.2 JavaScript
ASP.NET 4.0.30319 Platform
Microsoft-IIS 7.5 Platform
Microsoft Windows Server 2008 R2 Operating System
URL NOTE COMMENT
/sitecore/admin/unlock_admin.aspx Sitecore Unlock Administrator Account Interesting URL
/sitecore/login/passwordrecovery.aspx Sitecore Password Recovery Interesting URL
/sitecore/shell/webservice/service.asmx Sitecore Web Service Page Interesting URL
________________________________________________________________________________________________
Time: 10.5 sec Urls: 120 Fingerprints: 21804