Skip to content

Python script for managing passwords, including hashing, brute-force attacks, and mutation generation.

Notifications You must be signed in to change notification settings

olli-suoniemi/Password-Cracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password Management Script

This Python script provides functionality for managing passwords, including hashing, brute-force attacks, and mutation generation. Below is an overview of its functionalities and usage instructions:


Functionalities:

  1. Read Wordlist from URL:

    • Reads a wordlist from a given URL and returns it as a list of strings.
  2. Hash Password:

    • Generates a hashed version of a password using SHA256 encryption with a specified salt.
  3. Remove User:

    • Removes a user's information from a specified file.
  4. Insert User:

    • Inserts a new user's information (username, hashed password) into a specified file.
  5. Guess Password:

    • Checks if a guessed password matches a stored hash for a given user.
  6. Brute Force Mutated Passwords:

    • Attempts to crack passwords by brute-force using mutated password lists.
  7. Brute Force Mutated Usernames:

    • Tries to crack passwords using mutated usernames.
  8. Categorize Passwords:

    • Divides passwords into two categories: with and without digits.
  9. Generate Password Mutations:

    • Generates mutations of passwords in batches of 100, saving each batch to a separate file.
  10. Generate Username Mutations:

    • Generates mutations of usernames and saves them to a file.
  11. Get Mutated Passwords:

    • Retrieves a list of mutated password files.
  12. Get Original Passwords:

    • Retrieves the original list of passwords from a URL.

Usage:

  1. Running the Script:

    • Execute the script in a Python environment.
  2. Commands:

    • Enter one of the following commands:
      • mp or mutate passwords: Generate mutations of the 10 million most-used passwords.
      • mu or mutate users: Generate mutations of the usernames from the database.
      • bf or brute force: Use brute force to crack passwords.
  3. Brute Force Options:

    • When prompted, choose one of the following options:
      • original/o: Use original unmutated password data.
      • mutated/m: Use mutated passwords from the original dataset.
      • mutated users/mu: Use mutated passwords from usernames.
  4. Follow Prompts:

    • Follow the prompts to execute the selected command.

Additional Notes and TODOS:

  • Ensure proper error handling and input validation to handle unexpected scenarios.
  • Review and modify file paths and external tool dependencies as needed.

About

Python script for managing passwords, including hashing, brute-force attacks, and mutation generation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages