Skip to main content

Package description

Project description

Dirhunt is a web crawler optimize for search and analyze directories. This tool can find interesting things if the server has the “index of” mode enabled. Dirhunt is also useful if the directory listing is not enabled. It detects directories with false 404 errors, directories where an empty index file has been created to hide things and much more.

$ dirhunt http://website.com/

Dirhunt does not use brute force. But neither is it just a crawler. This tool is faster than others because it minimizes requests to the server. Generally, this tool takes between 5-30 seconds, depending on the website and the server. Features:

  • Process one or multiple sites at a time.

  • Process ‘Index Of’ pages and report interesting files.

  • Detect redirectors.

  • Detect blank index file created on directory to hide things.

  • Process some html files in search of new directories.

  • 404 error pages and detect fake 404 errors.

  • Filter results by flags.

Install

If you have Pip installed on your system, you can use it to install Dirhunt:

$ sudo pip3 install dirhunt

At this time only Python 3.4+ is officially supported. Other versions may work but without guarantees.

Usage

You can define one or more urls, from the same domain or different. It is better if you put urls with complete routes. This way Dirhunt will have easier to find directories.

$ dirhunt <url 1>[ <url 2>]

For example:

$ dirhunt http://domain1/blog/awesome-post.html http://domain1/admin/login.html http://domain2/

Interesting extensions

By default, Dirhunt will notify you if it find one of these extension file names: php, zip, sh, asp, csv and log. You can change these extensions using the parameter --interesting-extensions (-e).

$ dirhunt <url> -e <ext 1>[,<ext 2>]

For example:

$ dirhunt http://domain1/blog/ -e php,zip,sh

It is also possible to read extensions from files. See “Comma separated files”

Interesting files

By default, Dirhunt will notify you if it find one of these extension file names: access_log, error_log, error, logs, dump. You can change these extensions using the parameter --interesting-files (-f).

$ dirhunt <url> -e <name 1>[,<name 2>]

For example:

$ dirhunt http://domain1/blog/ -e access_log,error_log

It is also possible to read names from files. See “Comma separated files”

Exclude

Filter the results using the --exclude-flags (-x) parameter.

$ dirhunt <url> -x <flags comma separated>

For example:

$ dirhunt http://domain1/blog/ -x http,not_found,index_of.nothing,300-500

See the flags section to see how you can filter the results.

It is also possible to read excludes from files. See “Comma separated files”

Flags

The results are cataloged with one or several flags. Results with a status code include a flag with the status number. For example, a successful response with status code 200 includes as flag 200. When filtered, ranges of response codes can be defined. For example, 401-500.

The processor used to process the result is also included as a flag. The names of the processors are:

  • generic

  • redirect

  • not_found

  • html

  • index_of

  • blank

Also, some processors may have some extra flags:

  • index_of.nothing: ‘Index Of’ without interesting files.

  • not_found.fake: Fake 404 directory.

Other flags:

  • wordpress: The page belongs to a wordpress.

Comma separated files

In those parameters with arguments separated by commas, it is possible to read values from one or more local files.

$ dirhunt <url> --param <file 1>,<file 2>

For example:

$ dirhunt http://domain1/blog/ -e /path/to/file1.txt,./file2.txt

It is necessary to put the complete path to the file, or the relative using ./. Each value of the files must be separated by newlines.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dirhunt-0.1.3.tar.gz (14.5 kB view details)

Uploaded Source

File details

Details for the file dirhunt-0.1.3.tar.gz.

File metadata

  • Download URL: dirhunt-0.1.3.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dirhunt-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0bd2fd3aefc41aeef28406f63cba83954fceec58a42db88a89381c8abca36f9c
MD5 801ab3fe332bf0cacc17afec39b6fe4a
BLAKE2b-256 62f68a60015c68a6f769159274a4c3514aab890f8413abf5e80bf7cc57e62933

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page