Tansaku

Build Status Codacy Badge Coverage Status

Tansaku is a yet another dirbuster tool.

Features and ToDo(s)

  • [x] Custom path list to crawl
  • [x] Custom User-Agent
  • [x] Threading
  • [ ] Crawl by type (e.g. by admin, by env, by login, etc.)

Installation

Add this line to your application's Gemfile:

gem 'tansaku'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tansaku

Usage

As a CLI

$ tansaku
Commands:
  tansaku crawl URL       # Crawl a given URL
  tansaku help [COMMAND]  # Describe available commands or one specific command

$ tansaku help crawl
Usage:
  tansaku crawl URL

Options:
  [--additional-list=ADDITIONAL_LIST]  # Path to the file which includes additonal paths to crawl
  [--threads=N]                        # Number of threads to use
  [--user-agent=USER_AGENT]            # User-Agent parameter to use

Crawl a given URL

As a library

crawler = Tansaku::Crawler("http://localhost")
resutls = crawler.crawl
p results

Default paths to crawl

See /lib/tansaku/fixtures/paths.txt.

Alternatives

License

The gem is available as open source under the terms of the MIT License.