Skip to main content

A tool to crack some hashes through the Weakpass API.

Project description

weakpass-lookup

A Python script that queries the Weakpass API to attempt cracking various types of password hashes (NTLM, MD5, SHA1, SHA256). This tool is particularly helpful for cracking NTLM hashes obtained via DCSync in a Windows Domain environment, though it supports several other hash types as well.

Features

  • Multiple hash type support: NTLM, MD5, SHA1, and SHA256.
  • Generic search option: If a hash type is not specified, it attempts a generic search that covers ranges from 32 to 64 characters in length.
  • Bulk processing: Reads hashes from a file and checks them concurrently using multiple worker threads.
  • Single hash processing: Checks a single hash without needing a file.
  • Verbose mode: Provides additional debug output to help with troubleshooting.

Installation

It is recommended to install weakpass-lookup using pipx (preferred) or pip.

Using pipx (Recommended)

pipx install weakpass-lookup

Make sure you have pipx installed and set up on your system.

Using pip

pip install weakpass-lookup

Usage

usage: weakpass-lookup [-h] (-f FILE | -H HASH) [-t {md5,ntlm,sha1,sha256}]
                       [-w WORKERS] [-v]

Searches hashes in the Weakpass API

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  File with list of hashes (one per line)
  -H HASH, --hash HASH  Individual hash to search
  -t {md5,ntlm,sha1,sha256}, --type {md5,ntlm,sha1,sha256}
                        Hash type (optional, if not specified generic search
                        is used)
  -w WORKERS, --workers WORKERS
                        Number of threads to use (default: 10)
  -v, --verbose         Verbose mode to show more debugging details

Examples

  1. Crack a single NTLM hash:

    weakpass-lookup --hash <HASH_VALUE> --type ntlm
    
  2. Crack multiple hashes from a file (default 10 threads):

    weakpass-lookup --file /path/to/ntlm_hashes.txt --type ntlm --workers 10
    
  3. Use verbose mode for debugging:

    weakpass-lookup --file /path/to/hashes.txt --verbose
    
  4. Generic search (no specific hash type):

    weakpass-lookup --hash <HASH_VALUE>
    

Output

  • When processing a file:

    • <filename>_cracked.txt: Stores all cracked hashes in <hash>:<password> format.
    • <filename>_uncracked.txt: Stores all remaining uncracked hashes.
  • When processing a single hash:

    • Prints the result (cracked or uncracked) directly to the terminal.

Contributing

  1. Fork the project.
  2. Create a new feature branch (git checkout -b feature/my-feature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/my-feature).
  5. Open a Pull Request.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute it as per the terms of the license.


Happy cracking with weakpass-lookup!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weakpass_lookup-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weakpass_lookup-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file weakpass_lookup-0.1.0.tar.gz.

File metadata

  • Download URL: weakpass_lookup-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for weakpass_lookup-0.1.0.tar.gz
Algorithm Hash digest
SHA256 536b0868d6c4ae45224d546e7f2bfdc466088a86e540b0396bb2dabf871ad980
MD5 c3356465f4b0b0dc5fd445880ebca001
BLAKE2b-256 ec7dbe80f75a6abec0aef92a292b91fbc2f3e2a437b2df39126c89e4b20bbc8a

See more details on using hashes here.

File details

Details for the file weakpass_lookup-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for weakpass_lookup-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fa28576c212b5fe3edb7adc590dae5e19ce7590d600eea2c9859b931c9fd232
MD5 49abd35c77c2bbd394eae59223720538
BLAKE2b-256 445b309b7b6c8dd092e196f366418bfdd372501a7c3bb83d1b8866e7ae4d8d96

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page