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
Install
pip3 install wordlistools
Demonstration
Note: This demonstration is an old version of wordlistools, but the principe remains the same.
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, useself.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 theargs
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wordlistools-0.1.4.tar.gz
.
File metadata
- Download URL: wordlistools-0.1.4.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72eed1d8f7687e34217fb5292ca99f32e0d547831a1d8eac785e1efe41ffa167 |
|
MD5 | 28e39c2d27f89aad668763a25f993188 |
|
BLAKE2b-256 | ad1d3cd9dff26d2c3b48607d000ce128aae84ad4843220295ff122631b5da2cd |
File details
Details for the file wordlistools-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: wordlistools-0.1.4-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42fe6c0660786443ec5991bd55764a2dae7542036b5bb18d215de090b6fd7733 |
|
MD5 | 2a7e5e79820e8aa1eb1cd68cba503a81 |
|
BLAKE2b-256 | 06f3f297361a9c3d6cc8272ba54bf936882ae715eddc922815c404164ddff093 |