MystrKl33n is a Python script that allows you to manipulate a word list file by removing duplicates, filtering words based on a blacklist, performing English word checks, and optionally saving the processed word list to a file.
- Remove duplicate words from the word list.
- Filter out words based on a blacklist.
- Perform English word checks using multiple dictionaries.
- Support for case-insensitive checks.
- Print the resulting word list to stdout or save it to a file.
Ensure you have the following packages installed:
enchant
library-
Debian-based systems
sudo apt-get install enchant
-
Red Hat-based systems:
sudo dnf install enchant
-
Arch Linux:
sudo pacman -S enchant
-
Gentoo:
sudo emerge enchant
-
Alpine:
sudo apk add enchant
-
openSUSE:
sudo zypper install enchant
-
-
Clone the repo into your
$HOME
directory:cd $HOME git clone https://github.com/silvatyrant/mystrkl33n.git
-
Install the required dependencies by running the following command:
pip install -r requirements.txt
-
Run the script with the desired options and arguments:
python main.py [OPTIONS] WORDLIST - `WORDLIST`: Path to the word list file. Available Options: - `-d, --remove-duplicates`: Remove duplicate words from the word list. - `-b, --blacklist FILE`: Path to the blacklist file for filtering out words. - `-o, --output FILE`: Output file path for saving the processed word list. - `-e, --english-check DICTS`: Comma-separated list of dictionaries for English word check. - `-c, --case-insensitive`: Perform case-insensitive checks. - `-s, --show-stats`: Shows some stats.
-
[OPTIONAL] Create alias to run from anywhere:
echo "alias kl33n='python ~/mystrkl33n/main.py'" >> ~/.bashrc #OR ~/.zshrc
-
Remove duplicate words from a word list file and print the resulting list:
python main.py wordlist.txt -d
-
Filter out words from a word list file based on a blacklist file and save the result to a new file:
python main.py wordlist.txt -b blacklist.txt -o filtered_wordlist.txt
-
Perform English word checks using multiple dictionaries and print the resulting list:
python main.py wordlist.txt -e "en_US,en_GB"
This example assumes that the
en_US
anden_GB
dictionaries are available. -
Perform case-insensitive checks when comparing words in the blacklist:
python main.py wordlist.txt -b blacklist.txt -c
This example will perform case-insensitive checks when filtering out words based on the blacklist.
- Fix stats chart
A special shout out to ChatGPT and OpenAI for doing most of the heavy-lifting with this one. 💪
This project is licensed under the MIT License.