String bruteforcer
Project description
bruter
A rule based string bruteforcer. Similar to brute but more versatile.
Overview
Bruter provides a callback based bruteforce interface. Mainly a single function brute is exported:
brute(fmt, callback=None, symbols={})
fmt: The string to be plugged variables intocallback: This is the function which will be called for every terminal valuesymbols: This is adictwhich maps symbols (which are strings) to a list of values
Example
from bruter import brute
def printer(x):
print(x)
symbols = {
'H': ['a', 'b', 'c'],
'L': ['x', 'y'],
'X': ['1', '2']
}
brute("hello <H> <L> <X>", printer, symbols)
This one gives you output --
hello a x 1
hello a x 2
hello a y 1
hello a y 2
hello b x 1
hello b x 2
hello b y 1
hello b y 2
hello c x 1
hello c x 2
hello c y 1
hello c y 2
You can also use the predefined strings inside the string module in Python 3 for defining symbols
from bruter import brute
import string
def printer(x):
print(x)
symbols = {
'H': string.ascii_lowercase
}
brute("hello <H>", printer, symbols)
which gives output --
hello a
hello b
hello c
hello d
hello e
hello f
hello g
hello h
hello i
hello j
hello k
hello l
hello m
hello n
hello o
hello p
hello q
hello r
hello s
hello t
hello u
hello v
hello w
hello x
hello y
hello z
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bruter-0.0.2.tar.gz.
File metadata
- Download URL: bruter-0.0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
766a8e1f92310feaafd41a55f6cb296e8515f61a45f1ffa7702c9fd6c821c5bc
|
|
| MD5 |
df3a86aa9e427286bd5be518b1ce10b7
|
|
| BLAKE2b-256 |
daef31913c285f28401a2c6aca109070a10b361529fb7a4903dfb49ecb4b6dcb
|
File details
Details for the file bruter-0.0.2-py3-none-any.whl.
File metadata
- Download URL: bruter-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f0d196da2e196388cde485b215b26664f6d1084f63789ca10f99552ae366000
|
|
| MD5 |
e307d9dd9ab770890e71dc4c94f97316
|
|
| BLAKE2b-256 |
3b90a798670357dacf042cdd05b65f994f282fef01dffc5f9fce71d6d66ce7f8
|