Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JakeWnuk/ptt
Password Transformation Tool (ptt) is a versatile utility designed for password cracking.
https://github.com/JakeWnuk/ptt
cracking-hashes hashcat hashcat-rules-generator hashcracking maskcat password rulecat
Last synced: 3 months ago
JSON representation
Password Transformation Tool (ptt) is a versatile utility designed for password cracking.
- Host: GitHub
- URL: https://github.com/JakeWnuk/ptt
- Owner: JakeWnuk
- License: mit
- Created: 2024-04-09T22:38:04.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T14:26:29.000Z (3 months ago)
- Last Synced: 2024-10-25T18:09:14.311Z (3 months ago)
- Topics: cracking-hashes, hashcat, hashcat-rules-generator, hashcracking, maskcat, password, rulecat
- Language: Go
- Homepage:
- Size: 114 KB
- Stars: 18
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: docs/SECURITY.md
Awesome Lists containing this project
- awesome-password-cracking - PTT - The Password Transformation Tool (ptt) is a versatile utility designed for password cracking. It facilitates the creation of custom rules and transformations, as well as the generation of wordlists. This tool supports processing data from files, URLs, and standard input, streamlining cracking workflows. (Wordlist tools / Generation/Manipulation)
README
Password Transformation Tool (`ptt`) is a versatile utility designed for password cracking. It facilitates the creation of custom rules and transformations, as well as the generation of wordlists. This tool supports processing data from files, URLs, and standard input, streamlining cracking workflows.
`PTT` is written in `Go`, is compatible with multiple platforms, and can be easily integrated into existing workflows. The tool is designed to be user-friendly and intuitive, with a wide range of features and options.
## Features:
- **Multiple Input Sources:** Process data from files, URLs, and standard input. Accepts directories, files, and URLs as input. Use multiple flags to combine sources.
- **Deduplication and Frequency Filtering:** Remove duplicates and filter by
frequency automatically.
- **Output Formatting:** Output data in JSON format or Markdown for easy parsing and
analysis. Easily load and chain previous results for further processing.
- **Debugging Mode:** Enable debug mode to display verbose output and
statistics with multiple levels of verbosity.
- **Transformation Modes:** Choose from various transformation modes to
manipulate input data.
- **Wordlist Generation:** Generate wordlists from input data using custom rules
and transformations.
- **Rule Creation:** Create custom rules for appending, prepending,
overwriting, and toggling strings.
- **Mask Making:** Create `Hashcat` masks to mask, remove, retain, or swap characters
in strings.
- **Multibyte Support:** Support for multibyte characters in transformations.
- **URL Parsing:** Parse URLs with strict, permissive, or maximum parsing
modes to create wordlists from URLs.
- **Analysis Tools:** Analyze input data with statistics and verbose output.
- **Template Files:** Use template files to apply multiple transformations and
operations to input data.## Getting Started:
Usage documentation can be found in the `/docs/USAGE.md` directory or on the repository here:
- [GitHub Link](https://github.com/JakeWnuk/ptt/tree/main/docs/USAGE.md)### Install:
From source with `go`:
```
go install github.com/jakewnuk/ptt@latest
```
From `git` clone then build with `go`:
```
git clone https://github.com/JakeWnuk/ptt && cd ptt && go build ./main.go && mv ./main ~/go/bin/ptt && ptt
```
From `docker` with the program as the entry point:
```
docker run -it -v ${PWD}:/data jwnuk/ptt
```
From `git` then build with `docker`:
```
git clone https://github.com/JakeWnuk/ptt && cd ptt && docker build -t ptt . && docker run -it -v ${PWD}:/data ptt
```---
### Usage:
```
Usage of Password Transformation Tool (ptt) version (0.3.7):ptt [options] [...]
Accepts standard input and/or additonal arguments.The -f, -k, -r, -tf, -tp, and -u flags can be used multiple times, together, and with files or directories.
-------------------------------------------------------------------------------------------------------------
Options:
These modify or filter the transformation mode.-b Bypass map creation and use stdout as primary output. Disables some options.
-d int
Enable debug mode with verbosity levels [0-2].
-f value
Read additional files for input.
-i value
Starting index for transformations if applicable. Accepts ranges separated by '-'.
-k value
Only keep items in a file.
-l value
Only output items of a certain length (does not adjust for rules). Accepts ranges separated by '-'.
-m int
Minimum numerical frequency to include in output.
-md
If Markdown format should be used for output instead.
-n int
Maximum number of items to return in output.
-o string
Output to JSON file in addition to stdout. Accepts file names and paths.
-p int
Change parsing mode for URL input. [0 = Strict, 1 = Permissive, 2 = Maximum].
-r value
Only keep items not in a file.
-rm string
Replacement mask for transformations if applicable. (default "uldsbt")
-t string
Transformation to apply to input.
-tf value
Read additional files for transformations if applicable.
-tp value
Read a template file for multiple transformations and operations. Cannot be used with -t flag.
-u value
Read additional URLs for input.
-v Show verbose output when possible. (Can show additional metadata in some modes.)
-vv
Show statistics output when possible.
-vvv
Show verbose statistics output when possible.
-w value
Number of words for transformations if applicable. Accepts ranges separated by '-'.
-------------------------------------------------------------------------------------------------------------
Transformation Modes:
These create or alter based on the selected mode.-t decode
Transforms input by HTML and Unicode escape decoding.
-t dehex
Transforms input by decoding $HEX[...] formatted strings.
-t encode
Transforms input by HTML and Unicode escape encoding.
-t hex
Transforms input by encoding strings into $HEX[...] format.
-t mask -rm [uldsb] -v
Transforms input by masking characters with provided mask.
-t mask-match -tf [file]
Transforms input by keeping only strings with matching masks from a mask file.
-t mask-pop -rm [uldsbt]
Transforms input by 'popping' tokens from character boundaries using the provided mask.
-t mask-remove -rm [uldsb]
Transforms input by removing characters with provided mask.
-t mask-retain -rm [uldsb] -tf [file]
Transforms input by creating masks that still retain strings from file.
-t mask-swap -tf [file]
Transforms input by swapping tokens from a mask/partial mask input and a transformation file of tokens.
-t passphrase -w [words]
Transforms input by generating passphrases from sentences with a given number of words.
-t regram -w [words]
Transforms input by 'regramming' sentences into new n-grams with a given number of words.
-t replace-all -tf [file]
Transforms input by replacing all strings with all matches from a ':' separated file.
-t rule-append
Transforms input by creating append rules.
-t rule-append-remove
Transforms input by creating append-remove rules.
-t rule-insert -i [index]
Transforms input by creating insert rules starting at index.
-t rule-overwrite -i [index]
Transforms input by creating overwrite rules starting at index.
-t rule-prepend
Transforms input by creating prepend rules.
-t rule-prepend-remove
Transforms input by creating prepend-remove rules.
-t rule-prepend-toggle
Transforms input by creating prepend-toggle rules.
-t rule-toggle -i [index]
Transforms input by creating toggle rules starting at index.
-t substring -i [index]
Transforms input by extracting substrings starting at index and ending at index.
-t swap-single -tf [file]
Transforms input by swapping tokens once per string per replacement with exact matches from a ':' separated file.
-------------------------------------------------------------------------------------------------------------
```