Skip to main content

Tools to play with wordlists

Project description

wordlistools

Wordlistools is a collection of tools to play with wordlists. This tool was built with offensive security in mind, to help bruteforcing, filtering wordlists to crack passwords, building wordlists for fuzzing, etc. This project is still under development.

Features

  • Can be used as command lines or as a python library
  • Can be used with stdin redirection |
  • Easily extensible, you can add your own plugins on your home directory ~/.koalak/wordlistools/plugins

wordlistools demo

Install

pip3 install wordlistools

Demonstration

Note: This demonstration is an old version of wordlistools, but the principe remains the same. wordlistools demo

Using policy subcommand

You can filter your wordlist based on a policy, the policy follow the following format [base_policy][lenght_policy]. The base policy can have the following rules:

  • a: word must contain at least one lower case letter
  • A: word must contain at least one upper case letter
  • 1: word must contain at least one digit
  • @: word must contain at least one special character

length rule have an operator (==, !=, <=, >=, <, >) followed by its length. Example if we want to have passwords that have at least one lowercase, at least one upper case, at least one special character and its length is at least 10 characters long policy 'aA@>=10'. Do not forget to quote your arguments.

policy_cmd

Add a tool

You can easily add your own tools in wordlistools. Create a python file in ~/koalak/wordlistools/plugins/ and subclass BasePlugin, wordlistools will automatically execute your script and register your plugin.

You have to define the following attributes

  • name(str): the name of your plugin (must be unique)
  • description(str): description of what your will plugin do, it will be displayed in the help CLI

Implement the following abstract methods:

  • init_parser(): to configure the CLI arguments by using the standard library argparse, use self.add_argument which is a wrapper for the original argparse method.
  • run: implement here the logic of your plugin, take any things as parameters and must return an iterator of strings
  • cmd(args): must call the self.run method based on the args arguments of argparse

Plugin Template

# path of this file: ~/koalak/wordlistools/plugins/myplugins.py
import itertools
from wordlistools import BaseTool


class MyTool(BaseTool):
    name = "myplugin"
    description = "Do nothing, return the same list"

    def init_parser(self):
        self.add_argument("wordlists", help="wordlist to return", nargs="+", stdin=True)

    def cmd(cls, args):
        return cls.run(*args.wordlists)

    def run(cls, *wordlists):
        wordlists = cls.normalize_wordlists(wordlists)
        for e in itertools.chain(*wordlists):
            yield e

If you want your plugins to handle stdin wordlists you have to add stdin=True in add_argument.

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

wordlistools-0.1.8.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

wordlistools-0.1.8-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file wordlistools-0.1.8.tar.gz.

File metadata

  • Download URL: wordlistools-0.1.8.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.27.1 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for wordlistools-0.1.8.tar.gz
Algorithm Hash digest
SHA256 b4ea4e9ab123182ecaab0df73d33023d70484d538c2e6a6a81cd9b152bc318ba
MD5 9e9ba858e76828bf6de267c2564c0e78
BLAKE2b-256 04dc06cb12f564c10a1b305fc5012f9852f676dbf142d4d30f5207f07dadf994

See more details on using hashes here.

File details

Details for the file wordlistools-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: wordlistools-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.27.1 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for wordlistools-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5f824e26307a76719e9fdd4124b47f67937d5b8a65f3e624f2967801143cb834
MD5 a89afbc0ca74ef9da37189ea9974629b
BLAKE2b-256 457f79a6b5b58156b9e54b5a342c051f7aa484d98ba9927165375722000a9184

See more details on using hashes here.

Supported by

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