An IIS short filename enumeration tool
An IIS short filename enumeration tool.
Shortscan is designed to quickly determine which files with short filenames exist on an IIS webserver. Once a short filename has been identified the tool will try to automatically identify the full filename.
In addition to standard discovery methods Shortscan also uses a unique checksum matching approach to attempt to find the long filename where the short filename is based on Windows' propriatary shortname collision avoidance checksum algorithm (more on this research at a later date).
Using a recent version of go:
go install github.com/bitquark/shortscan/cmd/shortscan@latestTo build (and optionally install) locally:
go get && go build
go installShortscan is easy to use with minimal configuration. Basic usage looks like:
$ shortscan http://example.org/You can also specify a file containing a list of URLs to be scanned:
$ shortscan @urls.txtThis example sets multiple custom headers by using --header/-H multiple times:
shortscan -H 'Host: gibson' -H 'Authorization: Basic ZGFkZTpsMzN0'To check whether a site is vulnerable without performing file enumeration use:
shortscan --isvulnThe following options allow further tweaks:
…The shortscan project includes a utility named shortutil which can be used to perform various short filename operations and to make custom rainbow tables for use with the tool.
You can create a rainbow table from an existing wordlist like this:
shortutil wordlist input.txt > output.rainbowTo generate a one-off checksum for a file:
shortutil checksum index.htmlRun shortutil --help for a definiteive list of options for each command.
Shortutil v0.3 · a short filename utility by bitquark
Usage: main []
Options:
--help, -h display this help and exit
Commands:
wordlist add hashes to a wordlist for use with, for example, shortscan
checksum generate a one-off checksum for the given filenameA custom wordlist was built for shortscan. For full details see pkg/shortscan/resources/README.md
Original IIS short filename research by Soroush Dalili.
Additional research and this project by bitquark.
No open issues yet, or sync has not completed.