Skip to main content

CredentialDatabase

Build Status License: MIT

Create a massive credential database with collections like BreachCompilation or with credentials from password files

Features of CredentialDatabase:

  • develop awesome brute-force/credstuffer attacks which are based on CredentialDatabase
  • build up a huge hash table for SHA1, SHA256, SHA512 and md5 hashes
  • create a REST API interface similar to the ghostproject
  • create a massive password database
  • multithreaded database scripts

BreachCompilation includes billion clear text credentials discovered in a single database (file size: ~42GB)

Content


Installation

installation with pip


pip3 install CredentialDatabase

or from source


sudo python3 setup.py install

or create a wheel for installing the package with pip


sudo python3 setup.py bdist_wheel

install the package with pip


pip3 install CredentialDatabase-1.0.0-py3-none-any.whl

uninstall the package with pip


pip3 uninstall CredentialDatabase

Usage and Examples

BreachCompilationDatabase.py

execute the console script BreachCompilationDatabase


BreachCompilationDatabase --host 192.168.1.2 --port 5432 --user john --password test1234 --dbname breachcompilation --breachpath /path/to/BreachCompilation

insert subsequent command to run the script completely in background


nohup BreachCompilationDatabase --host 192.168.1.2 --port 5432 --user john --password test1234 --dbname breachcompilation --breachpath /path/to/BreachCompilation &>/dev/null &

or use a tool like screen

Database structure

schemas: 0-9, a-z, symbols (first character from email)
tables: 0-9, a-z, symbols (second character from email)


id | email | password | username | provider | sh1 | sh256 | sh512 | md5 
  • script runtime about 8 days
  • needs disk space for about 569 GB

PasswordDatabase.py

execute the console script PasswordDatabase with --breachpath


PasswordDatabase --host 192.168.1.2 --port 5432 --user john --password test1234 --dbname passwords --breachpath /path/to/BreachCompilation

or with --filepath


PasswordDatabase --host 192.168.1.2 --port 5432 --user john --password test1234 --dbname passwords --filepath /path/to/CredentialFile --proc 10

insert subsequent command to run the script completely in background


nohup PasswordDatabase --host 192.168.1.2 --port 5432 --user john --password test1234 --dbname breachcompilation --breachpath /path/to/BreachCompilation &>/dev/null &

or use a tool like screen

Database structure

schemas: 0-9, a-z, symbols (first character from password)
tables: 0-9, a-z, symbols (second character from password)


password | length | isnumber | issymbol | ts

Postgresql Database Settings

install PostgreSQL dependencies via apt


sudo apt-get install postgresql libpq-dev postgresql-client postgresql-client-common

Follow this tutorial to set up a postgresql environment. For graphical visualization install pgAdmin4.

Postgresql Advanced

create an index only scan for columns email and password


CREATE index idx_pass_email on "a"."d"(email, password);

vacuum the table, so that the visibility map to be up-to-date


VACUUM "a"."d";

Delete a table completely with


drop table "a"."d" cascade

Settings for tuning your postgresql server are here

Logs

logs can be found in /var/log/CredentialDatabase

Troubleshooting

add your current user to group syslog, this allows the application/scripts to create a folder in /var/log. Replace <user> with your current user


sudo adduser <user> syslog

to apply this change, log out and log in again and check with the terminal command groups

Changelog

All changes and versioning information can be found in the CHANGELOG

License

Copyright (c) 2019 Bierschneider Christian. See LICENSE for details

Metadata

Release files for CredentialDatabase 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CredentialDatabase 1.0.2
File Size Uploaded Provenance Actions
CredentialDatabase-1.0.2.tar.gz 22.4 kB Without provenance Details for CredentialDatabase-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for CredentialDatabase 1.0.2
File Interpreter ABI Platform Actions
CredentialDatabase-1.0.2-py3-none-any.whl Python 3 none any Details for CredentialDatabase-1.0.2-py3-none-any.whl

Total release size: 55.1 kB

Release files / CredentialDatabase-1.0.2.tar.gz

Download URL CredentialDatabase-1.0.2.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3cf6e7b9cfdcb5369ae8a21e03bf08532771769007a80a1f107f994c62670eb3
BLAKE2b-256 checksum
How to use checksums
09c1c9434d0a120bf53c07669bfddc072967b97e5a2334176fe02f08dcb5d14e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

Release files / CredentialDatabase-1.0.2-py3-none-any.whl

Download URL CredentialDatabase-1.0.2-py3-none-any.whl
Size 32.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e995b079ca54f6de789cbe667917d25bb6871bfa88135b5f484e24adb9154dbf
BLAKE2b-256 checksum
How to use checksums
7719f505d458c8e5beb0be8f1eeec6d979a82e1865d4229e6f38eec1d4fcae67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

Security for CredentialDatabase 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page